Skip to content

Commit

Permalink
Fix test runner to run scripts from tests/ directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Feb 17, 2024
1 parent 7acdc34 commit fcf15b3
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions run-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,8 @@ else
fi

if [ ${RUN_TEST=1} -eq 1 ]; then
for ex in `\ls -1 tests/*.d`; do
script="${ex%.d}.sh"
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
fi
for ex in `cd tests && ls -1 *.d`; do
echo "[INFO] Running test $ex"
(cd tests && dub --temp-build --compiler=$DC --single $ex)
done
fi

0 comments on commit fcf15b3

Please sign in to comment.