]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Allow compile tests for files that run in taint mode
authorjake%acutex.net <>
Sun, 7 Oct 2001 06:22:45 +0000 (06:22 +0000)
committerjake%acutex.net <>
Sun, 7 Oct 2001 06:22:45 +0000 (06:22 +0000)
No review needed for tests at this time. NOT PART OF BUILD

t/001compile.t
t/Support/Files.pm

index fa8bbae0644f21450e54a3b45b69f3d7b40b50dc..edaa9cacdd23ba20a73145bdfe673bf25ef1ff32 100644 (file)
@@ -53,7 +53,14 @@ $perlapp=$^X;
 foreach $file (@testitems) {
         $file =~ s/\s.*$//; # nuke everything after the first space (#comment)
         next if (!$file); # skip null entries
-       $command = "$perlapp"." -c $file 2>&1";
+        open (FILE,$file);
+        my $bang = <FILE>;
+        close (FILE);
+        my $T = "";
+        if ($bang =~ m/#!\S*perl\s+-.*T/) {
+            $T = "T";
+        }
+       $command = "$perlapp"." -c$T $file 2>&1";
        $loginfo=`$command`;
 #        print '@@'.$loginfo.'##';
        if ($loginfo =~ /syntax ok$/im) {
index c31cd75c40f1b4f7f141ddeede3f1c271933a8e5..9235b5c70a1e04ec916ec6b236841a00d471322f 100644 (file)
@@ -33,8 +33,8 @@
 
 package Support::Files;
 
-@additional_files = ('syncshadowdb');
-@exclude_files    = ('processmail','importxml.pl');
+@additional_files = ('syncshadowdb','processmail');
+@exclude_files    = ('importxml.pl');
 
 $file = '*';
 @files = glob($file);