Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
lain.church
Ayuda
Registro
Iniciar sesión
izaya
/
collapseos
réplica de
https://github.com/hsoft/collapseos.git
Seguir
1
Destacar
1
Fork
0
Código
Incidencias
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
tests: run "generic" tests under all Collapse OS architectures
There's no reason to run them only under CVM.
master
Virgil Dupras
hace 3 años
padre
ae62e291e6
commit
c072096909
Se han
modificado 5 ficheros
con
11 adiciones
y
9 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+3
-6
tests/Makefile
+8
-3
tests/all/runtests.sh
+0
-0
tests/all/test_ari.fs
+0
-0
tests/all/test_cmp.fs
+0
-0
tests/all/test_parse.fs
+ 3
- 6
tests/Makefile
Ver fichero
@@ -1,9 +1,6 @@
CDIR = ../cvm
EDIR = ../emul
.PHONY: run
run:
$(MAKE) -C
$(CDIR)
all
$(MAKE) -C
$(EDIR)
all
cd
cvm
&& ./runtests.sh
$(MAKE) -C ../cvm all
$(MAKE) -C
../emul
all
cd
all
&& ./runtests.sh
cd z80 && ./runtests.sh
tests/cvm/runtests.sh → tests/all/runtests.sh
Ver fichero
@@ -1,13 +1,18 @@
#!/bin/sh -e
BASE=../..
EXEC="${BASE}/cvm/forth"
CVM="${BASE}/cvm/forth"
Z80="${BASE}/emul/forth"
TMP=$(mktemp)
chk() {
echo "Running test $1"
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
fi
}
tests/cvm/test_ari.fs → tests/all/test_ari.fs
Ver fichero
tests/cvm/test_cmp.fs → tests/all/test_cmp.fs
Ver fichero
tests/cvm/test_parse.fs → tests/all/test_parse.fs
Ver fichero
Escribir
Vista previa
Cargando…
Cancelar
Guardar