diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-01-11 19:33:38 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-01-11 20:59:33 +0100 |
commit | aee178901d8bd03f9e0aeb50e3a5ed7570d9f910 (patch) | |
tree | 5421f51aebca24dd14b7b09e4b310ca2f1313983 /tests/src/confTest/confTest.cpp | |
parent | b2b12abc4073c981a7fd856bc5071da887f98e43 (diff) |
Start with config object types, for git dependencies
Diffstat (limited to 'tests/src/confTest/confTest.cpp')
-rw-r--r-- | tests/src/confTest/confTest.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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<bool> result = Config::readFromFile(TINYDIR_STRING("tests/src/confTest/gitDependency.conf"), sibsConfig); + if(result.isErr()) + { + fprintf(stderr, "%s", result.getErrMsg().c_str()); + exit(1); + } +} |