]>
The Tcpdump Group git mirrors - tcpdump/blob - tests/TESTonce
4 system("mkdir -p NEW DIFF");
7 open(TESTLIST
, "TESTLIST") || die "can not open TESTLIST: $!\n";
9 #print "Searching for test case $wanted\n";
11 #print "Processing $_\n";
12 next unless (/^$wanted/);
15 ($name,$input,$output,$options)=split(/\s+/,$_, 4);
20 die "Can not find test $wanted\n" unless defined($input);
28 print "Usage: TESTonce name [input output options]\n";
32 print "Running $name. \n" if $debug;
33 print " Input: $input, OUTPUT: $output, OPTIONS: $options\n" if $debug;
36 ($puu = $input) =~ s/\.pcap/\.puu/;
38 print "Uudecoding $puu to make $input\n";
39 system("uudecode $puu");
44 exec("../tcpdump 2>/dev/null -n -r $input $options | tee NEW/$output | diff -w - $output >DIFF/$output.diff");
45 @cores = glob("core*");
46 exit 10 if (@cores > 0);