diff options
| author | 2016-05-21 10:15:13 -0400 | |
|---|---|---|
| committer | 2016-05-21 10:15:13 -0400 | |
| commit | 5edff287b6da2821424e94d0ec48a00db2f7d944 (patch) | |
| tree | 8236ee8438948f3612bf9fd9f7932449fff1567b /src/tests | |
| parent | Merge pull request #1816 from JayFoxRox/refactor-tev-dump (diff) | |
| parent | Tests: Run tests on CI (diff) | |
| download | yuzu-5edff287b6da2821424e94d0ec48a00db2f7d944.tar.gz yuzu-5edff287b6da2821424e94d0ec48a00db2f7d944.tar.xz yuzu-5edff287b6da2821424e94d0ec48a00db2f7d944.zip | |
Merge pull request #1564 from MerryMage/this-is-only-a-test
tests: Infrastructure for unit tests
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/CMakeLists.txt | 16 | ||||
| -rw-r--r-- | src/tests/tests.cpp | 9 |
2 files changed, 25 insertions, 0 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt new file mode 100644 index 000000000..457c55571 --- /dev/null +++ b/src/tests/CMakeLists.txt | |||
| @@ -0,0 +1,16 @@ | |||
| 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}) | ||
| 15 | |||
| 16 | add_test(NAME tests COMMAND $<TARGET_FILE:tests>) | ||
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. | ||