]> The Tcpdump Group git mirrors - tcpdump/commitdiff
tests: Remove debugging leftovers from TESTrun.
authorDenis Ovsienko <[email protected]>
Tue, 10 Dec 2024 12:03:34 +0000 (12:03 +0000)
committerGuy Harris <[email protected]>
Tue, 17 Dec 2024 01:25:51 +0000 (17:25 -0800)
(cherry picked from commit 61861f30e082d269fe698ab9dfe056ff4ed2a19e)

tests/TESTrun

index bf95e46077e1e9e761a5ce79977f6bf61903571d..f5f0454787f320d07cd403692daecb1dbcf3b862 100755 (executable)
@@ -29,7 +29,6 @@ use POSIX qw( WEXITSTATUS WIFEXITED);
 use Cwd qw(abs_path getcwd);
 use File::Path qw(mkpath);   # mkpath works with ancient perl, as well as newer perl
 use File::Spec;
-use Data::Dumper;            # for debugging.
 
 # these are created in the directory where we are run, which might be
 # a build directory.
@@ -290,8 +289,6 @@ sub runtest {
         }
     }
 
-    #print sprintf("END: %08x\n", $r);
-
     if($r == 0) {
         if($linecount == 0) {
             printf "    %-40s: passed\n", $name;
@@ -364,12 +361,10 @@ sub loadconfighash {
     while(<CONFIG_H>) {
         chomp;
         if(/^\#define (.*) 1/) {
-            #print "Setting $1\n";
             $main::confighhash->{$1} = 1;
         }
     }
     close(CONFIG_H);
-    #print Dumper($main::confighhash);
 
     # also run tcpdump --fp-type to get the type of floating-point
     # arithmetic we're doing, setting a HAVE_{fptype} key based
@@ -421,7 +416,6 @@ sub runOneComplexTest {
     my $configset = $testconfig->{config_set};
     my $configunset = $testconfig->{config_unset};
     my $ch = loadconfighash();
-    #print Dumper($ch);
 
     if(defined($configset)) {
         $foundit = ($ch->{$configset} == 1);
@@ -442,9 +436,6 @@ sub runOneComplexTest {
         return 0;
     }
 
-    #use Data::Dumper;
-    #print Dumper($testconfig);
-
     # EXPAND any occurrences of @TESTDIR@ to $testsdir
     $options =~ s/\@TESTDIR\@/$testsdir/;
 
@@ -474,11 +465,8 @@ sub runComplexTests {
             $definitions = <FILE>;
         }
         close(FILE);
-        #print "STUFF: ${definitions}\n";
         eval $definitions;
         if(defined($testlist)) {
-            #use Data::Dumper;
-            #print Dumper($testlist);
             foreach $test (@$testlist) {
                 runOneComplexTest($test);
             }
@@ -499,12 +487,9 @@ sub runSimpleTests {
 
         unlink("core");
         ($name, $input, $output, @options) = split;
-        #print "processing ${only} vs ${name}\n";
         next if(defined($only) && $only ne $name);
 
         my $options = join(" ", @options);
-        #print "@{options} becomes ${options}\n";
-
         my $hash = { name => $name,
                      input=> $input,
                      output=>$output,