Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add extra Phobos tests (publictests and betterc make targets) #17108

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,27 @@ 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

if [ "$OS_NAME" == "osx" ]; then
echo "FIXME: Skipping betterc on macOS (Apple linker assertions)"
else
make -j$N -C ../phobos MODEL=$MODEL betterc
fi

deactivate # deactivate host compiler
fi
}

# test dub package
Expand Down
Loading