Add unittest-hack tests to ctest (#220)

The CI currently runs the tests in ./hack, but ctest did not.
This commit changes that.
This commit is contained in:
Otto Bittner 2022-06-17 08:56:23 +02:00 committed by GitHub
parent b926cf9006
commit 3de5fd47b5

View File

@ -64,5 +64,6 @@ add_custom_target(cdbg ALL
)
add_test(NAME unittest COMMAND go test -race -count=3 ./... WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
add_test(NAME unittest-hack COMMAND go test -race -count=3 ./... WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/hack)
add_test(NAME integrationtest COMMAND go test -v -tags integration ./test/ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
add_test(NAME etcd-unittest COMMAND go test -v --race -cover -count=3 -tags integration WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/coordinator/store/)