Skip to content

Commit cd6c68d

Browse files
committed
CMake: use new add_test syntax
It can run tests through the CMAKE_CROSSCOMPILING_EMULATOR.
1 parent 3ae417b commit cd6c68d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,35 +155,35 @@ if (BUILD_TESTING)
155155

156156
add_executable(test_id test/test_id.cxx)
157157
target_link_libraries(test_id PUBLIC ebml)
158-
add_test(test_id test_id)
158+
add_test(NAME test_id COMMAND test_id)
159159

160160
add_executable(test_header test/test_header.cxx)
161161
target_link_libraries(test_header PUBLIC ebml)
162-
add_test(test_header test_header)
162+
add_test(NAME test_header COMMAND test_header)
163163

164164
add_executable(test_infinite test/test_infinite.cxx)
165165
target_link_libraries(test_infinite PUBLIC ebml)
166-
add_test(test_infinite test_infinite)
166+
add_test(NAME test_infinite COMMAND test_infinite)
167167

168168
add_executable(test_utfstring test/test_utfstring.cxx)
169169
target_link_libraries(test_utfstring PUBLIC ebml)
170-
add_test(test_utfstring test_utfstring)
170+
add_test(NAME test_utfstring COMMAND test_utfstring)
171171

172172
add_executable(test_macros test/test_macros.cxx)
173173
target_link_libraries(test_macros PUBLIC ebml)
174-
add_test(test_macros test_macros)
174+
add_test(NAME test_macros COMMAND test_macros)
175175

176176
add_executable(test_crc test/test_crc.cxx)
177177
target_link_libraries(test_crc PUBLIC ebml)
178-
add_test(test_crc test_crc)
178+
add_test(NAME test_crc COMMAND test_crc)
179179

180180
add_executable(test_missing test/test_missing.cxx)
181181
target_link_libraries(test_missing PUBLIC ebml)
182-
add_test(test_missing test_missing)
182+
add_test(NAME test_missing COMMAND test_missing)
183183

184184
add_executable(test_versioning test/test_versioning.cxx)
185185
target_link_libraries(test_versioning PUBLIC ebml)
186-
add_test(test_versioning test_versioning)
186+
add_test(NAME test_versioning COMMAND test_versioning)
187187

188188
endif(BUILD_TESTING)
189189

0 commit comments

Comments
 (0)