From aee178901d8bd03f9e0aeb50e3a5ed7570d9f910 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 11 Jan 2018 19:33:38 +0100 Subject: Start with config object types, for git dependencies --- tests/src/confTest/confTest.cpp | 11 +++++++++++ tests/src/confTest/gitDependency.conf | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 tests/src/confTest/gitDependency.conf (limited to 'tests') diff --git a/tests/src/confTest/confTest.cpp b/tests/src/confTest/confTest.cpp index f3d9e2b..d24c460 100644 --- a/tests/src/confTest/confTest.cpp +++ b/tests/src/confTest/confTest.cpp @@ -104,3 +104,14 @@ TEST_CASE("parse config - define dynamic") REQUIRE(sibsConfig.getDefinedValue("BUILD_STATIC") == "0"); REQUIRE(sibsConfig.getDefinedValue("DEFINE_TYPE") == "DYNAMIC"); } + +TEST_CASE("parse config - git dependency") +{ + SibsConfig sibsConfig(Compiler::GCC, TINYDIR_STRING("tests/src/confTest"), OPT_LEV_DEBUG, false); + Result result = Config::readFromFile(TINYDIR_STRING("tests/src/confTest/gitDependency.conf"), sibsConfig); + if(result.isErr()) + { + fprintf(stderr, "%s", result.getErrMsg().c_str()); + exit(1); + } +} diff --git a/tests/src/confTest/gitDependency.conf b/tests/src/confTest/gitDependency.conf new file mode 100644 index 0000000..d18b267 --- /dev/null +++ b/tests/src/confTest/gitDependency.conf @@ -0,0 +1,9 @@ +[package] +name = "confTest" +version = "0.1.0" +type = "library" +platforms = ["linux64", "win64"] + +[dependencies] +xxhash = { git = "https://github.com/DEC05EBA/xxHash.git", branch = "master" } +catch2 = "1.0.0" -- cgit v1.2.3