[CMAKE] Set timeout property in ctest.
authorsewon.oh <sewon.oh@samsung.com>
Mon, 16 Jul 2018 10:02:51 +0000 (19:02 +0900)
committer함명주/동작제어Lab(SR)/Principal Engineer/삼성전자 <myungjoo.ham@samsung.com>
Thu, 19 Jul 2018 04:31:27 +0000 (13:31 +0900)
To prevent ctest from getting too long, set timeout property value to 120seconds.

Add more hint.

Resolves: #284

Signed-off-by: sewon.oh <sewon.oh@samsung.com>
tests/CMakeLists.txt

index d14cfc7..d8bbf28 100644 (file)
@@ -1 +1,5 @@
-ADD_TEST(unit_test ${CMAKE_CURRENT_SOURCE_DIR}/testAll.sh)
+ADD_TEST(NAME unit_test 
+        COMMAND sh -c "${CMAKE_CURRENT_SOURCE_DIR}/testAll.sh \
+        | echo 'Note that your PR can result in the timeout issue of the unit test: 120 seconds.'")
+
+SET_TESTS_PROPERTIES(unit_test PROPERTIES TIMEOUT 120)