# The diff file produced has corrected spellings in it. That's what oldfilter
# is for, to massage out the orioginal dpellings and avoid noise diffs.
# Diffs in amount of whitespace and trailing whitespace are ignored
-
+#
+# A magic comment of NOCOMPARE in a log file excludes it from this comparison.
+# First use of this is to avoid a spurious mismatch on the news text.
+TAPFILTER=tapview
ancient: $(SGAMES)
@if [ -f ../advent430 ]; then cp ../advent430 ../adventure.data .; else echo "advent430 nonexistent"; exit 1; fi
- @-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}; legend=$$(sed -n '/^## /s///p' <$$x 2>/dev/null || echo "(no description)"); ./newfilter <$${stem}.chk | tapdiffer -w "$${legend}" $${stem}.ochk; done; echo 1..$(words $(shell ls *.log))) | tapview
+ @-(for x in *.log; do \
+ stem=$${x%.log}; \
+ legend=$$(sed -n '/^## /s///p' <$$x 2>/dev/null || echo "(no description)"); \
+ if grep NOCOMPARE $$x >/dev/null; \
+ then echo "not ok - $${stem}.ochk: $${legend} # SKIP"; \
+ else \
+ ./advent430 <$${stem}.log | oldfilter >$${stem}.ochk; \
+ ./newfilter <$${stem}.chk | tapdiffer -w "$${stem}: $${legend}" $${stem}.ochk; \
+ fi; \
+ done; \
+ echo 1..$(words $(shell ls *.log))) | $(TAPFILTER)
@rm *.ochk advent430 adventure.data
# end
## Verify that the bird is weightless in inventory
# Checks fix for GitLab issue #40
+#NOCOMPARE Bird was not weightless in cage in advent430 so this test is invalid.
n
#seed 687800971
seed 976729036
### Check that water is unavailable in endgame
# Addresses GitLab issue #55: in endgame, some object starting states are incorrect
+#NOCOMPARE Bird was not weightless in cade in advent430, this test depends on that.
no
seed 11247848
no
## Resume from invalid filename
+#NOCOMPARE advent430 crashes on resume fom invalid filename and we don't care.
n
seed 1240742801
resume
y
-/badfilename
\ No newline at end of file
+/badfilename
-## Resume from from generated save with version mismatch error
+## Resume from from generated save with version mismatch error
+#NOCOMPARE Reveals a bug in advent430 handling of saves with invalid versions.
n
resume
y
## Save right after starting to invalid filename
+#NOCOMPARE advent430 crashes on save to invalid filename and we don't care.
n
seed 1240742801
save
y
-/
\ No newline at end of file
+/
## Almost win, then save
# Based on walkthrough at http://www.ecsoftwareconsulting.com/node/56
+#NOCOMPARE seems to reveal a bug in advent430
n
seed 1838473132
in
save
y
saveresume_win.adv
-y
\ No newline at end of file
+y
## Resume, then win
# Here to get class threshold of 426
# Note, savefile name has trailing space
+#NOCOMPARE Reveals that advent430 does not resume in endgame gracefully.
n
resume
y
## Test special words
+#NOCOMPARE The news text has changed
n
thank
shazam