Skip to content
Snippets Groups Projects
Commit 2c00d904 authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot
Browse files

ci: Add test to check that release jobs have profiled libs

parent 75bf1337
No related branches found
No related tags found
No related merge requests found
......@@ -492,7 +492,7 @@ function test_make() {
check_release_build
run "$MAKE" test_bindist TEST_PREP=YES
run "$MAKE" test_bindist TEST_PREP=YES TEST_PROF=${RELEASE_JOB:-}
(unset $(compgen -v | grep CI_*);
run "$MAKE" V=0 VERBOSE=1 test \
THREADS="$cores" \
......@@ -588,6 +588,13 @@ function test_hadrian() {
fail "Test compiler has a different BIGNUM_BACKEND ($test_compiler_backend) thean requested ($BIGNUM_BACKEND)"
fi
# If we are doing a release job, check the compiler can build a profiled executable
if [ "${RELEASE_JOB:-}" == "yes" ]; then
echo "main = print ()" > proftest.hs
run ${test_compiler} -prof proftest.hs || fail "hadrian profiled libs test"
rm proftest.hs
fi
run_hadrian \
test \
--summary-junit=./junit.xml \
......
......@@ -50,6 +50,12 @@ endif
$(CONTEXT_DIFF) output expected_output
# Without --no-user-package-db we might pick up random packages from ~/.ghc
$(BIN_DIST_INST_DIR)/bin/ghc-pkg check --no-user-package-db
ifeq "$(TEST_PROF)" "yes"
$(BIN_DIST_INST_DIR)/bin/ghc --make -prof HelloWorld
./HelloWorld > output
$(CONTEXT_DIFF) output expected_output
endif
clean distclean:
"$(RM)" $(RM_OPTS_REC) $(BIN_DIST_INST_SUBDIR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment