Meta: Run test-js and test-compress as CTest executables

Reduces the number of steps in the Actions workflow this way :^)
This commit is contained in:
Andrew Kaster 2021-02-28 15:06:42 -07:00 committed by Andreas Kling
parent 8453bb3461
commit 1aa605bc03
Notes: sideshowbarker 2024-07-18 21:47:07 +09:00
2 changed files with 11 additions and 9 deletions

View file

@ -177,15 +177,7 @@ jobs:
- name: Run CMake tests
working-directory: ${{ github.workspace }}/Meta/Lagom/Build
run: CTEST_OUTPUT_ON_FAILURE=1 ninja test || ${{ matrix.allow-test-failure }}
timeout-minutes: 2
if: ${{ matrix.with-fuzzers == 'NO_FUZZ' }}
- name: Run JS tests
working-directory: ${{ github.workspace }}/Meta/Lagom/Build
if: ${{ matrix.with-fuzzers == 'NO_FUZZ' }}
run: DISABLE_DBG_OUTPUT=1 ./test-js || ${{ matrix.allow-test-failure }}
- name: Run LibCompress tests
working-directory: ${{ github.workspace }}/Meta/Lagom/Build
run: ./test-compress
timeout-minutes: 4
if: ${{ matrix.with-fuzzers == 'NO_FUZZ' }}
notify_irc:

View file

@ -121,6 +121,11 @@ if (BUILD_LAGOM)
target_link_libraries(test-js_lagom Lagom)
target_link_libraries(test-js_lagom stdc++)
target_link_libraries(test-js_lagom pthread)
add_test(
NAME JS
COMMAND test-js_lagom --show-progress=false
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_executable(test-crypto_lagom ../../Userland/Utilities/test-crypto.cpp)
set_target_properties(test-crypto_lagom PROPERTIES OUTPUT_NAME test-crypto)
@ -136,6 +141,11 @@ if (BUILD_LAGOM)
set_target_properties(test-compress_lagom PROPERTIES OUTPUT_NAME test-compress)
target_link_libraries(test-compress_lagom Lagom)
target_link_libraries(test-compress_lagom stdc++)
add_test(
NAME Compress
COMMAND test-compress_lagom
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_executable(disasm_lagom ../../Userland/Utilities/disasm.cpp)
set_target_properties(disasm_lagom PROPERTIES OUTPUT_NAME disasm)