summaryrefslogtreecommitdiffstats
path: root/run-tests.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-05-21 14:45:53 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-21 18:43:13 +0200
commit77198abd94437eb418f11957695986470b1afc9a (patch)
tree710b0285a00aa3f54db274ff01a9eb21017c2164 /run-tests.sh
parenteb9daf07b1a118b473d352c98c5822c3063e598d (diff)
tests: Make prove --state work; Restructure tests
This moves all tests into a subdirectory and lets prove itself figure out which tests exist. It seems if you supply the testlist via arguments or stdin --state won't affect the order. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'run-tests.sh')
-rwxr-xr-xrun-tests.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/run-tests.sh b/run-tests.sh
index 0057b4d75..5d1c2597c 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -49,13 +49,9 @@ if ((use_php_dev_server)); then
done
fi
-testpath="application/tests"
-tests=($testpath/test_*.php)
-tests=(${tests[@]#$testpath\/})
-tests=(${tests[@]%.php})
# run tests
php index.php tools drop_all_tables_using_prefix
php index.php tools update_database
-prove --state=hot,slow,save --timer -ve "php index.php tools test $url" "${tests[@]}"
+prove --ext .php --state=hot,slow,all,save --timer -ve "php index.php tools test $url" -r application/test/tests/