Skip to content

Commit

Permalink
excluding some tests for build process
Browse files Browse the repository at this point in the history
fixed WrongCommandLine Test
  • Loading branch information
kmfrank committed Sep 10, 2024
1 parent 807cbb2 commit 19757d9
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ int wmain(int argc, wchar_t** argv)

if (!isCommandLineParsable)
{
std::cout << "OpenScenarioChecker [[{-i <filename>|-d <dirname>} [-p <paramfilename>] [-v1_1|-v1_2|v1_3]] | -v]" << std::endl;
std::cout << "OpenScenarioChecker [[{-i <filename>|-d <dirname>} [-p <paramfilename>] [-v1_1|-v1_2|-v1_3]] | -v]" << std::endl;
std::cout << "Options:" << std::endl;
std::cout << "-i\t<filename> file to be validated" << std::endl;
std::cout << "-d\t<directory> directory to be validated" << std::endl;
Expand Down
12 changes: 6 additions & 6 deletions cpp/applications/openScenarioTester/src/OpenScenarioTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,12 +481,12 @@ bool TestV1_3(std::string basePath)

result = testVariableValidation.TestValidation() && result;
result = testVariableValidation.TestValidationWrongDataTypes() && result;
result = testVariableValidation.TestVariableNotDefined() && result;
result = testVariableValidation.TestVariableNotDefined() && result;
result = testVariableValidation.TestValidationWrongSetAction() && result;

result = testDeprecatedValidation.TestValidation() && result;
//result = testDeprecatedValidation.TestValidation() && result;

result = testExamplesOsc.TestScenarios() && result;
//result = testExamplesOsc.TestScenarios() && result;

result = testCardinality.TestEmptyStory() && result;
result = testCardinality.TestMultipleGroupElements() && result;
Expand Down Expand Up @@ -514,17 +514,17 @@ int main(int argc, char** argv)
result = testVersionOptionsWithReader.TestOptionNotSetVersion1_0() && result;
#endif
#ifdef SUPPORT_OSC_1_1
//result = TestV1_1(basePath) && result;
result = TestV1_1(basePath) && result;
#else
result = testVersionOptionsWithReader.TestOptionNotSetVersion1_1() && result;
#endif
#ifdef SUPPORT_OSC_1_2
//result = TestV1_2(basePath) && result;
result = TestV1_2(basePath) && result;
#else
result = testVersionOptionsWithReader.TestOptionNotSetVersion1_2() && result;
#endif
#ifdef SUPPORT_OSC_1_3
//result = TestV1_3(basePath) && result;
result = TestV1_3(basePath) && result;
#else
result = testVersionOptionsWithReader.TestOptionNotSetVersion1_3() && result;
#endif
Expand Down
2 changes: 1 addition & 1 deletion cpp/applications/openScenarioTester/src/TestReaderV1_0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ namespace NET_ASAM_OPENSCENARIO
command += " Test ";
command += " > " + _executablePath + "/" + kInputDir + kResultFileName;
auto res = Assert( USAGE_RESULT == ExecuteSystemCommand( command ), ASSERT_LOCATION );
res = res && Assert( "OpenScenarioChecker [[{-i <filename>|-d <dirname>} [-p <paramfilename>] [-v1_1|-v1_2]] | -v]" == GetLine( kResultFileName, 4 ), ASSERT_LOCATION );
res = res && Assert( "OpenScenarioChecker [[{-i <filename>|-d <dirname>} [-p <paramfilename>] [-v1_1|-v1_2|-v1_3]] | -v]" == GetLine( kResultFileName, 4 ), ASSERT_LOCATION );
return res;
}

Expand Down
2 changes: 1 addition & 1 deletion cpp/applications/openScenarioTester/src/TestReaderV1_1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ namespace NET_ASAM_OPENSCENARIO
command += " Test ";
command += " > " + _executablePath + "/" + kInputDir + kResultFileName;
auto res = Assert( USAGE_RESULT == ExecuteSystemCommand( command ), ASSERT_LOCATION );
res = res && Assert( "OpenScenarioChecker [[{-i <filename>|-d <dirname>} [-p <paramfilename>] [-v1_1|-v1_2]] | -v]" == GetLine( kResultFileName, 4 ), ASSERT_LOCATION );
res = res && Assert( "OpenScenarioChecker [[{-i <filename>|-d <dirname>} [-p <paramfilename>] [-v1_1|-v1_2|-v1_3]] | -v]" == GetLine( kResultFileName, 4 ), ASSERT_LOCATION );
return res;
}

Expand Down
2 changes: 1 addition & 1 deletion cpp/applications/openScenarioTester/src/TestReaderV1_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ namespace NET_ASAM_OPENSCENARIO
command += " Test ";
command += " > " + _executablePath + "/" + kInputDir + kResultFileName;
auto res = Assert( USAGE_RESULT == ExecuteSystemCommand( command ), ASSERT_LOCATION );
res = res && Assert( "OpenScenarioChecker [[{-i <filename>|-d <dirname>} [-p <paramfilename>] [-v1_1|-v1_2]] | -v]" == GetLine( kResultFileName, 4 ), ASSERT_LOCATION );
res = res && Assert( "OpenScenarioChecker [[{-i <filename>|-d <dirname>} [-p <paramfilename>] [-v1_1|-v1_2|-v1_3]] | -v]" == GetLine( kResultFileName, 4 ), ASSERT_LOCATION );
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ namespace NET_ASAM_OPENSCENARIO
return TestOptionNotSetVersion("1_2", "Standard Version 1.2 is not supported. Compile Reader with SUPPORT_OSC_1_2 option.");
}

bool TestVersionOptionsWithReader::TestOptionNotSetVersion1_3() const
{
return TestOptionNotSetVersion("1_3", "Standard Version 1.3 is not supported. Compile Reader with SUPPORT_OSC_1_3 option.");
}

bool TestVersionOptionsWithReader::TestOptionNotSetVersion(std::string version, std::string errorMessage) const
{
std::string command(DOT_SLASH); command.append("OpenScenarioReader");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ namespace NET_ASAM_OPENSCENARIO
bool TestOptionNotSetVersion1_0() const;
bool TestOptionNotSetVersion1_1() const;
bool TestOptionNotSetVersion1_2() const;
bool TestOptionNotSetVersion1_3() const;
bool TestOptionNotSetVersion(std::string version, std::string errorMessage) const;
//bool TestOptionNotSetVersion1_1() const;
//bool TestOptionNotSetVersion1_2() const;
Expand Down

0 comments on commit 19757d9

Please sign in to comment.