Skip to content

Commit

Permalink
CI: Add extra Phobos tests (publictests and betterc make targets)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Dec 6, 2024
1 parent 6567f6f commit 5a04e49
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,23 @@ test_druntime() {
# build and run Phobos unit tests
test_phobos() {
make -j$N -C ../phobos MODEL=$MODEL unittest

if [ "$OS_NAME" == "windows" ]; then
echo "FIXME: Skipping publictests on Windows (test failures)"
elif [ "${HOST_DMD:0:5}" == "gdmd-" ]; then
echo "Skipping publictests with GDC host compiler (no installed dub)"
elif [ "$HOST_DMD" == "dmd-2.079.0" ]; then
echo "Skipping publictests with DMD v2.079 host compiler (dub too old)"
else
source ~/dlang/*/activate # activate host compiler - need dub

make -j$N -C ../phobos MODEL=$MODEL publictests
make -j$N -C ../phobos MODEL=$MODEL publictests NO_BOUNDSCHECKS=1

make -j$N -C ../phobos MODEL=$MODEL betterc

deactivate # deactivate host compiler
fi
}

# test dub package
Expand Down

0 comments on commit 5a04e49

Please sign in to comment.