X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tests%2FMakefile;h=dd04170eb92b50c4f7959fc27ceea644d10ec033;hb=a6e80af64f5e5e4c8c9d0df7914f1911da05af28;hp=b364432475082e487d58b2af6b27bd81cd09a4e5;hpb=4446c61d5fcde70839a8cf3bc88b8463af0e5242;p=open-adventure.git diff --git a/tests/Makefile b/tests/Makefile index b364432..dd04170 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -26,7 +26,7 @@ check: savecheck regress coverage: check lcov -t "advent" -o ../advent.info -c -d .. --gcov-tool=$(GCOV) genhtml -o ../coverage/ ../advent.info - python3 coverage_dungeon.py + ./coverage_dungeon.py .SUFFIXES: .chk @@ -43,8 +43,10 @@ listcheck: # Generate bogus savegames. savegames: + @$(ECHO) "cheat: Generate save file with -900 deaths" + @../cheat -d -900 -o cheat_numdie.adv > /tmp/cheat_numdie @$(ECHO) "cheat: Generate save file with -1000 deaths" - @../cheat -d -1000 -o cheat_numdie.adv > /tmp/cheat_numdie + @../cheat -d -1000 -o cheat_numdie1000.adv > /tmp/cheat_numdie1000 @$(ECHO) "cheat: Generate save file with version -1337" @../cheat -v -1337 -o resume_badversion.adv > /tmp/cheat_badversion @$(ECHO) "cheat: Generate save file 1000 saves" @@ -77,7 +79,7 @@ savecheck: savegames @../cheat -o / 2> /tmp/coverage_cheat_badoutput | true @$(ECHO) "TEST advent: Start with invalid file with -r" @advent -r /badfilename < pitfall.log > /tmp/coverage_advent_readfail 2>&1 || exit 1 - @$(ECHO) "TEST advent: Start with invalid file with -r" + @$(ECHO) "TEST advent: Start with invalid file with -l" @advent -l / < pitfall.log > /tmp/coverage_advent_logfail 2>&1 || exit 1 @$(ECHO) "TEST advent: Test -r with valid input" @advent -r thousand_saves.adv < pitfall.log > /tmp/coverage_advent_readfail 2>&1 || exit 1