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; + } +}