diff options
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rw-r--r-- | appveyor.yml | 4 | ||||
| m--------- | externals/catch | 0 | ||||
| -rw-r--r-- | src/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/tests/CMakeLists.txt | 14 | ||||
| -rw-r--r-- | src/tests/tests.cpp | 9 |
6 files changed, 31 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules index db0905b3d..1f0b80768 100644 --- a/.gitmodules +++ b/.gitmodules | |||
| @@ -10,3 +10,6 @@ | |||
| 10 | [submodule "soundtouch"] | 10 | [submodule "soundtouch"] |
| 11 | path = externals/soundtouch | 11 | path = externals/soundtouch |
| 12 | url = https://github.com/citra-emu/ext-soundtouch.git | 12 | url = https://github.com/citra-emu/ext-soundtouch.git |
| 13 | [submodule "catch"] | ||
| 14 | path = externals/catch | ||
| 15 | url = https://github.com/philsquared/Catch.git | ||
diff --git a/appveyor.yml b/appveyor.yml index 1edd7041f..e825ff85d 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
| @@ -22,6 +22,10 @@ before_build: | |||
| 22 | - cmake -G "Visual Studio 14 2015 Win64" -DCITRA_USE_BUNDLED_QT=1 -DCITRA_USE_BUNDLED_SDL2=1 .. | 22 | - cmake -G "Visual Studio 14 2015 Win64" -DCITRA_USE_BUNDLED_QT=1 -DCITRA_USE_BUNDLED_SDL2=1 .. |
| 23 | - cd .. | 23 | - cd .. |
| 24 | 24 | ||
| 25 | build: | ||
| 26 | project: build/citra.sln | ||
| 27 | parallel: true | ||
| 28 | |||
| 25 | after_build: | 29 | after_build: |
| 26 | # copying the needed QT Dlls is now done post build. See the CMakeLists.txt file in the citra-qt folder | 30 | # copying the needed QT Dlls is now done post build. See the CMakeLists.txt file in the citra-qt folder |
| 27 | - ps: > | 31 | - ps: > |
diff --git a/externals/catch b/externals/catch new file mode 160000 | |||
| Subproject c984fc3ecde60b59efa2203e82261acac8ac850 | |||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index de4fe716a..1e1245160 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -5,6 +5,7 @@ add_subdirectory(common) | |||
| 5 | add_subdirectory(core) | 5 | add_subdirectory(core) |
| 6 | add_subdirectory(video_core) | 6 | add_subdirectory(video_core) |
| 7 | add_subdirectory(audio_core) | 7 | add_subdirectory(audio_core) |
| 8 | add_subdirectory(tests) | ||
| 8 | if (ENABLE_SDL2) | 9 | if (ENABLE_SDL2) |
| 9 | add_subdirectory(citra) | 10 | add_subdirectory(citra) |
| 10 | endif() | 11 | endif() |
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt new file mode 100644 index 000000000..dc476616c --- /dev/null +++ b/src/tests/CMakeLists.txt | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | set(SRCS | ||
| 2 | tests.cpp | ||
| 3 | ) | ||
| 4 | |||
| 5 | set(HEADERS | ||
| 6 | ) | ||
| 7 | |||
| 8 | create_directory_groups(${SRCS} ${HEADERS}) | ||
| 9 | |||
| 10 | include_directories(../../externals/catch/single_include/) | ||
| 11 | |||
| 12 | add_executable(tests ${SRCS} ${HEADERS}) | ||
| 13 | target_link_libraries(tests core video_core audio_core common) | ||
| 14 | target_link_libraries(tests ${PLATFORM_LIBRARIES}) | ||
diff --git a/src/tests/tests.cpp b/src/tests/tests.cpp new file mode 100644 index 000000000..73978676f --- /dev/null +++ b/src/tests/tests.cpp | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | // Copyright 2016 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #define CATCH_CONFIG_MAIN | ||
| 6 | #include <catch.hpp> | ||
| 7 | |||
| 8 | // Catch provides the main function since we've given it the | ||
| 9 | // CATCH_CONFIG_MAIN preprocessor directive. | ||