Commit graph

29 commits

Author SHA1 Message Date
Simon Howard
c97b9c8ac0 Update scripts for Python 3 compatibility. 2019-05-15 22:09:58 -04:00
Simon Howard
3f60ab8fca Write lmp file and output txt file to temp dir.
Since these files are temporary they should ideally never touch any
permanent storage (they can be written to an in-memory tmpfs filesystem
on most OSes). Plus, it's just better practice to not write a ton of
temp files to the working directory.
2019-05-15 21:47:22 -04:00
Simon Howard
e7a2f21532 Ditch the wxWindows dependency.
I think I only added this because I was using an older version of macOS
that opened many different windows continually while running the demos.
Recent versions don't suffer from this problem any more. Furthermore, this
makes the script easier to run on headless machines.
2019-05-15 21:38:01 -04:00
Simon Howard
af69acb35f Add --strip-trailing-cr to diff command line.
At Fabian's suggestion.
2015-06-13 12:35:22 -04:00
Simon Howard
dd25913fff Add exceptions for TNT demos recorded with v1.9. 2015-06-12 23:46:36 -04:00
Simon Howard
31d02385a2 Add exceptions file for Final Doom demos.
Some demo outputs were zero length because they were recorded with
the "alternate" version of Final Doom included with the id anthology.
So add an exceptions file that lists these, and fix the expected
outputs for these files.

This is the first step towards a fix for #1.
2015-06-12 23:12:28 -04:00
Simon Howard
80ff0cb772 Allow multiple file patterns on the command line.
When debugging desyncs, it's useful to be able to re-run a bunch of
previous failures. For example:

  python regression-test $(cat previous-fails.txt)

To be able to do this it's necessary to be able to specify multiple
patterns on the command line. This is in keeping with other Unix tools
that do the same.
2015-06-09 19:53:02 -04:00
Simon Howard
4bb0c9b193 Update mm09-512.lmp expected output.
Since chocolate-doom/chocolate-doom#368 was fixed, this demo now plays
back correctly. So add the correct expected output for this demo so
that the test runs correctly.
2015-06-08 19:50:08 -04:00
Simon Howard
cc3bccd9a1 Add notes for PWAD config. 2011-10-29 21:30:19 +01:00
Simon Howard
a7cdce160b Add reference files for PWADs. 2011-10-29 21:14:40 +01:00
Simon Howard
69fd1c1007 Add PWAD when running test. 2011-10-29 19:17:35 +01:00
Simon Howard
1f6caae06f Use SDL's "dummy" video driver.
The dummy driver runs the program as normal but does not even open
a window. This should speed things up considerably.
2011-10-29 17:07:08 +01:00
Simon Howard
5ba3a453f6 Place SDL windows at a fixed window position. 2011-10-29 16:58:52 +01:00
Simon Howard
a138d04fbc Add output to show demos processed. 2011-10-29 16:49:33 +01:00
Simon Howard
dc8602f057 Update Vanilla processing script to use pipelining. 2011-10-29 16:46:35 +01:00
Simon Howard
45e6424def Add tools needed for processing. 2011-10-29 16:20:58 +01:00
Simon Howard
d72ea747a7 Add support for processing PWAD demos. 2011-10-29 16:20:03 +01:00
Simon Howard
02950b467d Speed up processing of unidentified files.
ZIP files in pwads/ cannot be processed at the moment, but slow down
testing as each idle call processes only a single ZIP. Check that
game type can be identified when building the initial set of ZIPs and
exclude those that cannot.
2011-10-29 14:33:45 +01:00
Simon Howard
cc6732183d Add pipelining to demo processing.
Spawn multiple processes in parallel to process demos. A variable
in config.py controls how many processes to run at a time.
2011-10-25 21:46:53 +01:00
Simon Howard
49bca1174c Add small GUI for pausing/stopping processing.
Lots of windows pop up while the regression test is running, which makes
typing ^Z or ^C in the terminal difficult. Add a small wxPython GUI with
clickable buttons to pause or abort processing.
2011-10-25 01:39:12 +01:00
Simon Howard
41f5332a58 Set execute permissions on scripts.
Also add some brief description comments.
2011-10-22 01:48:13 +01:00
Simon Howard
ebe2e38090 Add correct output for several demos that fail.
For some reason that I'm unable to determine, certain demos exit with a
V_DrawPatch error when they are played back using statdump.exe and
the -nodraw parameter. Because of this, the statistics information is
not recorded. I have manually recorded the correct output from these
demos to fix the problem.
2011-10-22 01:38:29 +01:00
Simon Howard
dcfa681a02 Flush stdout after each test result.
This allows the output to be piped through tee for logging.
2011-10-21 23:56:12 +01:00
Simon Howard
22d7395660 Add README file. 2011-10-21 22:39:07 +01:00
Simon Howard
975ff15ced Add -nogui to disable error GUI window. 2011-10-21 22:38:43 +01:00
Simon Howard
92f2fb03fe Allow wildcard to specify tests on command line. 2011-10-21 22:23:53 +01:00
Simon Howard
816d801f7d Show pass/fail counts at end of testing. 2011-10-21 22:16:54 +01:00
Simon Howard
e1fe560d70 Add copyright headers. 2011-10-21 22:09:41 +01:00
Simon Howard
3ec0973b80 Initial code for statdump regression testing. 2011-10-21 22:07:00 +01:00