From f7b2247217c7d74046da04884602ded77ca70ad2 Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Sat, 10 Sep 2011 18:05:35 -0500 Subject: [PATCH] Added stubs for spec and parser tests with the new API --- test/CMakeLists.txt | 5 +++++ test/new-api/parsertests.cpp | 7 +++++++ test/new-api/spectests.cpp | 8 ++++++++ 3 files changed, 20 insertions(+) create mode 100644 test/new-api/parsertests.cpp create mode 100644 test/new-api/spectests.cpp diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8da8c45..0749a99 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,11 +1,16 @@ file(GLOB test_headers [a-z]*.h) file(GLOB test_sources [a-z]*.cpp) file(GLOB test_old_api_sources old-api/[a-z]*.cpp) +file(GLOB test_new_api_sources new-api/[a-z]*.cpp) if(YAML_CPP_BUILD_OLD_API) list(APPEND test_sources ${test_old_api_sources}) +else() + list(APPEND test_sources ${test_new_api_sources}) endif() +include_directories(${YAML_CPP_SOURCE_DIR}/test) + add_executable(run-tests ${test_sources} ${test_headers} diff --git a/test/new-api/parsertests.cpp b/test/new-api/parsertests.cpp new file mode 100644 index 0000000..c21207e --- /dev/null +++ b/test/new-api/parsertests.cpp @@ -0,0 +1,7 @@ +#include "parsertests.h" + +namespace Test { + bool RunParserTests() + { + } +} diff --git a/test/new-api/spectests.cpp b/test/new-api/spectests.cpp new file mode 100644 index 0000000..952450c --- /dev/null +++ b/test/new-api/spectests.cpp @@ -0,0 +1,8 @@ +#include "spectests.h" + +namespace Test { + bool RunSpecTests() + { + return true; + } +}