Skip to content

Commit bfd868a

Browse files
committed
Support running DCL tests using different velisp
1 parent c5a39b9 commit bfd868a

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

test/dcl/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
$ ./run_all.sh
33
```
44

5+
```
6+
$ VELISP=PATH_TO_VELISP/velisp ./run_all.sh
7+
```
8+
59
```
610
$ ./run_dlg.sh ok_dlg
711
```
12+
13+
```
14+
$ VELISP=PATH_TO_VELISP/velisp ./run_dlg.sh ok_dlg
15+
```

test/dcl/run_dlg.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
[[ ${DEBUG} != "" ]] && opts[k++]=--inspect-brk
4-
53
if [[ $# -ne 1 ]]; then
64
echo "Usage: $(basename $0) <DCL_NAME>"
75
exit 1
@@ -16,7 +14,18 @@ if [[ -f "${dir}/${name}.lsp" ]]; then
1614
init=$(< ${dir}/${name}.lsp)
1715
fi
1816

19-
node ${opts[@]} ${dir}/../../src/main.js <<EOF
17+
[[ ${NODE_DEBUG} != "" ]] && node_opts[k++]=--inspect-brk
18+
19+
cmd=""
20+
if [[ ${VELISP} != "" ]]; then
21+
cmd=${VELISP}
22+
else
23+
cmd="node ${node_opts[@]} ${dir}/../../src/main.js"
24+
fi
25+
26+
echo "${cmd}"
27+
28+
${cmd} <<EOF
2029
(setq dcl_file "${dir}/${name}.dcl")
2130
(if (< (setq dcl_id (load_dialog dcl_file)) 0)
2231
(progn

0 commit comments

Comments
 (0)