使用 JavaScript能使本网站更好的工作。
首页
探索
lain.church
帮助
注册
登录
izaya
/
collapseos
镜像自地址
https://github.com/hsoft/collapseos.git
关注
1
点赞
1
派生
0
代码
工单
0
版本发布
0
百科
动态
浏览代码
tests: separate tests that need to run on z80 vs those that don't
master
Virgil Dupras
4 年前
父节点
ceabc9920f
当前提交
785b375028
共有
11 个文件被更改
,包括
35 次插入
和
8 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+0
-2
runtests.sh
+6
-3
tests/Makefile
+2
-2
tests/README.md
+26
-0
tests/cvm/runtests.sh
+0
-0
tests/cvm/test_ari.fs
+0
-0
tests/cvm/test_cmp.fs
+0
-0
tests/cvm/test_flow.fs
+0
-0
tests/cvm/test_parse.fs
+0
-0
tests/harness.fs
+1
-1
tests/z80/runtests.sh
+0
-0
tests/z80/test_sdc.fs
+ 0
- 2
runtests.sh
查看文件
@@ -4,8 +4,6 @@ git submodule init
git submodule update
git clean -fxd
make -C cvm
make -C emul
make -C tests
# verify that forth.bin is stable
+ 6
- 3
tests/Makefile
查看文件
@@ -1,6 +1,9 @@
EMULDIR = ../emul
CDIR = ../cvm
EDIR = ../emul
.PHONY: run
run:
$(MAKE) -C $(EMULDIR) all
cd forth && ./runtests.sh
$(MAKE) -C $(CDIR) all
$(MAKE) -C $(EDIR) all
cd cvm && ./runtests.sh
cd z80 && ./runtests.sh
+ 2
- 2
tests/README.md
查看文件
@@ -1,4 +1,4 @@
# Testing Collapse OS
This folder contains Collapse OS' automated testing suite.
To run, it need
s
`/emul` to be built. You can run all tests
with `make`.
This folder contains Collapse OS' automated testing suite.
You can run all test
s
with `make`.
+ 26
- 0
tests/cvm/runtests.sh
查看文件
@@ -0,0 +1,26 @@
#!/bin/sh -e
BASE=../..
EXEC="${BASE}/cvm/forth"
TMP=$(mktemp)
chk() {
echo "Running test $1"
cat ../harness.fs $1 > ${TMP}
if ! ${EXEC} ${TMP}; then
exit 1
fi
}
if [ ! -z $1 ]; then
chk $1
exit 0
fi
# those tests run without any builtin
for fn in test_*.fs; do
chk "${fn}"
done
echo "All tests passed!"
rm ${TMP}
tests/forth/test_ari.fs → tests/cvm/test_ari.fs
查看文件
tests/forth/test_cmp.fs → tests/cvm/test_cmp.fs
查看文件
tests/forth/test_flow.fs → tests/cvm/test_flow.fs
查看文件
tests/forth/test_parse.fs → tests/cvm/test_parse.fs
查看文件
tests/forth/harness.fs → tests/harness.fs
查看文件
tests/forth/runtests.sh → tests/z80/runtests.sh
查看文件
@@ -6,7 +6,7 @@ TMP=$(mktemp)
chk() {
echo "Running test $1"
cat harness.fs $1 > ${TMP}
cat
../
harness.fs $1 > ${TMP}
if ! ${EXEC} ${TMP}; then
exit 1
fi
tests/forth/test_sdc.fs → tests/z80/test_sdc.fs
查看文件
撰写
预览
正在加载...
取消
保存