git @ Cat's Eye Technologies Yolk / 4f09d17
Test the compiled version, although note well: it just hangs. Chris Pressey 10 years ago
2 changed file(s) with 22 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 This Falderal fixture tests the compiled-with-RPython version of the Yolk
1 reference interpreter.
2
3 This requires `fa-under-pty`, which is a part of Falderal version 0.10.
4
5 It requires `fa-under-pty` because, for whatever reason, executables produced
6 by RPython from PyPy version 2.3.1 do not handle having their stdout redirected
7 very well. Specifically, they dump core. It is for this very reason that
8 `fa-under-pty` was written, in fact.
9
10 -> Functionality "Evaluate Yolk program" is implemented by
11 -> shell command
12 -> "fa-under-pty ./yolk-c %(test-body-file) %(test-input-file)"
00 #!/bin/sh
11
2 falderal --substring-error README.markdown
2 FIXTURES=''
3 if [ ! `which rpython`X = X ]; then
4 FIXTURES="$FIXTURES fixtures/rpython-fixture.markdown"
5 if [ ! -e ./yolk-c ]; then
6 ./build.sh || exit $?
7 fi
8 fi
9
10 falderal $FIXTURES README.markdown $*