Fill the list of tests in the run.sh 21/200621/1
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 27 Feb 2019 08:00:12 +0000 (09:00 +0100)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 27 Feb 2019 10:13:19 +0000 (11:13 +0100)
Change-Id: Ic97f82a710a89b11ef5a7f33049bb160fc6152c0

tests/system/CMakeLists.txt
tests/system/run.sh.template

index e57ad96..cd1bbdd 100644 (file)
@@ -2,7 +2,11 @@ cmake_minimum_required(VERSION 2.6)
 
 ADD_SUBDIRECTORY(utils)
 
+set_property(GLOBAL PROPERTY TMP_TESTS_LIST "")
+
 macro(CONFIGURE_TEST test_name)
+  set_property(GLOBAL APPEND_STRING PROPERTY TMP_TESTS_LIST "\"${test_name}\" ")
+
   set(file_name ${test_name})
   set(extra_args ${ARGN})
 
@@ -31,5 +35,7 @@ configure_test("crash_root_path")
 configure_test("log_dump_short")
 configure_test("log_dump_normal")
 
+get_property(TESTS_LIST GLOBAL PROPERTY TMP_TESTS_LIST)
+
 configure_file("run.sh.template" "run.sh" @ONLY)
 INSTALL(FILES run.sh DESTINATION ${CRASH_SYSTEM_TESTS_PATH})
index feece4f..953a51e 100644 (file)
@@ -1,9 +1,6 @@
 #!/bin/bash
 
-TESTS=("check_minicore_mem" "cmp_backtraces" "info_file" "log_file"
-       "report_type_info" "critical_process" "time_test" "wait_for_opt_usr"
-       "so_info_file" "without_core" "crash_root_path" "log_dump_short"
-       "log_dump_normal")
+TESTS=(@TESTS_LIST@)
 
 if [ -z "${CRASH_SYSTEM_TESTS_PATH}" ]; then
     CRASH_SYSTEM_TESTS_PATH="@CRASH_SYSTEM_TESTS_PATH@"