Skip to content

Commit

Permalink
Remove old interpreter input when running tests (#864)
Browse files Browse the repository at this point in the history
This PR makes a small change to the `lit` lines we use to run checks on
interpreter output; currently they can receive partially stale input if
the test suite has previously been run. The solution is simply to remove
any old output from previous interpreter runs before we run them again.

Fixes #863
  • Loading branch information
Baltoli authored Oct 17, 2023
1 parent a859fb6 commit fe3c99f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ def one_line(s):
done
''')),

('%run-binary-out', '%t.interpreter %test-input -1 %t.out.bin --binary-output'),
('%run-binary', '%convert-input && %t.interpreter %t.bin -1 /dev/stdout'),
('%run-proof-out', '%t.interpreter %test-input -1 %t.out.bin --proof-output'),
('%run-binary-out', 'rm -f %t.out.bin && %t.interpreter %test-input -1 %t.out.bin --binary-output'),
('%run-binary', 'rm -f %t.bin && %convert-input && %t.interpreter %t.bin -1 /dev/stdout'),
('%run-proof-out', 'rm -f %t.out.bin && %t.interpreter %test-input -1 %t.out.bin --proof-output'),
('%run', '%t.interpreter %test-input -1 /dev/stdout'),

('%kprint-check', 'kprint %S %s true | diff - %s.out'),
Expand Down

0 comments on commit fe3c99f

Please sign in to comment.