From eae3cd99eef6202d772e3d2d43298449b7a36233 Mon Sep 17 00:00:00 2001 From: Nik Date: Mon, 4 Dec 2023 20:01:58 +0100 Subject: [PATCH] build: Disable network tests in offline builds --- tests/helpers/CMakeLists.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/helpers/CMakeLists.txt b/tests/helpers/CMakeLists.txt index ab29ae664..ef3809b79 100644 --- a/tests/helpers/CMakeLists.txt +++ b/tests/helpers/CMakeLists.txt @@ -11,11 +11,6 @@ set(AVAILABLE_TESTS TestProvider_read TestProvider_write - # Net - StoreAPI - TipsAPI - ContentAPI - # File FileAccess @@ -25,6 +20,15 @@ set(AVAILABLE_TESTS ExtractBits ) +if (NOT IMHEX_OFFLINE_BUILD) + set(AVAILABLE_TESTS ${AVAILABLE_TESTS} + # Net + StoreAPI + TipsAPI + ContentAPI + ) +endif () + add_executable(${PROJECT_NAME} source/common.cpp