Use Falderal's fa-under-pty and run `rpython` using `python`.
Chris Pressey
7 years ago
2 | 2 |
if [ `which rpython`X = X ]; then
|
3 | 3 |
echo 'RPython not found. Not building. Use CPython or Skulpt instead.'
|
4 | 4 |
else
|
5 | |
rpython src/zowie.py
|
|
5 |
python `which rpython` src/zowie.py
|
6 | 6 |
fi
|
0 | 0 |
#!/bin/sh
|
1 | 1 |
|
2 | |
RPYTHON_FIXTURE=''
|
|
2 |
FIXTURES=''
|
3 | 3 |
if [ ! `which rpython`X = X ]; then
|
4 | |
if [ `which under-pty`X = X ]; then
|
5 | |
echo 'Need the under-pty utility to propertly test rpython-compiled version.'
|
6 | |
exit 1
|
7 | |
fi
|
8 | |
RPYTHON_FIXTURE='tests/rpython-fixture.markdown'
|
|
4 |
FIXTURES="$FIXTURES tests/rpython-fixture.markdown"
|
9 | 5 |
if [ ! -e ./zowie-c ]; then
|
10 | 6 |
./build.sh || exit $?
|
11 | 7 |
fi
|
12 | 8 |
fi
|
13 | 9 |
|
14 | |
falderal --substring-error $RPYTHON_FIXTURE tests/ZOWIE.markdown
|
|
10 |
falderal --substring-error $FIXTURES tests/ZOWIE.markdown
|
0 | 0 |
-> Functionality "Interpret ZOWIE Program" is implemented by
|
1 | 1 |
-> shell command
|
2 | |
-> "under-pty ./zowie-c %(test-body-file)"
|
|
2 |
-> "fa-under-pty ./zowie-c %(test-body-file)"
|
3 | 3 |
|