diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-05-21 14:45:53 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-21 18:43:13 +0200 |
commit | 77198abd94437eb418f11957695986470b1afc9a (patch) | |
tree | 710b0285a00aa3f54db274ff01a9eb21017c2164 /run-tests.sh | |
parent | eb9daf07b1a118b473d352c98c5822c3063e598d (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-x | run-tests.sh | 6 |
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/ |