runtests.sh
来自「Scheme跨平台编译器」· Shell 代码 · 共 61 行
SH
61 行
#!/bin/sh# runtests.shset -eTEST_DIR=`pwd`export DYLD_LIBRARY_PATH=${TEST_DIR}/..export LD_LIBRARY_PATH=${TEST_DIR}/..compile="../csc -compiler ../chicken -I.. -L.. -o a.out"echo "======================================== runtime tests ..."../csi -s apply-test.scm$compile test-gc-hooks.scm && ./a.outecho "======================================== library tests ..."../csi -w -s library-tests.scmecho "======================================== hash-table tests ..."../csi -w -s hash-table-tests.scmecho "======================================== port tests ..."../csi -w -s port-tests.scmecho "======================================== fixnum tests ..."$compile fixnum-tests.scm && ./a.outecho "======================================== srfi-18 tests ..."../csi -w -s srfi-18-tests.scmecho "======================================== path tests ..."$compile path-tests.scm && ./a.outecho "======================================== r4rstest ..."../csi -e '(set! ##sys#procedure->string (constantly "#<procedure>"))' \ -i -s r4rstest.scm >r4rstest.logdiff -u r4rstest.out r4rstest.logecho "======================================== locative stress test ..."$compile locative-stress-test.scm && ./a.outecho "======================================== embedding (1) ..."$compile embedded1.c && ./a.outecho "======================================== embedding (2) ..."$compile -e embedded2.scm && ./a.outecho "======================================== benchmarks ..."cd ../benchmarksfor x in `ls *.scm`; do case $x in "cscbench.scm");; "plists.scm");; *) echo $x ../csc $x -compiler ../chicken -C -I.. -L.. -O2 -d0 && \ ./`basename $x .scm`;; esacdonecd ${TEST_DIR}echo "======================================== done."
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?