From a03f9b6fb6cdaf480737faf37b9c244f46cd1a85 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sun, 20 Mar 2016 14:58:24 +0000 Subject: tests: Infrastructure for unit tests --- src/tests/CMakeLists.txt | 14 ++++++++++++++ src/tests/tests.cpp | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 src/tests/CMakeLists.txt create mode 100644 src/tests/tests.cpp (limited to 'src/tests') 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 @@ +set(SRCS + tests.cpp + ) + +set(HEADERS + ) + +create_directory_groups(${SRCS} ${HEADERS}) + +include_directories(../../externals/catch/single_include/) + +add_executable(tests ${SRCS} ${HEADERS}) +target_link_libraries(tests core video_core audio_core common) +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 @@ +// Copyright 2016 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#define CATCH_CONFIG_MAIN +#include + +// Catch provides the main function since we've given it the +// CATCH_CONFIG_MAIN preprocessor directive. -- cgit v1.2.3