diff options
author | Geir Storli <geirst@verizonmedia.com> | 2019-02-15 15:06:45 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2019-02-18 11:56:22 +0000 |
commit | fcdb5bfcfe230ebc83d2efdf6fd6feecfedabaaf (patch) | |
tree | a7c9c16136bc3c2934e8eb04c9e7297f08c4755a /document/src/tests/CMakeLists.txt | |
parent | d15559afb0e5ba06bf9f33bd6f25ed02a90273a9 (diff) |
Add gtest runner and migrate documentidtest from CppUnit to gtest.
Diffstat (limited to 'document/src/tests/CMakeLists.txt')
-rw-r--r-- | document/src/tests/CMakeLists.txt | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/document/src/tests/CMakeLists.txt b/document/src/tests/CMakeLists.txt index 6edd113f17b..2561265d361 100644 --- a/document/src/tests/CMakeLists.txt +++ b/document/src/tests/CMakeLists.txt @@ -1,4 +1,25 @@ # 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(document_gtest_runner_app TEST + SOURCES + documentidtest.cpp + gtest_runner.cpp + DEPENDS + document + gtest + AFTER + document_documentconfig +) + +vespa_add_test( + NAME document_gtest_runner_app + COMMAND $<TARGET_FILE:document_gtest_runner_app> + DEPENDS document_gtest_runner_app +) + +# Runner for unit tests written in CppUnit (DEPRECATED). vespa_add_executable(document_testrunner_app TEST SOURCES teststringutil.cpp @@ -7,7 +28,6 @@ vespa_add_executable(document_testrunner_app TEST documentcalculatortestcase.cpp buckettest.cpp globalidtest.cpp - documentidtest.cpp documenttypetestcase.cpp primitivefieldvaluetest.cpp arrayfieldvaluetest.cpp |