Start support for multiple build targets.
This commit is contained in:
parent
e3e03dc31f
commit
3dce256213
52 changed files with 1044 additions and 340 deletions
|
@ -8,14 +8,21 @@ g++ $SCRIPT_DIR/test_runner.cpp \
|
|||
$CORE_SRC_DIR/base_types/Index.cpp \
|
||||
$CORE_SRC_DIR/base_types/Char.cpp \
|
||||
$CORE_SRC_DIR/data_structures/String.cpp \
|
||||
$CORE_SRC_DIR/filesystem/File.cpp \
|
||||
$CORE_SRC_DIR/filesystem/FileSystemPath.cpp \
|
||||
$CORE_SRC_DIR/logging/Logger.cpp \
|
||||
$CORE_SRC_DIR/logging/ConsoleLogger.cpp \
|
||||
$CORE_SRC_DIR/serialization/yaml/YamlDocument.cpp \
|
||||
$CORE_SRC_DIR/serialization/yaml/YamlDocuments.cpp \
|
||||
$CORE_SRC_DIR/serialization/yaml/YamlParser.cpp \
|
||||
$CORE_SRC_DIR/streams/Stream.cpp \
|
||||
$CORE_SRC_DIR/streams/StringStream.cpp \
|
||||
$CORE_SRC_DIR/time/Time.cpp \
|
||||
$SCRIPT_DIR/test_utils/TestCaseRunner.cpp \
|
||||
$SCRIPT_DIR/core/TestFileSystemPath.cpp \
|
||||
$SCRIPT_DIR/core/TestString.cpp \
|
||||
$SCRIPT_DIR/core/TestVector.cpp \
|
||||
$SCRIPT_DIR/core/TestYamlParser.cpp \
|
||||
-o test_runner -g \
|
||||
-I$SCRIPT_DIR/test_utils \
|
||||
-I$CORE_SRC_DIR \
|
||||
|
@ -24,6 +31,8 @@ g++ $SCRIPT_DIR/test_runner.cpp \
|
|||
-I$CORE_SRC_DIR/data_structures \
|
||||
-I$CORE_SRC_DIR/base_types \
|
||||
-I$CORE_SRC_DIR/memory \
|
||||
-I$CORE_SRC_DIR/time \
|
||||
-I$CORE_SRC_DIR/system/process \
|
||||
-I$CORE_SRC_DIR/streams \
|
||||
-I$CORE_SRC_DIR/serialization/yaml \
|
||||
-I$CORE_SRC_DIR/time \
|
||||
-I$CORE_SRC_DIR/filesystem
|
|
@ -1,13 +0,0 @@
|
|||
include(TestTargets)
|
||||
|
||||
unit_tests(
|
||||
MODULE_NAME core
|
||||
FILES
|
||||
TestBits.cpp
|
||||
TestBitStream.cpp
|
||||
TestDataStructures.cpp
|
||||
TestTomlReader.cpp
|
||||
TestStringUtils.cpp
|
||||
DEPENDENCIES
|
||||
core
|
||||
)
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
#include "TestFramework.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
TEST_CASE(TestVectorExtend, "core")
|
||||
{
|
||||
Vector<size_t> vec;
|
||||
|
|
19
test/core/TestYamlParser.cpp
Normal file
19
test/core/TestYamlParser.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "TestFramework.h"
|
||||
|
||||
#include "YamlParser.h"
|
||||
#include "StringStream.h"
|
||||
|
||||
TEST_CASE(TestYamlParser, "core")
|
||||
{
|
||||
const auto content = R"(depends:
|
||||
headers:
|
||||
public:
|
||||
- core)";
|
||||
|
||||
StringStream stream(content);
|
||||
|
||||
YamlDocuments yaml_docs;
|
||||
YamlParser parser;
|
||||
const auto status = parser.parse(stream, yaml_docs);
|
||||
REQUIRE(status.ok());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue