diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-02-14 07:52:47 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-02-14 07:52:47 -0800 |
commit | 370a9eb242948815567a721bfae91866c3184683 (patch) | |
tree | 53509c7c06ea7b3dbf613b19daafaeba41e1e06b /tests | |
parent | f18e1281886b5300c62ad362d77aaecd32c0b1d3 (diff) | |
download | txr-370a9eb242948815567a721bfae91866c3184683.tar.gz txr-370a9eb242948815567a721bfae91866c3184683.tar.bz2 txr-370a9eb242948815567a721bfae91866c3184683.zip |
tests: test case for combining .tlo files.
* tests/018/combine-tlo.tl: New file.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/018/combine-tlo.tl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/018/combine-tlo.tl b/tests/018/combine-tlo.tl new file mode 100644 index 00000000..e2dc0f83 --- /dev/null +++ b/tests/018/combine-tlo.tl @@ -0,0 +1,27 @@ +(load "../common") + +(push-after-load + (remove-path "libfile.tl") + (remove-path "libfile.tlo") + (remove-path "mainfile.tl") + (remove-path "mainfile.tlo") + (remove-path "progfile")) + +(file-put-lines + "libfile.tl" + ^(,`#!@{txr-exe-path} --lisp` + "(defun libfun ()" + " (put-line \"libfun\"))")) + +(file-put-lines + "mainfile.tl" + '("(compile-only (libfun))")) + +(compile-file "./libfile") +(compile-file "./mainfile") + +(cat-files "progfile" "libfile.tlo" "mainfile.tlo") + +(chmod "progfile" "+x") + +(test (command-get-lines "./progfile") ("libfun")) |