tests: run "generic" tests under all Collapse OS architectures
There's no reason to run them only under CVM.
This commit is contained in:
parent
ae62e291e6
commit
c072096909
@ -1,9 +1,6 @@
|
|||||||
CDIR = ../cvm
|
|
||||||
EDIR = ../emul
|
|
||||||
|
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
run:
|
run:
|
||||||
$(MAKE) -C $(CDIR) all
|
$(MAKE) -C ../cvm all
|
||||||
$(MAKE) -C $(EDIR) all
|
$(MAKE) -C ../emul all
|
||||||
cd cvm && ./runtests.sh
|
cd all && ./runtests.sh
|
||||||
cd z80 && ./runtests.sh
|
cd z80 && ./runtests.sh
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
BASE=../..
|
BASE=../..
|
||||||
EXEC="${BASE}/cvm/forth"
|
CVM="${BASE}/cvm/forth"
|
||||||
|
Z80="${BASE}/emul/forth"
|
||||||
TMP=$(mktemp)
|
TMP=$(mktemp)
|
||||||
|
|
||||||
chk() {
|
chk() {
|
||||||
echo "Running test $1"
|
|
||||||
cat ../harness.fs $1 > ${TMP}
|
cat ../harness.fs $1 > ${TMP}
|
||||||
if ! ${EXEC} ${TMP}; then
|
echo "Running test $1 under CVM"
|
||||||
|
if ! ${CVM} ${TMP}; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "Running test $1 under Z80"
|
||||||
|
if ! ${Z80} ${TMP}; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user