mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-19 21:55:11 +00:00
Fixing unit tests
This commit is contained in:
@@ -38,6 +38,8 @@ set(SOURCES
|
|||||||
sources/APU/DSP/DSP.cpp
|
sources/APU/DSP/DSP.cpp
|
||||||
sources/APU/DSP/DSP.hpp
|
sources/APU/DSP/DSP.hpp
|
||||||
sources/Renderer/IRenderer.hpp
|
sources/Renderer/IRenderer.hpp
|
||||||
|
sources/Renderer/NoRenderer.cpp
|
||||||
|
sources/Renderer/NoRenderer.hpp
|
||||||
sources/Exceptions/InvalidAction.hpp
|
sources/Exceptions/InvalidAction.hpp
|
||||||
sources/Cartridge/InterruptVectors.hpp
|
sources/Cartridge/InterruptVectors.hpp
|
||||||
sources/Memory/RectangleShadow.cpp
|
sources/Memory/RectangleShadow.cpp
|
||||||
@@ -159,68 +161,27 @@ target_link_libraries(ComSquare
|
|||||||
|
|
||||||
add_executable(unit_tests EXCLUDE_FROM_ALL
|
add_executable(unit_tests EXCLUDE_FROM_ALL
|
||||||
${SOURCES}
|
${SOURCES}
|
||||||
tests/CPU/testAddressingMode.cpp
|
|
||||||
tests/CPU/testInterupts.cpp
|
|
||||||
tests/testMemoryBus.cpp
|
|
||||||
tests/tests.hpp
|
|
||||||
tests/APU/testAPUInstructions.cpp
|
|
||||||
tests/APU/testAPU.cpp
|
|
||||||
tests/CPU/testAddressingMode.cpp
|
|
||||||
tests/PPU/testPpuWrite.cpp
|
tests/PPU/testPpuWrite.cpp
|
||||||
tests/PPU/testPpuWriteFromVmain.cpp
|
|
||||||
tests/CPU/Math/testADC.cpp
|
|
||||||
tests/CPU/testStore.cpp
|
|
||||||
tests/CPU/testInternal.cpp
|
|
||||||
tests/CPU/testBits.cpp
|
|
||||||
tests/APU/testOperand.cpp
|
|
||||||
tests/CPU/Math/testSBC.cpp
|
|
||||||
tests/CPU/testTransfers.cpp
|
|
||||||
tests/CPU/Math/testOthersMath.cpp
|
|
||||||
tests/testRectangleMemory.cpp
|
|
||||||
tests/CPU/Math/testCMP.cpp
|
|
||||||
tests/CPU/testDMA.cpp
|
|
||||||
tests/CPU/testAddressingMode.cpp
|
|
||||||
tests/CPU/testInterupts.cpp
|
|
||||||
tests/testMemoryBus.cpp
|
|
||||||
tests/tests.hpp
|
|
||||||
tests/APU/testAPUInstructions.cpp
|
|
||||||
tests/APU/testAPU.cpp
|
|
||||||
tests/CPU/testAddressingMode.cpp
|
|
||||||
tests/PPU/testPpuWrite.cpp
|
|
||||||
tests/PPU/testPpuWriteFromVmain.cpp
|
|
||||||
tests/CPU/Math/testADC.cpp
|
|
||||||
tests/CPU/testStore.cpp
|
|
||||||
tests/CPU/testInternal.cpp
|
|
||||||
tests/CPU/testBits.cpp
|
|
||||||
tests/APU/testOperand.cpp
|
|
||||||
tests/CPU/Math/testSBC.cpp
|
|
||||||
tests/CPU/testTransfers.cpp
|
|
||||||
tests/CPU/Math/testOthersMath.cpp
|
|
||||||
tests/testRectangleMemory.cpp
|
|
||||||
tests/CPU/Math/testCMP.cpp
|
|
||||||
tests/PPU/testBackground.cpp
|
|
||||||
tests/PPU/testPpuRead.cpp
|
tests/PPU/testPpuRead.cpp
|
||||||
tests/CPU/testDMA.cpp
|
tests/PPU/testBackground.cpp
|
||||||
tests/CPU/testAddressingMode.cpp
|
tests/PPU/testPpuWriteFromVmain.cpp
|
||||||
tests/CPU/testInterupts.cpp
|
tests/testRectangleMemory.cpp
|
||||||
tests/testMemoryBus.cpp
|
|
||||||
tests/tests.hpp
|
|
||||||
tests/APU/testAPUInstructions.cpp
|
tests/APU/testAPUInstructions.cpp
|
||||||
tests/APU/testAPU.cpp
|
tests/APU/testAPU.cpp
|
||||||
tests/CPU/testAddressingMode.cpp
|
tests/APU/testOperand.cpp
|
||||||
tests/PPU/testPpuWrite.cpp
|
tests/tests.hpp
|
||||||
tests/PPU/testPpuWriteFromVmain.cpp
|
tests/testMemoryBus.cpp
|
||||||
|
tests/CPU/Math/testSBC.cpp
|
||||||
tests/CPU/Math/testADC.cpp
|
tests/CPU/Math/testADC.cpp
|
||||||
tests/CPU/testStore.cpp
|
tests/CPU/Math/testCMP.cpp
|
||||||
|
tests/CPU/Math/testOthersMath.cpp
|
||||||
|
tests/CPU/testDMA.cpp
|
||||||
|
tests/CPU/testTransfers.cpp
|
||||||
|
tests/CPU/testInterupts.cpp
|
||||||
|
tests/CPU/testAddressingMode.cpp
|
||||||
tests/CPU/testInternal.cpp
|
tests/CPU/testInternal.cpp
|
||||||
tests/CPU/testBits.cpp
|
tests/CPU/testBits.cpp
|
||||||
tests/APU/testOperand.cpp
|
tests/CPU/testStore.cpp
|
||||||
tests/CPU/Math/testSBC.cpp
|
|
||||||
tests/CPU/testTransfers.cpp
|
|
||||||
tests/CPU/Math/testOthersMath.cpp
|
|
||||||
tests/testRectangleMemory.cpp
|
|
||||||
tests/CPU/Math/testCMP.cpp
|
|
||||||
tests/CPU/testDMA.cpp
|
|
||||||
)
|
)
|
||||||
target_link_libraries(unit_tests criterion -lgcov)
|
target_link_libraries(unit_tests criterion -lgcov)
|
||||||
target_compile_options(unit_tests PUBLIC -fprofile-arcs -ftest-coverage)
|
target_compile_options(unit_tests PUBLIC -fprofile-arcs -ftest-coverage)
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include <ios>
|
#include <ios>
|
||||||
#include "SNES.hpp"
|
#include "SNES.hpp"
|
||||||
|
#include <iostream>
|
||||||
#ifdef DEBUGGER_ENABLED
|
#ifdef DEBUGGER_ENABLED
|
||||||
#include "Debugger/CPU/CPUDebug.hpp"
|
#include "Debugger/CPU/CPUDebug.hpp"
|
||||||
#include "Debugger/APUDebug.hpp"
|
#include "Debugger/APUDebug.hpp"
|
||||||
|
|||||||
Reference in New Issue
Block a user