.SUFFIXES: .chk
clean:
- rm -fr *~ adventure.text *.adv scratch.tmp
+ rm -fr *~ *.adv scratch.tmp *.ochk
# Show summary lines for all tests.
testlist:
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
--- /dev/null
+#!/bin/sh
+#
+# Filter the output from advent430 to make it compatible with
+# newer ones
+sed \
+ -e '/ *$/s///' \
+ -e '/bridge now spans the fissure/s//bridge spans the fissure/' \
+ -e '/imbedded/s//embedded/' \
+ -e '/persian/s//Persian/' \
+ -e '/swiss/s//Swiss/' \
+ -e '/eying/s//eyeing/' \
+ -e '/swiss/s//Swiss/' \
+ -e '/thresholds/s//threshholds/' \
+
+
+#end
+