1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
|
#
# Copyright 2009- ECMWF.
#
# This software is licensed under the terms of the Apache Licence version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmental organisation
# nor does it submit to any jurisdiction.
#
add_subdirectory(test/harness)
set(test_srcs
# Sources
test/TestAlterCmd.cpp
test/TestArchiveAndRestoreCmd.cpp
test/TestBase_main.cpp # test entry point
test/TestClientHandleCmd.cpp
test/TestCmd.cpp
test/TestDeleteNodeCmd.cpp
test/TestForceCmd.cpp
test/TestFreeDepCmd.cpp
test/TestInLimitAndLimit.cpp
test/TestInLimitParsing.cpp
test/TestLogCmd.cpp
test/TestMeterCmd.cpp
test/TestPermissions.cpp
test/TestProgramOptions.cpp
test/TestQueryCmd.cpp
test/TestQueueCmd.cpp
test/TestRequest.cpp
test/TestRequeueNodeCmd.cpp
test/TestResolveDependencies.cpp
test/TestSpecificIssues.cpp
test/TestSSyncCmd.cpp
test/TestSSyncCmdOrder.cpp
test/TestSSyncCmd_CH1.cpp
test/TestStatsCmd.cpp
)
ecbuild_add_test(
TARGET
u_base
LABELS
unit nightly
SOURCES
${test_srcs}
INCLUDES
../node/test
LIBS
ecflow_all
test_scaffold
test_harness.base
Threads::Threads
$<$<BOOL:${OPENSSL_FOUND}>:OpenSSL::SSL>
TEST_DEPENDS
u_parser
)
target_clangformat(u_base
CONDITION ENABLE_TESTS
)
set(test_srcs
# Sources
test/TestAlgorithms.cpp
)
ecbuild_add_test(
TARGET
u_base_algorithms
LABELS
unit nightly
SOURCES
${test_srcs}
LIBS
ecflow_all
test_scaffold
test_harness.base
Threads::Threads
$<$<BOOL:${OPENSSL_FOUND}>:OpenSSL::SSL>
)
target_clangformat(u_base_algorithms
CONDITION ENABLE_TESTS
)
# The following is not technically a test (as it makes no checks),
# but a tool to measure the time it takes to generate a job file
if (ENABLE_ALL_TESTS)
set(test_srcs
# Sources
test/TestJobGenPerf.cpp
)
ecbuild_add_test(
TARGET
p_job_gen
LABELS
performance
SOURCES
${test_srcs}
LIBS
ecflow_all
test_scaffold
test_harness.base
Threads::Threads
)
target_clangformat(p_job_gen
CONDITION ENABLE_TESTS
)
endif()
|