forked from loafle/openapi-generator-original
qt ctest (#14968)
* [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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user