0 | 0 |
Tests for ZOWIE
|
1 | 1 |
===============
|
2 | 2 |
|
3 | |
This non-exhaustive test suite is written in format of Falderal 0.9.
|
|
3 |
This non-exhaustive test suite is written in format of Falderal 0.14.
|
|
4 |
|
|
5 |
Appliances
|
|
6 |
----------
|
|
7 |
|
|
8 |
-> Functionality "Interpret ZOWIE Program" is implemented by
|
|
9 |
-> shell command
|
|
10 |
-> "python2 src/zowie.py %(test-body-file)"
|
|
11 |
-> but only if shell command "command -v python2" succeeds
|
|
12 |
|
|
13 |
-> Functionality "Interpret ZOWIE Program" is implemented by
|
|
14 |
-> shell command
|
|
15 |
-> "python3 src/zowie.py %(test-body-file)"
|
|
16 |
-> but only if shell command "command -v python3" succeeds
|
|
17 |
|
|
18 |
-> Functionality "Interpret ZOWIE Program" is implemented by
|
|
19 |
-> shell command
|
|
20 |
-> "./impl/zowie-hs/bin/zowie-hs run %(test-body-file)"
|
|
21 |
-> but only if shell command "[ -x impl/zowie-hs/bin/zowie-hs ]" succeeds
|
|
22 |
|
|
23 |
-> Functionality "Interpret ZOWIE Program" is implemented by
|
|
24 |
-> shell command
|
|
25 |
-> "./impl/zowie-hs/bin/zowie-hs run %(test-body-file)"
|
|
26 |
-> but only if shell command "[ -x impl/zowie-hs/bin/zowie-hs ]" succeeds
|
|
27 |
|
|
28 |
This last Falderal appliance tests the compiled-with-RPython version of the ZOWIE
|
|
29 |
reference interpreter.
|
|
30 |
|
|
31 |
This requires `fa-under-pty`, which is a part of Falderal since version 0.10.
|
|
32 |
|
|
33 |
It requires `fa-under-pty` because, for whatever reason, executables produced
|
|
34 |
by RPython from PyPy version 7.3.5 do not handle having their stdout redirected
|
|
35 |
very well. Specifically, they dump core. It is for this very reason that
|
|
36 |
`fa-under-pty` was written, in fact.
|
|
37 |
|
|
38 |
-> Functionality "Interpret ZOWIE Program" is implemented by
|
|
39 |
-> shell command
|
|
40 |
-> "fa-under-pty ./bin/zowie-c %(test-body-file)"
|
|
41 |
-> but only if shell command "[ -x bin/zowie-c ]" succeeds
|
|
42 |
|
|
43 |
Tests
|
|
44 |
-----
|
4 | 45 |
|
5 | 46 |
-> Tests for functionality "Interpret ZOWIE Program"
|
6 | 47 |
|