diff options
author | Kaz Kylheku <kazkylheku@vtech.ca> | 2021-04-12 06:30:41 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-04-12 06:30:41 -0700 |
commit | 84d83825378ae0b81d40f94366aee261eb256be9 (patch) | |
tree | f8c25e6aaef5ab4449ba379059074f1f97d62275 /tests | |
parent | 7c9f2088270703691a896bed071c84cf9b88abbd (diff) | |
download | txr-84d83825378ae0b81d40f94366aee261eb256be9.tar.gz txr-84d83825378ae0b81d40f94366aee261eb256be9.tar.bz2 txr-84d83825378ae0b81d40f94366aee261eb256be9.zip |
tests: implicitly generate empty .expected files.
Makefile (%.expected): New implicit rule. Whenever a test requires a
.expected file, if it is missing, we create an empty one.
This file will be treated as an intermediate by GNU Make, which means
that it will be deleted when make terminates.
* tests/012/compile.tl: Some of the .tl files no longer have
an .expected file, so we have to test for that in the
catenating logic.
* tests/008/call-2.expected,
* tests/008/no-stdin-hang.expected,
* tests/011/macros-3.expected,
* tests/011/patmatch.expected,
* tests/012/aseq.expected,
* tests/012/ashwin.expected,
* tests/012/compile.tl,
* tests/012/cont.expected,
* tests/012/defset.expected,
* tests/012/ifa.expected,
* tests/012/oop-seq.expected,
* tests/012/parse.expected,
* tests/012/quasi.expected,
* tests/012/quine.expected,
* tests/012/seq.expected,
* tests/012/struct.expected,
* tests/012/stslot.expected,
* tests/014/dgram-stream.expected,
* tests/014/in6addr-str.expected,
* tests/014/inaddr-str.expected,
* tests/014/socket-basic.expected,
* tests/015/awk-fconv.expected,
* tests/015/split.expected,
* tests/015/trim.expected,
* tests/016/arith.expected,
* tests/016/ud-arith.expected,
* tests/017/ffi-misc.expected,
* tests/018/chmod.expected: Empty file deleted.
Diffstat (limited to 'tests')
28 files changed, 4 insertions, 2 deletions
diff --git a/tests/008/call-2.expected b/tests/008/call-2.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/008/call-2.expected +++ /dev/null diff --git a/tests/008/no-stdin-hang.expected b/tests/008/no-stdin-hang.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/008/no-stdin-hang.expected +++ /dev/null diff --git a/tests/011/macros-3.expected b/tests/011/macros-3.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/011/macros-3.expected +++ /dev/null diff --git a/tests/011/patmatch.expected b/tests/011/patmatch.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/011/patmatch.expected +++ /dev/null diff --git a/tests/012/aseq.expected b/tests/012/aseq.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/012/aseq.expected +++ /dev/null diff --git a/tests/012/ashwin.expected b/tests/012/ashwin.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/012/ashwin.expected +++ /dev/null diff --git a/tests/012/compile.tl b/tests/012/compile.tl index 36a285d3..f5b260cf 100644 --- a/tests/012/compile.tl +++ b/tests/012/compile.tl @@ -6,7 +6,9 @@ (each ((f '#"aseq.tl ashwin.tl circ.tl cont.tl defset.tl except.tl \ fini.tl ifa.tl man-or-boy.tl oop-mi.tl oop-seq.tl oop.tl \ parse.tl quasi.tl quine.tl seq.tl stslot.tl")) - (file-append-string %expected-file% - (file-get-string `@{%this-dir%}/@(m^ #/.*[.]/ f)expected`)) + (let ((exf `@{%this-dir%}/@(m^ #/.*[.]/ f)expected`)) + (when (path-exists-p exf) + (file-append-string %expected-file% + (file-get-string exf)))) (compile-file f "temp.tlo") (remove-path "temp.tlo")) diff --git a/tests/012/cont.expected b/tests/012/cont.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/012/cont.expected +++ /dev/null diff --git a/tests/012/defset.expected b/tests/012/defset.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/012/defset.expected +++ /dev/null diff --git a/tests/012/ifa.expected b/tests/012/ifa.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/012/ifa.expected +++ /dev/null diff --git a/tests/012/oop-seq.expected b/tests/012/oop-seq.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/012/oop-seq.expected +++ /dev/null diff --git a/tests/012/parse.expected b/tests/012/parse.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/012/parse.expected +++ /dev/null diff --git a/tests/012/quasi.expected b/tests/012/quasi.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/012/quasi.expected +++ /dev/null diff --git a/tests/012/quine.expected b/tests/012/quine.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/012/quine.expected +++ /dev/null diff --git a/tests/012/seq.expected b/tests/012/seq.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/012/seq.expected +++ /dev/null diff --git a/tests/012/struct.expected b/tests/012/struct.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/012/struct.expected +++ /dev/null diff --git a/tests/012/stslot.expected b/tests/012/stslot.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/012/stslot.expected +++ /dev/null diff --git a/tests/014/dgram-stream.expected b/tests/014/dgram-stream.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/014/dgram-stream.expected +++ /dev/null diff --git a/tests/014/in6addr-str.expected b/tests/014/in6addr-str.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/014/in6addr-str.expected +++ /dev/null diff --git a/tests/014/inaddr-str.expected b/tests/014/inaddr-str.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/014/inaddr-str.expected +++ /dev/null diff --git a/tests/014/socket-basic.expected b/tests/014/socket-basic.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/014/socket-basic.expected +++ /dev/null diff --git a/tests/015/awk-fconv.expected b/tests/015/awk-fconv.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/015/awk-fconv.expected +++ /dev/null diff --git a/tests/015/split.expected b/tests/015/split.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/015/split.expected +++ /dev/null diff --git a/tests/015/trim.expected b/tests/015/trim.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/015/trim.expected +++ /dev/null diff --git a/tests/016/arith.expected b/tests/016/arith.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/016/arith.expected +++ /dev/null diff --git a/tests/016/ud-arith.expected b/tests/016/ud-arith.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/016/ud-arith.expected +++ /dev/null diff --git a/tests/017/ffi-misc.expected b/tests/017/ffi-misc.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/017/ffi-misc.expected +++ /dev/null diff --git a/tests/018/chmod.expected b/tests/018/chmod.expected deleted file mode 100644 index e69de29b..00000000 --- a/tests/018/chmod.expected +++ /dev/null |