From 19a097f70911388bf76162e34eaa60f82cc5f8cd Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Sat, 16 Mar 2024 17:48:46 +0100 Subject: [PATCH] fix tests on gcc2 --- Tests/compile.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Tests/compile.sh b/Tests/compile.sh index 38b3191..6e479c6 100755 --- a/Tests/compile.sh +++ b/Tests/compile.sh @@ -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"