20 | 20 |
rm -f expected.sexp out.sexp
|
21 | 21 |
|
22 | 22 |
echo "Testing Pixley programs as Scheme programs..."
|
23 | |
|
24 | 23 |
falderal test -f 'Interpret Pixley Program:shell command "script/tower.sh %(test) >%(output)"' src/tests.falderal
|
25 | 24 |
|
26 | 25 |
echo "Testing Pixley programs on Pixley reference interpreter..."
|
27 | |
|
28 | 26 |
falderal test -f 'Interpret Pixley Program:shell command "script/tower.sh src/pixley.pix %(test) >%(output)"' src/tests.falderal
|
29 | 27 |
|
30 | |
echo "Testing Pixley programs on (Pixley reference interpreter)^2..."
|
31 | |
|
|
28 |
echo "Testing Pixley programs on Pixley interpreter on Pixley interpreter..."
|
32 | 29 |
falderal test -f 'Interpret Pixley Program:shell command "script/tower.sh src/pixley.pix src/pixley.pix %(test) >%(output)"' src/tests.falderal
|
33 | 30 |
|
34 | |
echo "Testing Pixley programs on (Pixley reference interpreter)^3..."
|
|
31 |
# On my computer, the following test takes about 19 seconds on plt-r5rs, but
|
|
32 |
# about 32 minutes with tinyscheme -- possibly because of frequent GC?
|
35 | 33 |
|
36 | |
# Takes about 19 seconds on plt-r5rs on my computer
|
37 | |
falderal test -f 'Interpret Pixley Program:shell command "script/tower.sh src/pixley.pix src/pixley.pix src/pixley.pix %(test) >%(output)"' src/tests.falderal
|
|
34 |
# echo "Testing Pixley programs on (Pixley reference interpreter)^3..."
|
|
35 |
# falderal test -f 'Interpret Pixley Program:shell command "script/tower.sh src/pixley.pix src/pixley.pix src/pixley.pix %(test) >%(output)"' src/tests.falderal
|
38 | 36 |
|
39 | |
# If you have an hour or so to kill, you can try the next level up!
|
|
37 |
# And if you have an hour or so to kill, you can try the next level up!
|
|
38 |
# (That's with plt-r5rs; I imagine tinyscheme would take much longer)
|
|
39 |
|
40 | 40 |
# echo "Testing Pixley programs on (Pixley reference interpreter)^4..."
|
41 | 41 |
# time falderal test -f 'Interpret Pixley Program:shell command "script/tower.sh src/pixley.pix src/pixley.pix src/pixley.pix src/pixley.pix %(test) >%(output)"' src/tests.falderal
|
42 | 42 |
|
|
43 |
# Tinyscheme doesn't pass this yet, because it insists on abbreviating quote
|
|
44 |
# forms in its output.
|
43 | 45 |
echo "Running Falderal tests for P-Normalizer..."
|
44 | |
|
45 | 46 |
falderal test dialect/p-normal.falderal
|
46 | 47 |
|
47 | 48 |
echo "P-Normalizing Pixley interpreter..."
|
48 | |
|
49 | 49 |
script/tower.sh src/pixley.pix dialect/p-normal.pix src/pixley.pix > src/p-normal-pixley.pix
|
50 | 50 |
|
51 | 51 |
echo "Testing Pixley programs on P-Normalized interpreter..."
|
52 | |
|
53 | 52 |
falderal test -f 'Interpret Pixley Program:shell command "script/tower.sh src/p-normal-pixley.pix %(test) >%(output)"' src/tests.falderal
|
54 | 53 |
|
55 | 54 |
rm -f src/p-normal-pixley.pix
|
56 | 55 |
|
57 | 56 |
echo "Testing Pixley programs on Pixley interpreter in Pifxley..."
|
58 | |
|
59 | 57 |
falderal test -f 'Interpret Pixley Program:shell command "script/tower.sh dialect/pixley.pifx %(test) >%(output)"' src/tests.falderal
|
60 | 58 |
|
61 | 59 |
echo "Testing Pifxley programs as Scheme..."
|
62 | |
|
63 | 60 |
falderal test -f 'Interpret Pifxley Program:shell command "script/tower.sh %(test) >%(output)"' dialect/pifxley.falderal
|
64 | 61 |
|
65 | 62 |
echo "Testing Pifxley programs on Pifxley interpreter in Pifxley..."
|
66 | |
|
67 | 63 |
falderal test -f 'Interpret Pifxley Program:shell command "script/tower.sh dialect/pifxley.pifx %(test) >%(output)"' dialect/pifxley.falderal
|
68 | 64 |
|
69 | 65 |
echo "Testing Pixley programs on Crabwell interpreter..."
|
70 | |
|
71 | 66 |
falderal test -f 'Interpret Pixley Program:shell command "script/tower.sh dialect/crabwell.pix %(test) >%(output)"' src/tests.falderal
|
72 | 67 |
|
73 | 68 |
echo "Testing Crabwell-specific programs..."
|
74 | |
|
75 | 69 |
falderal test -f 'Interpret Crabwell Program:shell command "script/tower.sh dialect/crabwell.pix %(test) >%(output)"' dialect/crabwell.falderal
|
76 | 70 |
|
77 | 71 |
# Optional Mini-Scheme tests
|