diff --git a/CMakeLists.txt b/CMakeLists.txt index d30b220..746204a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ add_executable(dingusppc ${SOURCES} $ $ $) add_custom_command( - TARGET ${PROJECT_NAME} POST_BUILD + TARGET testppc POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy "${PROJECT_SOURCE_DIR}/cpu/ppc/test/ppcinttests.csv" $) diff --git a/README.md b/README.md index 3af4cef..231edb2 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ the following commands in the OS terminal: mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release .. -make +make dingusppc ``` You may specify another build type using the variable CMAKE_BUILD_TYPE. @@ -43,6 +43,17 @@ Due to the incomplete status of the program at this time, no additional librarie Future versions will include SDL 2 as a requirement. +## Testing + +DingusPPC includes a test suite for verifying the correctness of its PowerPC CPU +emulation. To build the tests, use the following terminal commands: +``` +mkdir build +cd build +cmake -DCMAKE_BUILD_TYPE=Release .. +make testppc +``` + ## Intended Minimum Requirements - Windows 7 or newer (64-bit), Linux 4.4 or newer, Mac OS X 10.9 or newer (64-bit)