aboutsummaryrefslogtreecommitdiff
path: root/tests/TESTonce
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TESTonce')
-rwxr-xr-xtests/TESTonce15
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/TESTonce b/tests/TESTonce
index 40d544b04f44..c5bcb34b0773 100755
--- a/tests/TESTonce
+++ b/tests/TESTonce
@@ -1,5 +1,6 @@
#!/usr/bin/perl
+$debug = 0;
system("mkdir -p NEW DIFF");
if(@ARGV == 1) {
@@ -28,19 +29,11 @@ if(@ARGV == 1) {
exit 20;
}
-print "Running $name. \n";
-print " Input: $input, OUTPUT: $output, OPTIONS: $options\n";
-
-if (! -f $input) {
- ($puu = $input) =~ s/\.pcap/\.puu/;
- if( -f $puu) {
- print "Uudecoding $puu to make $input\n";
- system("uudecode $puu");
- }
-}
+print "Running $name. \n" if $debug;
+print " Input: $input, OUTPUT: $output, OPTIONS: $options\n" if $debug;
print " ";
-exec("../tcpdump -n -r $input $options | tee NEW/$output | diff -w - $output >DIFF/$output.diff");
+exec("../tcpdump 2>/dev/null -n -r $input $options | tee NEW/$output | diff -w - $output >DIFF/$output.diff");
@cores = glob("core*");
exit 10 if (@cores > 0);
exit 0;