Commit 264c6f23 authored by Hanspeter Portner's avatar Hanspeter Portner

gitlab-ci: test also on arm.

parent de83527b
Pipeline #3549151 (#) failed with stage
in 14 minutes and 14 seconds
stages:
- build
- test
- deploy
.variables_template: &variables_definition
......@@ -44,7 +43,7 @@ stages:
.arm_linux_template: &arm_linux_definition
image: ventosus/arm-linux-gnueabihf
<<: *build_definition
<<: *test_definition
.universal_w64_template: &universal_w64_definition
image: ventosus/universal-w64-mingw32
......
......@@ -266,10 +266,12 @@ if(${BUILD_TESTING})
set_target_properties(moony_test PROPERTIES INTERPROCEDURAL_OPTIMIZATION true) # -flto
target_link_libraries(moony_test "-lm")
if(NOT WIN32)
add_test(NAME API-Test COMMAND moony_test ${PROJECT_SOURCE_DIR}/test/moony_test.lua)
else()
if(DEFINED ${WINE})
add_test(NAME API-Test COMMAND ${WINE} moony_test ${PROJECT_SOURCE_DIR}/test/moony_test.lua)
elseif(DEFINED ${QEMU})
add_test(NAME API-Test COMMAND ${QEMU} moony_test ${PROJECT_SOURCE_DIR}/test/moony_test.lua)
else()
add_test(NAME API-Test COMMAND moony_test ${PROJECT_SOURCE_DIR}/test/moony_test.lua)
endif()
endif()
......
......@@ -18,3 +18,5 @@ set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(STATIC_LWS "/opt/${TOOLCHAIN}/lib/libwebsockets.a")
set(QEMU qemu-arm)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment