Skip to content

Commit c32ebec

Browse files
committed
Adding an integration test that verifies the state at every step of the subtract program. Some tests are currently failing due to the bus not resetting correctly yet.
1 parent bd92690 commit c32ebec

File tree

2 files changed

+523
-1
lines changed

2 files changed

+523
-1
lines changed

test/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include_directories(${PROJECT_SOURCE_DIR}/src)
22
include_directories(include)
33

4-
add_executable(8bit-tests test_main.cpp core/BusTest.cpp core/FlagsRegisterTest.cpp core/StepCounterTest.cpp core/ProgramCounterTest.cpp core/ArithmeticLogicUnitTest.cpp core/EmulatorIntegrationTest.cpp core/AssemblerTest.cpp core/UtilsTest.cpp core/InstructionDecoderTest.cpp core/RandomAccessMemoryTest.cpp core/MemoryAddressRegisterTest.cpp core/TimeSourceTest.cpp core/ClockTest.cpp core/OutputRegisterTest.cpp core/InstructionRegisterTest.cpp core/GenericRegisterTest.cpp core/DisassemblerTest.cpp)
4+
add_executable(8bit-tests test_main.cpp core/BusTest.cpp core/FlagsRegisterTest.cpp core/StepCounterTest.cpp core/ProgramCounterTest.cpp core/ArithmeticLogicUnitTest.cpp core/EmulatorIntegrationTest.cpp core/AssemblerTest.cpp core/UtilsTest.cpp core/InstructionDecoderTest.cpp core/RandomAccessMemoryTest.cpp core/MemoryAddressRegisterTest.cpp core/TimeSourceTest.cpp core/ClockTest.cpp core/OutputRegisterTest.cpp core/InstructionRegisterTest.cpp core/GenericRegisterTest.cpp core/DisassemblerTest.cpp core/EmulatorIntegrationStepTest.cpp)
55
target_link_libraries(8bit-tests 8bit-core)
66

77
enable_testing()
@@ -11,6 +11,7 @@ add_test(AssemblerTest 8bit-tests --source-file=*AssemblerTest.cpp)
1111
add_test(BusTest 8bit-tests --source-file=*BusTest.cpp)
1212
add_test(ClockTest 8bit-tests --source-file=*ClockTest.cpp)
1313
add_test(DisassemblerTest 8bit-tests --source-file=*DisassemblerTest.cpp)
14+
add_test(EmulatorIntegrationStepTest 8bit-tests --source-file=*EmulatorIntegrationStepTest.cpp)
1415
add_test(EmulatorIntegrationTest 8bit-tests --source-file=*EmulatorIntegrationTest.cpp)
1516
add_test(FlagsRegisterTest 8bit-tests --source-file=*FlagsRegisterTest.cpp)
1617
add_test(GenericRegisterTest 8bit-tests --source-file=*GenericRegisterTest.cpp)

0 commit comments

Comments
 (0)