general: Add possibility to build/run StatusQ tests via make

This commit is contained in:
Michał Cieślak 2023-09-05 15:46:29 +02:00 committed by Michał
parent dfb76cfa87
commit 51fd567c82
1 changed files with 21 additions and 0 deletions

View File

@ -40,6 +40,8 @@ BUILD_SYSTEM_DIR := vendor/nimbus-build-system
status-keycard-go \
statusq-sanity-checker \
run-statusq-sanity-checker \
statusq-tests \
run-statusq-tests \
update
ifeq ($(NIM_PARAMS),)
@ -301,6 +303,25 @@ run-statusq-sanity-checker: statusq-sanity-checker
echo -e "\033[92mRunning:\033[39m StatusQ SanityChecker"
$(STATUSQ_BUILD_PATH)/bin/SanityChecker
statusq-tests:
echo -e "\033[92mConfiguring:\033[39m StatusQ Unit Tests"
cmake \
-DSTATUSQ_BUILD_SANDBOX=OFF \
-DSTATUSQ_BUILD_SANITY_CHECKER=OFF \
-DSTATUSQ_BUILD_TESTS=ON \
-B $(STATUSQ_BUILD_PATH) \
-S $(STATUSQ_SOURCE_PATH) \
$(HANDLE_OUTPUT)
echo -e "\033[92mBuilding:\033[39m StatusQ Unit Tests"
cmake \
--build $(STATUSQ_BUILD_PATH) \
--target TestStatusQ \
$(HANDLE_OUTPUT)
run-statusq-tests: statusq-tests
echo -e "\033[92mRunning:\033[39m StatusQ Unit Tests"
$(STATUSQ_BUILD_PATH)/bin/TestStatusQ
##
## DOtherSide
##