aboutsummaryrefslogtreecommitdiffstats
path: root/vdslib/src/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2019-02-18 14:41:34 +0000
committerGeir Storli <geirst@verizonmedia.com>2019-02-18 14:41:34 +0000
commite3638b6671b46c781bcdd7b3ea0659c753c1220e (patch)
treeb9e8ee846432c5fffe041df3691f9c565f26adb5 /vdslib/src/tests/CMakeLists.txt
parent7cdf46e48695488110b05027e1d76963d4c4db6f (diff)
Add gtest runner in vdslib and migrate bucketdistributiontest from CppUnit to gtest.
Also note that bucketdistributiontest has not been executed since migration to cmake.
Diffstat (limited to 'vdslib/src/tests/CMakeLists.txt')
-rw-r--r--vdslib/src/tests/CMakeLists.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/vdslib/src/tests/CMakeLists.txt b/vdslib/src/tests/CMakeLists.txt
index 3780a1ea9af..b445dc3e016 100644
--- a/vdslib/src/tests/CMakeLists.txt
+++ b/vdslib/src/tests/CMakeLists.txt
@@ -1,4 +1,22 @@
# 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(vdslib_gtest_runner_app TEST
+ SOURCES
+ gtest_runner.cpp
+ DEPENDS
+ vdslib_bucketdistributiontest
+ gtest
+)
+
+vespa_add_test(
+ NAME vdslib_gtest_runner_app
+ COMMAND vdslib_gtest_runner_app
+ DEPENDS vdslib_gtest_runner_app
+)
+
+# Runner for unit tests written in CppUnit (DEPRECATED).
vespa_add_executable(vdslib_testrunner_app TEST
SOURCES
testrunner.cpp