mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 08:36:16 +00:00
Quick & dirty test execution #16
This commit is contained in:
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -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:
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
|
|||||||
##########################################
|
##########################################
|
||||||
|
|
||||||
project(emulator LANGUAGES C CXX)
|
project(emulator LANGUAGES C CXX)
|
||||||
|
enable_testing()
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
|
|
||||||
|
|||||||
@@ -16,4 +16,8 @@ target_link_libraries(windows-emulator-test PRIVATE
|
|||||||
windows-emulator
|
windows-emulator
|
||||||
)
|
)
|
||||||
|
|
||||||
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>")
|
||||||
Reference in New Issue
Block a user