diff options
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 |