Skip to content

Commit

Permalink
fix tests on gcc2
Browse files Browse the repository at this point in the history
  • Loading branch information
korli committed Mar 16, 2024
1 parent 19b23d2 commit 19a097f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Tests/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ echo "Assembling Paladin as a static library"
cd ../Paladin/objects.*-release
ar rvs paladin.a *.o

LIBGCOV=-lgcov
if [[ `uname -m` == BePC ]]; then
LIBGCOV=
fi

echo "Compiling and linking tests against Paladin static library"
cd ../../Tests
g++ Main.cpp \
ProjectTests.cpp \
CompileCommandsJSONTests.cpp \
CommandOutputHandlerTests.cpp \
../Paladin/objects*/paladin.a -o ./tests.o -Wall -lUnitTest++ -I../Paladin -I../Paladin/SourceControl -I../Paladin/BuildSystem -I../Paladin/ThirdParty -I../Paladin/PreviewFeatures -fprofile-arcs -ftest-coverage -lgcov -lbe -llocalestub
../Paladin/objects*/paladin.a -o ./tests.o -Wall -lUnitTest++ -I../Paladin -I../Paladin/SourceControl -I../Paladin/BuildSystem -I../Paladin/ThirdParty -I../Paladin/PreviewFeatures -fprofile-arcs -ftest-coverage $LIBGCOV -lbe -llocalestub

echo "Done. Now execute ./tests.o"

0 comments on commit 19a097f

Please sign in to comment.