* [cpp-qt-client] Fix warning about deprecated count() method

* [cpp-qt-client] Ignore build directory

* [cpp-qt-client] Use ctest

* Fix CMakeLists.txt for cpp-qt-client
This commit is contained in:
Martin Delille
2023-04-07 10:24:11 +02:00
committed by GitHub
parent b2be16746c
commit f40433d28f
8 changed files with 98 additions and 72 deletions

View File

@@ -8,14 +8,14 @@ cd build
cmake ..
make
cmake --build .
if [[ -z "${RUN_VALGRIND_TESTS}" ]]; then
echo "Running Qt5 Petstore Tests"
./cpp-qt5-petstore
echo "Running Qt Petstore Tests"
ctest
else
echo "Running Qt5 Petstore Tests with Valgrind"
valgrind --leak-check=full ./cpp-qt5-petstore |& tee result.log || exit 1
echo "Running Qt Petstore Tests with Valgrind"
valgrind --leak-check=full ./cpp-qt-petstore |& tee result.log || exit 1
testCount=$(cat result.log | grep 'Finished testing of' | wc -l)
if [ $testCount == 3 ]
then