From: Mateusz Moscicki Date: Wed, 27 Feb 2019 08:00:12 +0000 (+0100) Subject: Fill the list of tests in the run.sh X-Git-Tag: submit/tizen/20190301.131043~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c59b04f964df92c86587b67fc45945ae41efaa2;p=platform%2Fcore%2Fsystem%2Fcrash-worker.git Fill the list of tests in the run.sh Change-Id: Ic97f82a710a89b11ef5a7f33049bb160fc6152c0 --- diff --git a/tests/system/CMakeLists.txt b/tests/system/CMakeLists.txt index e57ad96..cd1bbdd 100644 --- a/tests/system/CMakeLists.txt +++ b/tests/system/CMakeLists.txt @@ -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}) diff --git a/tests/system/run.sh.template b/tests/system/run.sh.template index feece4f..953a51e 100644 --- a/tests/system/run.sh.template +++ b/tests/system/run.sh.template @@ -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@"