From 4ca718f8da49face1131f4869ebea13e01ca28cc Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Thu, 6 Nov 2014 20:21:05 -0500 Subject: [PATCH] [test suite] allow valgrind/crash search/profile coverage tests to run after --test-limit --- test/test-fwknop.pl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/test-fwknop.pl b/test/test-fwknop.pl index ea06c9c9..529d1f21 100755 --- a/test/test-fwknop.pl +++ b/test/test-fwknop.pl @@ -891,10 +891,16 @@ for my $test_hr (@tests) { &logr("[+] Total test buckets to execute: $test_buckets\n\n"); ### main loop through all of the tests +my $run_flag = 1; for my $test_hr (@tests) { - &run_test($test_hr); + if ($run_flag + or $test_hr->{'category'} eq 'valgrind output' + or $test_hr->{'category'} eq 'Look for crashes' + or $test_hr->{'category'} eq 'profile coverage') { + &run_test($test_hr); + } if ($test_limit > 0) { - last if $executed >= $test_limit; + $run_flag = 0 if $executed >= $test_limit; } }