From 77198abd94437eb418f11957695986470b1afc9a Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 21 May 2015 14:45:53 +0200 Subject: 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 --- run-tests.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'run-tests.sh') 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/ -- cgit v1.2.3-24-g4f1b