summaryrefslogtreecommitdiff
path: root/tests/run_tests.sh
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-09-13 21:35:16 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-09-13 21:35:16 +0200
commit4e2bfed23c17929795f2082d6e77937170caeaa9 (patch)
tree4d9f66596c80af8081e4279580a3bbb4721ef184 /tests/run_tests.sh
parent5ee6bbbf3002daf075fa77007daccf4d2af25241 (diff)
downloadste-4e2bfed23c17929795f2082d6e77937170caeaa9.tar.gz
ste-4e2bfed23c17929795f2082d6e77937170caeaa9.tar.bz2
ste-4e2bfed23c17929795f2082d6e77937170caeaa9.zip
Turn our functional tests into PhpUnit tests
Diffstat (limited to 'tests/run_tests.sh')
-rwxr-xr-xtests/run_tests.sh42
1 files changed, 0 insertions, 42 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
deleted file mode 100755
index 4e46977..0000000
--- a/tests/run_tests.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-
-set -e
-
-run() {
- ( # So we don't have to cd ..
- cd "$1" || return 1
-
- php ../test.php > have
-
- printf '\e[1m%s\e[0m: ' "$1"
- if sed 's/\s*//' < have | grep -v '^$' | cmp -s want; then
- echo "OK"
- rm ./*.transc.php
- else
- echo "FAILED"
- for tpl in *.tpl; do
- php ../dump_ast.php < "$tpl" > "$tpl.ast"
- done
- return 1
- fi
- )
-}
-
-run_many() {
- retval=0
- while [ $# -gt 0 ]; do
- if ! run "$1"; then
- retval=1
- fi
-
- shift
- done
-
- return $retval
-}
-
-if [ $# -eq 0 ]; then
- run_many test_*
-else
- run_many "$@"
-fi