Real test coverage dor SAVE_TAMPERING.
[open-adventure.git] / tests / Makefile
index 1bd9311ff135d40d83031cf2d2eb67391c0e8550..e33e684b1c4fcd0d855e5a24de630fb1c054d6ab 100644 (file)
@@ -52,6 +52,8 @@ savegames:
        @$(PARDIR)/cheat -d -900 -o cheat_numdie.adv > /tmp/cheat_numdie
        @$(ECHO) "cheat: Generate save file with -1000 deaths"
        @$(PARDIR)/cheat -d -1000 -o cheat_numdie1000.adv > /tmp/cheat_numdie1000
+       @$(ECHO) "cheat: Generate tamper-detection test"
+       @$(PARDIR)/cheat -d 2000 -o cheat_savetamper.adv > /tmp/cheat_savetamper
        @$(ECHO) "cheat: Generate save file with version -1337"
        @$(PARDIR)/cheat -v -1337 -o resume_badversion.adv > /tmp/cheat_badversion
        @$(ECHO) "cheat: Generate save file 1000 saves"
@@ -93,7 +95,7 @@ buildchecks: savegames
            OPTS=`sed -n /#options:/s///p <$${file}.log`; \
            advent $$OPTS <$${file}.log >$${file}.chk 2>&1 || exit 1; \
        done; \
-       echo "inven" | advent isofoo.log /dev/stdin >multifile.chk
+       echo "inven" | advent isofoo.log /dev/stdin >multifile.chk; \
        rm -f scratch.tmp
 
 RUN_TARGETS=$(TESTLOADS:%=run-regress-%)
@@ -108,6 +110,7 @@ multifile-regress:
 TEST_TARGETS = $(RUN_TARGETS) multifile-regress
 
 tap: count $(TEST_TARGETS)
+       rm -f scratch.tmp
 count:
        @echo 1..$(words $(TEST_TARGETS))