From 53074fb1eab1088d829a9a3f5aa02797a6fd540e Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 26 May 2017 00:37:24 -0400 Subject: [PATCH] Regression-test machinery is now documented. --- README | 2 ++ TODO | 7 ++----- tests/README | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 tests/README diff --git a/README b/README index 7605cce..3426278 100644 --- a/README +++ b/README @@ -15,3 +15,5 @@ original 6-character name on the PDP-10 has been reverted to for the executable in order to avoid a collision with the BSD games port of the ancestral 1977 version. +You can run a regression test on the code with 'make check'. + diff --git a/TODO b/TODO index 681e959..777e941 100644 --- a/TODO +++ b/TODO @@ -1,11 +1,8 @@ = Open Adventure TODO = -* Update the command parser to accept a PRNG seed value. +* Find the extra 5 treasures. -* Add command log replay. Note that the replay log needs to begin - with the random-number seed. - -* Use that feature to make regression tests from walkthroughs. +* Make more regression tests from walkthroughs. * Translate the FORTRANish mess to actual C. diff --git a/tests/README b/tests/README new file mode 100644 index 0000000..94fbe2d --- /dev/null +++ b/tests/README @@ -0,0 +1,16 @@ += Notes on the test machinery = + +A .tst extension means it's a game log +A .chk extension means it's expected output from a test + +In general, a file named foo.chk is the expected output from theb game log +foo.log. To add new tests, just drop log files in this directory. + +To see summary lines from all tests, 'make testlist'. + +To run the tests, "make regress". + +To remake the check files, "make buildregress". + +// end + -- 2.31.1