]>
The Tcpdump Group git mirrors - tcpdump/blob - tests/TESTonce
3 system("mkdir -p NEW DIFF");
6 open(TESTLIST
, "TESTLIST") || die "can not open TESTLIST: $!\n";
8 #print "Searching for test case $wanted\n";
10 #print "Processing $_\n";
11 next unless (/^$wanted/);
14 ($name,$input,$output,$options)=split(/\s+/,$_, 4);
19 die "Can not find test $wanted\n" unless defined($input);
27 print "Usage: TESTonce name [input output options]\n";
31 print "Running $name. \n";
32 print " Input: $input, OUTPUT: $output, OPTIONS: $options\n";
35 ($puu = $input) =~ s/\.pcap/\.puu/;
37 print "Uudecoding $puu to make $input\n";
38 system("uudecode $puu");
43 exec("../tcpdump -n -r $input $options | tee NEW/$output | diff -w - $output >DIFF/$output.diff");
44 @cores = glob("core*");
45 exit 10 if (@cores > 0);