Skip to content
Draft
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: 8 additions & 13 deletions etc/ci_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,24 @@ set -x

AnyFailures=No

# Force recompilation of JuliaInterface with coverage instrumentation
export CFLAGS="--coverage"
export LDFLAGS="--coverage"
mkdir -p coverage

#
export FORCE_JULIAINTERFACE_COMPILATION=true
cd pkg/JuliaInterface
pwd
# Force recompilation of JuliaInterface with coverage instrumentation
CFLAGS="--coverage" LDFLAGS="--coverage" FORCE_JULIAINTERFACE_COMPILATION=true ${GAP} --nointeract
${GAP} makedoc.g
${GAP} --cover ../../coverage/JuliaInterface.coverage tst/testall.g || AnyFailures=Yes
${GAP} --cover ../../coverage/JuliaInterface.coverage makedoc.g tst/testall.g || AnyFailures=Yes
gcov -o gen/src/ src/*.c*
# We should delete the coverage instrumentation in JuliaInterface now
# by calling `make clean`. However, this does not work because the
# `gaproot_for_building` only exists while GAP.jl runs.
# So we instead start a new GAP.jl session that forces a recompilation
# of JuliaInterface with default settings, thus overwriting the
# coverage instrumentation.
FORCE_JULIAINTERFACE_COMPILATION=true ${GAP} --nointeract
cd ../..

#
export FORCE_JULIAINTERFACE_COMPILATION=
cd pkg/JuliaExperimental
pwd
${GAP} makedoc.g
${GAP} --cover ../../coverage/JuliaExperimental.coverage tst/testall.g || AnyFailures=Yes
${GAP} --cover ../../coverage/JuliaExperimental.coverage makedoc.g tst/testall.g || AnyFailures=Yes
cd ../..

if [ ${AnyFailures} = Yes ]
Expand Down
Loading