Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/asam-ev/qc-framework int…
Browse files Browse the repository at this point in the history
…o patrick/add_tests_cicd

Signed-off-by: Patrick Abrahão <[email protected]>
  • Loading branch information
patrickpa committed May 27, 2024
2 parents 1d9be74 + 72469b8 commit ee0d098
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions test/function/runtime/src/runtime_tester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,43 +50,3 @@ TEST_F(cTesterRuntime, CmdConfigAutostart)
nRes |= CheckFileExists(strResultMessage, strResultFilePath);
ASSERT_TRUE_EXT(nRes == TestResult::ERR_NOERROR, strResultMessage.c_str());
}

TEST_F(cTesterRuntime, CmdConfigXodrAutostart)
{
std::string strResultMessage;

std::string strConfigFilePath = strTestFilesDir + "/" + "XodrSchemaChecker_config.xml";
std::string strXodrFilePath = "../stimuli/xodr_examples/three_connected_roads_with_steps.xodr";
std::string strXodrSchemaCheckerResultFilePath = strWorkingDir + "/" + "XodrSchemaChecker.xqar";
std::string strResultFilePath = strWorkingDir + "/" + "Result.xqar";

TestResult nRes = ExecuteCommand(strResultMessage, MODULE_NAME,
"-config " + strConfigFilePath + " -xodr " + strXodrFilePath + " -autostart");
ASSERT_TRUE_EXT(nRes == TestResult::ERR_NOERROR, strResultMessage.c_str());

nRes |= CheckFileExists(strResultMessage, strXodrSchemaCheckerResultFilePath);
ASSERT_TRUE_EXT(nRes == TestResult::ERR_NOERROR, strResultMessage.c_str());

nRes |= CheckFileExists(strResultMessage, strResultFilePath);
ASSERT_TRUE_EXT(nRes == TestResult::ERR_NOERROR, strResultMessage.c_str());
}

TEST_F(cTesterRuntime, CmdConfigXoscAutostart)
{
std::string strResultMessage;

std::string strConfigFilePath = strTestFilesDir + "/" + "XoscSchemaChecker_config.xml";
std::string strXoscFilePath = "../stimuli/xosc_examples/Einscherer_with_errors.xosc";
std::string strXoscSchemaCheckerResultFilePath = strWorkingDir + "/" + "XoscSchemaChecker.xqar";
std::string strResultFilePath = strWorkingDir + "/" + "Result.xqar";

TestResult nRes = ExecuteCommand(strResultMessage, MODULE_NAME,
"-config " + strConfigFilePath + " -xosc " + strXoscFilePath + " -autostart");
ASSERT_TRUE_EXT(nRes == TestResult::ERR_NOERROR, strResultMessage.c_str());

nRes |= CheckFileExists(strResultMessage, strXoscSchemaCheckerResultFilePath);
ASSERT_TRUE_EXT(nRes == TestResult::ERR_NOERROR, strResultMessage.c_str());

nRes |= CheckFileExists(strResultMessage, strResultFilePath);
ASSERT_TRUE_EXT(nRes == TestResult::ERR_NOERROR, strResultMessage.c_str());
}

0 comments on commit ee0d098

Please sign in to comment.