Allow script based tests and fix test package recipes.

This commit is contained in:
Sönke Ludwig 2017-02-17 00:49:40 +01:00
parent 68430a1ea4
commit 99bc332a81
No known key found for this signature in database
GPG key ID: D95E8DB493EE314C
6 changed files with 14 additions and 7 deletions

View file

@ -1,4 +1,4 @@
/++ dub.sdl: /+ dub.sdl:
name "test" name "test"
description "Tests vibe.d's std.concurrency integration" description "Tests vibe.d's std.concurrency integration"
dependency "vibe-core" path="../" dependency "vibe-core" path="../"

View file

@ -1,4 +1,4 @@
/++ dub.sdl: /+ dub.sdl:
name "test" name "test"
dependency "vibe-core" path=".." dependency "vibe-core" path=".."
+/ +/

View file

@ -1,4 +1,4 @@
/++ dub.sdl: /+ dub.sdl:
name "test" name "test"
description "TCP disconnect task issue" description "TCP disconnect task issue"
dependency "vibe-core" path="../" dependency "vibe-core" path="../"

View file

@ -1,4 +1,4 @@
/++ dub.sdl: /+ dub.sdl:
name "test" name "test"
description "TCP disconnect task issue" description "TCP disconnect task issue"
dependency "vibe-core" path="../" dependency "vibe-core" path="../"

View file

@ -1,7 +1,8 @@
/++ dub.sdl: /+ dub.sdl:
name "test" name "test"
description "Invalid memory operation on TCP connection leakage at shutdown" description "Invalid memory operation on TCP connection leakage at shutdown"
dependency "vibe-core" path="../" dependency "vibe-core" path="../"
debugVersions "VibeAsyncLog"
+/ +/
module test; module test;

View file

@ -21,7 +21,13 @@ if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then
fi fi
if [ ${RUN_TEST=1} -eq 1 ]; then if [ ${RUN_TEST=1} -eq 1 ]; then
for ex in `\ls -1 tests/*.d`; do for ex in `\ls -1 tests/*.d`; do
echo "[INFO] Running test $ex" script="${ex:0:-2}.sh"
dub --temp-build --compiler=$DC --single $ex # --override-config vibe-core/$CONFIG if [ -e "$script" ]; then
echo "[INFO] Running test scipt $script"
(cd tests && "./${script:6}")
else
echo "[INFO] Running test $ex"
dub --temp-build --compiler=$DC --single $ex # --override-config vibe-core/$CONFIG
fi
done done
fi fi