Skip to content

Commit

Permalink
Remove xsd tests on Windows (#62)
Browse files Browse the repository at this point in the history
Signed-off-by: romanodanilo <[email protected]>

Signed-off-by: romanodanilo <[email protected]>
  • Loading branch information
romanodanilo authored May 27, 2024
1 parent fbe5a5c commit 72469b8
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 72469b8

Please sign in to comment.