katie/cmake/runtest.sh.cmake
Ivailo Monev 911a16a494 attempt to workound the tests timeout in Travis
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-05 01:12:29 +00:00

22 lines
569 B
CMake

#!/bin/sh
set -e
export LD_LIBRARY_PATH="@CMAKE_BINARY_DIR@/lib"
export QTDIR="@CMAKE_SOURCE_DIR@"
export QT_PLUGIN_PATH="@CMAKE_BINARY_DIR@/plugins"
export QML_IMPORT_PATH="@CMAKE_BINARY_DIR@/imports"
bin="$1"
shift
export CTEST_OUTPUT_ON_FAILURE=1
# 9 minutes timeout for the tests, Travis timeouts on 10min if there is no
# output and I do not want some tests to be skipped because of one test. Like
# the qpainter test - it does a lot of tests and can take more then 10min.
export CTEST_TEST_TIMEOUT=540
cd "$(dirname "$bin")"
exec "./$(basename "$bin")" $@