diff --git a/tests/runtests.sh b/tests/runtests.sh
index 352c35b..170b1c2 100755
a
|
b
|
CHICKEN_INSTALL=${TEST_DIR}/../chicken-install |
35 | 35 | CHICKEN_UNINSTALL=${TEST_DIR}/../chicken-uninstall |
36 | 36 | ASMFLAGS= |
37 | 37 | FAST_OPTIONS="-O5 -d0 -b -disable-interrupts" |
| 38 | COMPILE_OPTIONS="-compiler ${TEST_DIR}/../chicken -v -I${TEST_DIR}/.. -L${TEST_DIR}/.. -include-path ${TEST_DIR}/.." |
| 39 | SETUP_PREFIX="-e (use setup-api)" |
| 40 | SETUP_PREFIX="${SETUP_PREFIX} -e (register-program \"csc\" \"${TEST_DIR}/../csc\")" |
| 41 | SETUP_PREFIX="${SETUP_PREFIX} -e (register-program \"chicken\" \"${TEST_DIR}/../chicken\")" |
38 | 42 | |
39 | 43 | TYPESDB=../types.db |
40 | 44 | cp $TYPESDB test-repository/types.db |
… |
… |
if test -f ../cygchicken-0.dll; then |
54 | 58 | mv ../cygchicken-0.dll ../cygchicken-0.dll_ |
55 | 59 | fi |
56 | 60 | |
57 | | compile="../csc -compiler $CHICKEN -v -I.. -L.. -include-path .. -o a.out" |
| 61 | compile="../csc -types ${TYPESDB} -ignore-repository ${COMPILE_OPTIONS} -o a.out" |
58 | 62 | compile2="../csc -compiler $CHICKEN -v -I.. -L.. -include-path .." |
59 | | compile_s="../csc -s -compiler $CHICKEN -v -I.. -L.. -include-path .." |
| 63 | compile_s="../csc -s -types ${TYPESDB} -ignore-repository ${COMPILE_OPTIONS} -v -I.. -L.. -include-path .." |
60 | 64 | interpret="../csi -n -include-path .." |
61 | 65 | |
62 | 66 | rm -f *.exe *.so *.o *.import.* a.out ../foo.import.* |
… |
… |
$compile inlining-tests.scm -optimize-level 3 |
72 | 76 | echo "======================================== scrutiny tests ..." |
73 | 77 | $compile typematch-tests.scm -specialize -w |
74 | 78 | ./a.out |
75 | | $compile scrutiny-tests.scm -A -scrutinize -ignore-repository -types $TYPESDB 2>scrutiny.out -verbose |
| 79 | $compile scrutiny-tests.scm -A -scrutinize 2>scrutiny.out -verbose |
76 | 80 | |
77 | 81 | if test -n "$MSYSTEM"; then |
78 | 82 | dos2unix scrutiny.out |
… |
… |
fi |
85 | 89 | |
86 | 90 | diff -bu scrutiny.expected scrutiny.out |
87 | 91 | |
88 | | $compile scrutiny-tests-2.scm -A -scrutinize -analyze-only -ignore-repository -types $TYPESDB 2>scrutiny-2.out -verbose |
| 92 | $compile scrutiny-tests-2.scm -A -scrutinize -analyze-only 2>scrutiny-2.out -verbose |
89 | 93 | |
90 | 94 | if test -n "$MSYSTEM"; then |
91 | 95 | dos2unix scrutiny-2.out |
… |
… |
fi |
98 | 102 | |
99 | 103 | diff -bu scrutiny-2.expected scrutiny-2.out |
100 | 104 | |
101 | | $compile scrutiny-tests-3.scm -specialize -block -ignore-repository -types $TYPESDB |
| 105 | $compile scrutiny-tests-3.scm -specialize -block |
102 | 106 | ./a.out |
103 | 107 | |
104 | | $compile scrutiny-tests-strict.scm -strict-types -specialize -ignore-repository -types $TYPESDB |
| 108 | $compile scrutiny-tests-strict.scm -strict-types -specialize |
105 | 109 | ./a.out |
106 | 110 | |
107 | 111 | echo "======================================== specialization tests ..." |
… |
… |
$interpret -bnq test-glob.scm |
357 | 361 | echo "======================================== compiler/nursery stress test ..." |
358 | 362 | for s in 100000 120000 200000 250000 300000 350000 400000 450000 500000; do |
359 | 363 | echo " $s" |
360 | | ../chicken ../utils.scm -:s$s -output-file tmp.c -include-path .. |
| 364 | ../chicken -ignore-repository ../utils.scm -:s$s -output-file tmp.c -include-path .. |
361 | 365 | done |
362 | 366 | |
363 | 367 | echo "======================================== symbol-GC tests ..." |
… |
… |
rm -fr rev-app rev-app-2 reverser/*.import.* reverser/*.so |
403 | 407 | |
404 | 408 | echo "======================================== reinstall tests" |
405 | 409 | CHICKEN_REPOSITORY=$CHICKEN_REPOSITORY $CHICKEN_UNINSTALL -force reverser |
406 | | CHICKEN_REPOSITORY=$CHICKEN_REPOSITORY $CHICKEN_INSTALL -t local -l $TEST_DIR reverser:1.0 \ |
407 | | -csi ${TEST_DIR}/../csi |
| 410 | CHICKEN_REPOSITORY=$CHICKEN_REPOSITORY CSC_OPTIONS=$COMPILE_OPTIONS \ |
| 411 | CSI_OPTIONS=$SETUP_PREFIX $CHICKEN_INSTALL -t local -l $TEST_DIR \ |
| 412 | -csi ${TEST_DIR}/../csi reverser:1.0 |
408 | 413 | CHICKEN_REPOSITORY=$CHICKEN_REPOSITORY $interpret -bnq rev-app.scm 1.0 |
409 | | CHICKEN_REPOSITORY=$CHICKEN_REPOSITORY $CHICKEN_INSTALL -t local -l $TEST_DIR -reinstall -force \ |
410 | | -csi ${TEST_DIR}/../csi |
| 414 | CHICKEN_REPOSITORY=$CHICKEN_REPOSITORY CSC_OPTIONS=$COMPILE_OPTIONS \ |
| 415 | CSI_OPTIONS=$SETUP_PREFIX $CHICKEN_INSTALL -t local -l $TEST_DIR \ |
| 416 | -reinstall -force -csi ${TEST_DIR}/../csi |
411 | 417 | CHICKEN_REPOSITORY=$CHICKEN_REPOSITORY $interpret -bnq rev-app.scm 1.0 |
412 | 418 | |
413 | 419 | echo "======================================== deployment tests" |
414 | 420 | mkdir rev-app |
415 | | CHICKEN_REPOSITORY=$CHICKEN_REPOSITORY $CHICKEN_INSTALL -t local -l $TEST_DIR reverser |
| 421 | CHICKEN_REPOSITORY=$CHICKEN_REPOSITORY CSC_OPTIONS=$COMPILE_OPTIONS \ |
| 422 | CSI_OPTIONS=$SETUP_PREFIX $CHICKEN_INSTALL -t local -l $TEST_DIR \ |
| 423 | -csi ${TEST_DIR}/../csi reverser |
416 | 424 | CHICKEN_REPOSITORY=$CHICKEN_REPOSITORY $compile2 -deploy rev-app.scm |
417 | | CHICKEN_REPOSITORY=$CHICKEN_REPOSITORY $CHICKEN_INSTALL -deploy -prefix rev-app -t local -l $TEST_DIR reverser |
| 425 | CHICKEN_REPOSITORY=$CHICKEN_REPOSITORY CSC_OPTIONS=$COMPILE_OPTIONS \ |
| 426 | CSI_OPTIONS=$SETUP_PREFIX $CHICKEN_INSTALL -deploy -prefix rev-app \ |
| 427 | -t local -l $TEST_DIR reverser |
418 | 428 | unset LD_LIBRARY_PATH DYLD_LIBRARY_PATH CHICKEN_REPOSITORY |
419 | 429 | rev-app/rev-app 1.1 |
420 | 430 | mv rev-app rev-app-2 |