summaryrefslogtreecommitdiff
path: root/bin/fuzz.pl
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2003-12-08 16:11:47 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2003-12-08 16:11:47 +0000
commitc314f2cabb9f89f055e1b796bc8c312c6e650442 (patch)
treed948c152830edc5461fecd5f096f8c7397a19927 /bin/fuzz.pl
parentb1e3c76dc8ac249882fcba9f8d99d013c071e05d (diff)
downloadATCD-c314f2cabb9f89f055e1b796bc8c312c6e650442.tar.gz
ChangeLogTag: Mon Dec 8 16:11:12 UTC 2003 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'bin/fuzz.pl')
-rwxr-xr-xbin/fuzz.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/fuzz.pl b/bin/fuzz.pl
index 9225355a21d..803f858a36b 100755
--- a/bin/fuzz.pl
+++ b/bin/fuzz.pl
@@ -42,6 +42,7 @@ use Getopt::Std;
@files_makefile = ();
@files_mpc = ();
@files_bor = ();
+@files_noncvs = ();
# To keep track of errors and warnings
$errors = 0;
@@ -118,6 +119,9 @@ sub store_file ($)
elsif ($name =~ /\.bor$/i) {
push @files_bor, ($name);
}
+ elsif ($name =~ /\.(ncp|opt)$/i) {
+ push @files_noncvs, ($name);
+ }
}
##############################################################################
@@ -224,6 +228,15 @@ sub check_for_newline ()
}
+# This test checks for files that are not allowed to be in cvs
+sub check_for_noncvs_files ()
+{
+ print "Running non cvs files check\n";
+ foreach $file (@files_noncvs) {
+ print_error ("File $file should not be in cvs!");
+ }
+}
+
# This test checks for the use of "inline" instead of ACE_INLINE
sub check_for_inline ()
@@ -1108,6 +1121,7 @@ else {
print "--------------------Configuration: Fuzz - Level ",$opt_l,
"--------------------\n";
+check_for_noncvs_files () if ($opt_l >= 1);
check_for_synch_include () if ($opt_l >= 1);
check_for_OS_h_include () if ($opt_l >= 1);
check_for_streams_include () if ($opt_l >= 1);