improve the tests

This commit is contained in:
Sylvestre Ledru 2019-09-01 00:52:01 +02:00
parent 60ab466af0
commit 6bf9ce13ab

View File

@ -164,8 +164,12 @@ clang++-$VERSION -std=c++11 foo.cpp
echo "Testing linking clang-cpp ..."
clang-$VERSION -lclang-cpp$VERSION -v foo.cpp &> /dev/null
exit 0
clang-$VERSION -lclang-cpp$VERSION -v foo.cpp -o o &> /dev/null
if ! ldd o 2>&1|grep -q libclang-cpp; then
echo "Didn't link against libclang-cpp$VERSION"
exit 42
fi
echo "Testing code coverage ..."
echo '#include <stdio.h>