Skip to content

Commit 2c8cc0f

Browse files
committed
fixup! Add an option to disable QEMU testing
1 parent fbfa834 commit 2c8cc0f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ option(
152152
)
153153
option(
154154
ENABLE_QEMU_TESTING
155-
"Tests using QEMU are enabled by default, but can be disabled."
155+
"Enable tests that use QEMU. This option is ON by default."
156156
ON
157157
)
158158
option(
159159
ENABLE_FVP_TESTING
160-
"Tests using FVP need to be explictly enabled."
160+
"Enable tests that use FVPs. This option is OFF by default."
161161
)
162162
set(
163163
FVP_INSTALL_DIR

arm-multilib/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ set(LLVM_BINARY_DIR "" CACHE PATH "Path to LLVM toolchain build or install root.
3535
set(LIBC_HDRGEN "" CACHE PATH "Path to prebuilt lbc-hdrgen if not included in LLVM binaries set by LLVM_BINARY_DIR")
3636
option(
3737
ENABLE_QEMU_TESTING
38-
"Tests using QEMU are enabled by default, but can be disabled."
38+
"Enable tests that use QEMU. This option is ON by default."
3939
ON
4040
)
4141
option(
4242
ENABLE_FVP_TESTING
43-
"Tests using FVP need to be explictly enabled."
43+
"Enable tests that use FVPs. This option is OFF by default."
4444
)
4545
set(
4646
FVP_INSTALL_DIR
@@ -167,8 +167,8 @@ foreach(lib_idx RANGE ${lib_count_dec})
167167
file(READ ${variant_json_file} variant_json_str)
168168
string(JSON test_executor GET ${variant_json_str} "args" "common" "TEST_EXECUTOR")
169169

170-
# FVP testing should default to off, so override any
171-
# settings from the JSON.
170+
# The multilib project can be configured to disable QEMU and/or FVP
171+
# testing, which will need to override the settings from the json.
172172
if((test_executor STREQUAL "qemu" AND NOT ${ENABLE_QEMU_TESTING}) OR (test_executor STREQUAL "fvp" AND NOT ${ENABLE_FVP_TESTING}))
173173
list(APPEND additional_cmake_args "-DENABLE_LIBC_TESTS=OFF" "-DENABLE_COMPILER_RT_TESTS=OFF" "-DENABLE_LIBCXX_TESTS=OFF")
174174
set(read_ENABLE_LIBC_TESTS "OFF")

0 commit comments

Comments
 (0)