From 8b052110d8802eda3d4d76700bde8ecc80dbf79a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 3 Jan 2018 21:17:49 +0100 Subject: Add "sibs test" command. Tests are only run when that command is invoked --- tests/src/confTest/confTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/src') diff --git a/tests/src/confTest/confTest.cpp b/tests/src/confTest/confTest.cpp index 94cdb11..44bcab0 100644 --- a/tests/src/confTest/confTest.cpp +++ b/tests/src/confTest/confTest.cpp @@ -5,7 +5,7 @@ using namespace sibs; TEST_CASE("parse config") { - SibsConfig sibsConfig(Compiler::GCC, TINYDIR_STRING("tests/src/confTest")); + SibsConfig sibsConfig(Compiler::GCC, TINYDIR_STRING("tests/src/confTest"), OPT_LEV_DEBUG, false); Result result = Config::readFromFile(TINYDIR_STRING("tests/src/confTest/validProject.conf"), sibsConfig); if(result.isErr()) { @@ -42,7 +42,7 @@ TEST_CASE("parse config") TEST_CASE("parse config - invalid object") { - SibsConfig sibsConfig(Compiler::GCC, TINYDIR_STRING("tests/src/confTest")); + SibsConfig sibsConfig(Compiler::GCC, TINYDIR_STRING("tests/src/confTest"), OPT_LEV_DEBUG, false); Result result = Config::readFromFile(TINYDIR_STRING("tests/src/confTest/invalidObject.conf"), sibsConfig); REQUIRE(result.isErr()); REQUIRE(result.getErrMsg() == "Invalid config object \"invalidObj\""); @@ -50,7 +50,7 @@ TEST_CASE("parse config - invalid object") TEST_CASE("parse config - invalid field") { - SibsConfig sibsConfig(Compiler::GCC, TINYDIR_STRING("tests/src/confTest")); + SibsConfig sibsConfig(Compiler::GCC, TINYDIR_STRING("tests/src/confTest"), OPT_LEV_DEBUG, false); Result result = Config::readFromFile(TINYDIR_STRING("tests/src/confTest/invalidField.conf"), sibsConfig); REQUIRE(result.isErr()); REQUIRE(result.getErrMsg() == "Invalid field \"invalidField\" under object \"package\""); @@ -58,7 +58,7 @@ TEST_CASE("parse config - invalid field") TEST_CASE("parse config - use different config for different platforms") { - SibsConfig sibsConfig(Compiler::GCC, TINYDIR_STRING("tests/src/confTest")); + SibsConfig sibsConfig(Compiler::GCC, TINYDIR_STRING("tests/src/confTest"), OPT_LEV_DEBUG, false); Result result = Config::readFromFile(TINYDIR_STRING("tests/src/confTest/platformConfig.conf"), sibsConfig); if(result.isErr()) { -- cgit v1.2.3