git @ Cat's Eye Technologies Samovar / 47e7222
Use "but only if shell command succeeds", ditch test appliances. Chris Pressey 2 years ago
4 changed file(s) with 9 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
1717 will illustrate.
1818
1919 [Falderal]: http://catseye.tc/node/Falderal
20
21 -> Functionality "Run Samovar Simulation" is implemented by shell command
22 -> "python2 bin/samovar %(test-body-file) --min-events 4 --randomness-type canned"
23 -> but only if shell command "command -v python2" succeeds
24
25 -> Functionality "Run Samovar Simulation" is implemented by shell command
26 -> "python3 bin/samovar %(test-body-file) --min-events 4 --randomness-type canned"
27 -> but only if shell command "command -v python3" succeeds
2028
2129 -> Tests for functionality "Run Samovar Simulation"
2230
+0
-4
doc/appliances/samovar.py2.md less more
0 -> Functionality "Run Samovar Simulation" is implemented by
1 -> shell command
2 -> "python2 bin/samovar %(test-body-file) --min-events 4 --randomness-type canned"
3 -> but only if shell command "command -v python2" is successful
+0
-4
doc/appliances/samovar.py3.md less more
0 -> Functionality "Run Samovar Simulation" is implemented by
1 -> shell command
2 -> "python3 bin/samovar %(test-body-file) --min-events 4 --randomness-type canned"
3 -> but only if shell command "command -v python3" is successful
00 #!/bin/sh
1
2 APPLIANCES=""
31
42 if [ "x$PYTHON" != "x" ]; then
53 if command -v "$PYTHON" > /dev/null 2>&1; then
1210 MISSING=""
1311 if command -v python2 > /dev/null 2>&1; then
1412 PYTHONPATH=src python2 src/samovar/tests.py || exit 1
15 APPLIANCES="$APPLIANCES doc/appliances/samovar.py2.md"
1613 else
1714 MISSING="${MISSING}2"
1815 fi
1916 if command -v python3 > /dev/null 2>&1; then
2017 PYTHONPATH=src python3 src/samovar/tests.py || exit 1
21 APPLIANCES="$APPLIANCES doc/appliances/samovar.py3.md"
2218 else
2319 MISSING="${MISSING}3"
2420 fi
2824 fi
2925 fi
3026
31 falderal $APPLIANCES doc/Samovar.md || exit 1
27 falderal --verbose doc/Samovar.md || exit 1