summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-03-16 22:09:21 +1300
committerDavid Phillips <david@sighup.nz>2019-03-16 22:09:21 +1300
commit8a7469af2fc59cf33094b7f5c21f7c9396c7b7cb (patch)
tree2a2ec4d27fc859da10353acbad00cd0ea240241f
parent40ed951cb966442f975856d6c8c660b94fd57862 (diff)
downloadsudoku-master.tar.xz
Allow comments in xfails, fail make on test failureHEADmaster
-rw-r--r--Makefile2
-rwxr-xr-xrun_tests.sh2
-rw-r--r--test/xfails2
3 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f8dc3da..0899a80 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ update.o: update.c cell.h display.h
.PHONY: test
test: test-solver
- - ./run_tests.sh
+ ./run_tests.sh
clean:
rm -f *.o solver test-solver
diff --git a/run_tests.sh b/run_tests.sh
index a5ebb81..e185b3f 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -10,7 +10,7 @@ XFAILS="$PWD/test/xfails"
test_fail() {
t="$(basename $1)"
reason="$2"
- if grep -q "$t" "$XFAILS" ; then
+ if grep -q "^$t\b" "$XFAILS" ; then
echo -e '[\e[34;1mXFAIL\e[0m]'" $t: $reason"
((t_xfail++))
else
diff --git a/test/xfails b/test/xfails
index 75c1fd5..64c817c 100644
--- a/test/xfails
+++ b/test/xfails
@@ -1 +1 @@
-100-medium
+100-medium - Solver cannot yet make uncertain/exploratory steps