]> The Tcpdump Group git mirrors - tcpdump/commitdiff
tests: Print the number of skipped tests. [skip ci]
authorDenis Ovsienko <[email protected]>
Sun, 28 Jul 2024 18:06:47 +0000 (19:06 +0100)
committerDenis Ovsienko <[email protected]>
Sun, 28 Jul 2024 18:06:47 +0000 (19:06 +0100)
tests/TESTrun

index 8fb6f98b5b09eae516a0ed66afe97f0919b98ab5..0a1a255ccc82991d7da1b80d7e0bb8afd5761024 100755 (executable)
@@ -66,6 +66,7 @@ unshift(@INC, $testsdir);
 
 $passedcount = 0;
 $failedcount = 0;
 
 $passedcount = 0;
 $failedcount = 0;
+$skippedcount = 0;
 #
 my $failureoutput=$origdir . "/tests/failure-outputs.txt";
 
 #
 my $failureoutput=$origdir . "/tests/failure-outputs.txt";
 
@@ -420,11 +421,13 @@ sub runOneComplexTest {
 
     if(!$foundit) {
         printf "    %-40s: skipped (%s not set)\n", $name, $configset;
 
     if(!$foundit) {
         printf "    %-40s: skipped (%s not set)\n", $name, $configset;
+        $skippedcount++;
         return 0;
     }
 
     if(!$unfoundit) {
         printf "    %-40s: skipped (%s set)\n", $name, $configunset;
         return 0;
     }
 
     if(!$unfoundit) {
         printf "    %-40s: skipped (%s set)\n", $name, $configunset;
+        $skippedcount++;
         return 0;
     }
 
         return 0;
     }
 
@@ -509,6 +512,7 @@ if(scalar(@ARGV) == 0) {
 
 # exit with number of failing tests.
 print "------------------------------------------------\n";
 
 # exit with number of failing tests.
 print "------------------------------------------------\n";
+printf("%4u tests skipped\n",$skippedcount);
 printf("%4u tests failed\n",$failedcount);
 printf("%4u tests passed\n",$passedcount);
 
 printf("%4u tests failed\n",$failedcount);
 printf("%4u tests passed\n",$passedcount);