summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorGravatar MerryMage2016-03-20 14:58:24 +0000
committerGravatar MerryMage2016-05-19 08:38:03 +0100
commita03f9b6fb6cdaf480737faf37b9c244f46cd1a85 (patch)
tree9f2ff1718289bc48de5d9c07fee1d3c54c3af58c /src/tests
parentAudioCore: Implement time stretcher (#1737) (diff)
downloadyuzu-a03f9b6fb6cdaf480737faf37b9c244f46cd1a85.tar.gz
yuzu-a03f9b6fb6cdaf480737faf37b9c244f46cd1a85.tar.xz
yuzu-a03f9b6fb6cdaf480737faf37b9c244f46cd1a85.zip
tests: Infrastructure for unit tests
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/CMakeLists.txt14
-rw-r--r--src/tests/tests.cpp9
2 files changed, 23 insertions, 0 deletions
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 @@
1set(SRCS
2 tests.cpp
3 )
4
5set(HEADERS
6 )
7
8create_directory_groups(${SRCS} ${HEADERS})
9
10include_directories(../../externals/catch/single_include/)
11
12add_executable(tests ${SRCS} ${HEADERS})
13target_link_libraries(tests core video_core audio_core common)
14target_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.