regression: Support executing subsets of the regression list.

This commit is contained in:
Solomon Peachy 2018-09-21 15:16:52 -04:00
parent f302586243
commit 72f591e749
2 changed files with 7 additions and 2 deletions

View File

@ -88,6 +88,10 @@ test: dyesub_backend
./regression.pl < regression.csv 2>&1 |grep FAIL ; \
if [ $$? -eq 0 ] ; then exit 1 ; fi
test_%: dyesub_backend
cat regression.csv | grep $(subst test_,,$@) | ./regression.pl 2>&1 |grep FAIL ; \
if [ $$? -eq 0 ] ; then exit 1 ; fi
cppcheck:
$(CPPCHECK) -q -v --std=c99 --enable=all --suppress=variableScope --suppress=selfAssignment --suppress=unusedStructMember -I. -I/usr/include -DCORRTABLE_PATH=\"$(BACKEND_DATA_DIR)\" --include=lib70x/libMitsuD70ImageReProcess.h $(CPPFLAGS) $(SOURCES)

View File

@ -7,6 +7,7 @@ my $retval = 0;
while (<STDIN>) {
chomp;
next if /^#/;
s/(.+)#.*/$1/;
my @row = split(/,/);
$ENV{"TEST_MODE"} = "2";
@ -15,7 +16,7 @@ while (<STDIN>) {
$ENV{"EXTRA_PID"} = $row[2];
$ENV{"MEDIA_CODE"} = $row[4];
print "***** $row[0] $row[1] $row[2] $row[3]\n";
print "***** $row[0] $row[1] $row[2] $row[3] $row[4]\n";
foreach (my $i = 1; $i <= $copies ; $i++) {
my @args = ("valgrind", "./dyesub_backend", "-d", $i, "testjobs/${row[3]}");
@ -26,7 +27,7 @@ while (<STDIN>) {
print "***** FAIL: failure to launch ($rval)\n";
$retval++;
} elsif ($rval > 0) {
print "***** FAIL: failure to parse/execute ($rval) $row[0] $row[1] $row[2] $row[3] \n";
print "***** FAIL: failure to parse/execute ($rval) $row[0] $row[1] $row[2] $row[3] $row[4]\n";
$retval++;
} else {
print "***** PASS\n";