From 51fd567c82b88a393f4883b9942837653d01a73c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Tue, 5 Sep 2023 15:46:29 +0200 Subject: [PATCH] general: Add possibility to build/run StatusQ tests via make --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Makefile b/Makefile index 0127e2fcc9..8178ca920c 100644 --- a/Makefile +++ b/Makefile @@ -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 ##