blob: afb56757bddf062a01bfd4737cd392bfc450e5ae (
plain) (
blame)
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
|
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
# Runner for unit tests written in gtest.
# NOTE: All new test classes should be added here.
vespa_add_executable(metrics_gtest_runner_app TEST
SOURCES
countmetrictest.cpp
gtest_runner.cpp
DEPENDS
metrics
vdstestlib
gtest
)
vespa_add_test(
NAME metrics_gtest_runner_app
COMMAND metrics_gtest_runner_app
)
# Runner for unit tests written in CppUnit (DEPRECATED).
vespa_add_executable(metrics_testrunner_app TEST
SOURCES
testrunner.cpp
valuemetrictest.cpp
metricsettest.cpp
summetrictest.cpp
metricmanagertest.cpp
loadmetrictest.cpp
snapshottest.cpp
stresstest.cpp
metrictest.cpp
metric_timer_test.cpp
DEPENDS
metrics
vdstestlib
)
# TODO: Test with a larger chunk size to parallelize test suite runs
vespa_add_test(
NAME metrics_testrunner_app
COMMAND python ${PROJECT_SOURCE_DIR}/cppunit-parallelize.py --chunks 1 $<TARGET_FILE:metrics_testrunner_app>
DEPENDS metrics_testrunner_app
)
|