blob: e2dc0f836e18f0be6e7edc5da41479fa35f2198c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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"))
|