File tree Expand file tree Collapse file tree 5 files changed +1244
-2
lines changed
Expand file tree Collapse file tree 5 files changed +1244
-2
lines changed Original file line number Diff line number Diff line change @@ -140,10 +140,17 @@ jobs:
140140 run : |
141141 .\test_gba.exe --gtest_filter=*thumb_${{ matrix.test }}_json --test-dir=${{ github.workspace }}/tests/
142142
143- arm_gba_test :
143+ jsmolka_gba_tests :
144144 runs-on : windows-latest
145145 needs : build
146146
147+ strategy :
148+ fail-fast : true
149+ matrix :
150+ test :
151+ - ARM_GBA_tests
152+ - Thumb_GBA_tests
153+
147154 steps :
148155 - uses : actions/checkout@v4
149156 with :
@@ -155,4 +162,4 @@ jobs:
155162
156163 - name : Run GBA tests
157164 run : |
158- .\test_gba.exe --gtest_filter=*ARM_GBA_tests * --test-dir=${{ github.workspace }}/tests/
165+ .\test_gba.exe --gtest_filter=*${{ matrix.test }} * --test-dir=${{ github.workspace }}/tests/
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ add_subdirectory(golden/nba/src/nba)
44
55add_subdirectory (cpu )
66add_subdirectory (arm.gba )
7+ add_subdirectory (thumb.gba )
78
89add_executable (test_gba
910 ${CMAKE_CURRENT_SOURCE_DIR} /main.cpp
@@ -22,6 +23,7 @@ target_link_libraries(test_gba
2223 PRIVATE
2324 test_cpu_adv
2425 test_arm_gba
26+ test_thumb_gba
2527 GTest::gtest
2628 libcommon
2729)
Original file line number Diff line number Diff line change 1+ find_package (nlohmann_json CONFIG REQUIRED )
2+ find_package (GTest CONFIG REQUIRED )
3+
4+ add_library (test_thumb_gba )
5+
6+ target_sources (test_thumb_gba
7+ PUBLIC
8+ ${CMAKE_CURRENT_SOURCE_DIR} /test_thumb.cpp
9+ )
10+
11+ target_link_libraries (test_thumb_gba PUBLIC
12+ libgba
13+ nba
14+ GameboyAdvanceHarness
15+ GTest::gtest
16+ nlohmann_json::nlohmann_json
17+ libcommon
18+ )
19+
20+ target_include_directories (test_thumb_gba
21+ PRIVATE
22+ ${GBA_TESTS_CPP_DIR}
23+ PUBLIC
24+ ${CMAKE_SOURCE_DIR} /cores/gba/tests/golden/nba/src/nba/include
25+ ${CMAKE_SOURCE_DIR} /cores/gba/tests/golden/nba/src/
26+ )
27+
28+ target_compile_definitions (test_thumb_gba PUBLIC
29+ TEST_DIR= "${CMAKE_SOURCE_DIR} /tests/"
30+ )
You can’t perform that action at this time.
0 commit comments