Skip to content

Commit c393c69

Browse files
committed
Use variables to point to source and secd machine Lispkit compilers.
1 parent 54f6620 commit c393c69

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed
File renamed without changes.
File renamed without changes.

test.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
CMD=./lispkit
4+
COMPILER_SRC=./compiler.lisp
5+
COMPILER_OBJ=./compiler.secd
46

57
for f in `ls tests/execute-??`
68
do
@@ -12,11 +14,11 @@ done
1214
for f in `ls tests/compile-??`
1315
do
1416
echo "Running compiler test $f ..."
15-
if [ ! -f compiler.ascii ]; then echo "no compiler" && exit -1; fi;
16-
$CMD compiler.ascii $f
17+
if [ ! -f $COMPILER_OBJ ]; then echo "no compiler" && exit -1; fi;
18+
$CMD $COMPILER_OBJ $f
1719
if [ $? -ne 0 ]; then exit -1; fi;
1820
done
1921

2022
echo "Bootstrapping ..."
21-
$CMD compiler.ascii compiler.txt.ascii
23+
$CMD $COMPILER_OBJ $COMPILER_SRC
2224

0 commit comments

Comments
 (0)