source: project/chicken/trunk/tests/runtests.sh @ 7776

Last change on this file since 7776 was 7776, checked in by felix winkelmann, 12 years ago

more read-line bugfixes; updated copyright date; added port test

File size: 1.6 KB
Line 
1#!/bin/sh
2# runtests.sh
3
4set -e
5TEST_DIR=`pwd`
6export DYLD_LIBRARY_PATH=${TEST_DIR}/..
7export LD_LIBRARY_PATH=${TEST_DIR}/..
8compile="../csc -compiler ../chicken -C -I.. -L.. -o a.out"
9
10echo "======================================== runtime tests ..."
11../csi -s apply-test.scm
12$compile test-gc-hooks.scm && ./a.out
13
14echo "======================================== library tests ..."
15../csi -w -s library-tests.scm
16
17echo "======================================== port tests ..."
18../csi -w -s port-tests.scm
19
20echo "======================================== fixnum tests ..."
21$compile fixnum-tests.scm && ./a.out
22
23echo "======================================== srfi-18 tests ..."
24../csi -w -s srfi-18-tests.scm
25
26echo "======================================== path tests ..."
27$compile path-tests.scm && ./a.out
28
29echo "======================================== r4rstest ..."
30../csi -i -s r4rstest.scm >r4rstest.log
31diff r4rstest.out r4rstest.log
32
33echo "======================================== locative stress test ..."
34$compile locative-stress-test.scm && ./a.out
35
36echo "======================================== embedding (1) ..."
37$compile embedded1.c && ./a.out
38
39echo "======================================== embedding (2) ..."
40$compile -e embedded2.scm && ./a.out
41
42echo "======================================== benchmarks ..."
43cd ../benchmarks
44for x in `ls *.scm`; do
45    case $x in
46        "cscbench.scm");;
47        "plists.scm");;
48        *)
49            echo $x
50            ../csc $x -compiler ../chicken -C -I.. -L.. -O2 -d0 && \
51                ./`basename $x .scm`;;
52    esac
53done
54cd ${TEST_DIR}
55
56echo "======================================== done."
Note: See TracBrowser for help on using the repository browser.