mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Added stubs for spec and parser tests with the new API
This commit is contained in:
@@ -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}
|
||||
|
7
test/new-api/parsertests.cpp
Normal file
7
test/new-api/parsertests.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include "parsertests.h"
|
||||
|
||||
namespace Test {
|
||||
bool RunParserTests()
|
||||
{
|
||||
}
|
||||
}
|
8
test/new-api/spectests.cpp
Normal file
8
test/new-api/spectests.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "spectests.h"
|
||||
|
||||
namespace Test {
|
||||
bool RunSpecTests()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user