git @ Cat's Eye Technologies ZOWIE / bef8665
Use Falderal's fa-under-pty and run `rpython` using `python`. Chris Pressey 7 years ago
3 changed file(s) with 5 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
22 if [ `which rpython`X = X ]; then
33 echo 'RPython not found. Not building. Use CPython or Skulpt instead.'
44 else
5 rpython src/zowie.py
5 python `which rpython` src/zowie.py
66 fi
00 #!/bin/sh
11
2 RPYTHON_FIXTURE=''
2 FIXTURES=''
33 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"
95 if [ ! -e ./zowie-c ]; then
106 ./build.sh || exit $?
117 fi
128 fi
139
14 falderal --substring-error $RPYTHON_FIXTURE tests/ZOWIE.markdown
10 falderal --substring-error $FIXTURES tests/ZOWIE.markdown
00 -> Functionality "Interpret ZOWIE Program" is implemented by
11 -> shell command
2 -> "under-pty ./zowie-c %(test-body-file)"
2 -> "fa-under-pty ./zowie-c %(test-body-file)"
33