Quick & dirty test execution #16

This commit is contained in:
momo5502
2024-10-25 17:40:53 +02:00
parent 9091131a96
commit d29e4a811f
3 changed files with 9 additions and 1 deletions

View File

@@ -40,6 +40,9 @@ jobs:
- name: CMake Build - name: CMake Build
run: cmake --workflow --preset=${{matrix.preset}} run: cmake --workflow --preset=${{matrix.preset}}
- name: CMake Test
run: cd build/${{matrix.preset}} && ctest --verbose
#- name: Upload Artifacts #- name: Upload Artifacts
# uses: actions/upload-artifact@v4 # uses: actions/upload-artifact@v4
# with: # with:

View File

@@ -18,6 +18,7 @@ set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
########################################## ##########################################
project(emulator LANGUAGES C CXX) project(emulator LANGUAGES C CXX)
enable_testing()
########################################## ##########################################

View File

@@ -17,3 +17,7 @@ target_link_libraries(windows-emulator-test PRIVATE
) )
add_dependencies(windows-emulator-test test-sample) add_dependencies(windows-emulator-test test-sample)
add_test(NAME windows-emulator-test
COMMAND windows-emulator-test
WORKING_DIRECTORY "$<TARGET_FILE_DIR:windows-emulator-test>")