X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tests%2FMakefile;h=8ea00c6e6d73ac0fe381aa06b4c11a9c11e574be;hb=9b89dd2829c4d8315f35e2d80b44542c3f2b4115;hp=e33e684b1c4fcd0d855e5a24de630fb1c054d6ab;hpb=17840d0e158e47e6dba3d62b4b8cdcf97071d924;p=open-adventure.git diff --git a/tests/Makefile b/tests/Makefile index e33e684..8ea00c6 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -36,7 +36,7 @@ check: savecheck .SUFFIXES: .chk clean: - rm -fr *~ adventure.text *.adv scratch.tmp + rm -fr *~ *.adv scratch.tmp *.ochk # Show summary lines for all tests. testlist: @@ -114,4 +114,12 @@ tap: count $(TEST_TARGETS) count: @echo 1..$(words $(TEST_TARGETS)) +# The following machinery tests the gane against a binary made from the advent430 branch +# The diff file produced has new spellings in it. + +ancient: + for x in *.log; do stem=$${x%.log}; echo $${stem}; ./advent430 <$${stem}.log | ./oldfilter >$${stem}.ochk; done + for x in *.log; do stem=$${x%.log}; diff -u $${stem}.chk $${stem}.log; done + rm *.ochk + # end