Skip to content

Commit

Permalink
Use new flag -d=oldFrontEndUnitCheck
Browse files Browse the repository at this point in the history
The "NF" unit checking tests use the old frontend for unit checking,
which is wrong.

Belonging to [master]:
  - OpenModelica/OMCompiler#1978
  - OpenModelica/OpenModelica-testsuite#764
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Nov 6, 2017
1 parent d69fb20 commit 7046ded
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 19 deletions.
1 change: 1 addition & 0 deletions openmodelica/bootstrapping/LoadCompilerSources.mos
Expand Up @@ -278,6 +278,7 @@ if true then /* Suppress output */
prefixPath + "Util/Settings.mo",
prefixPath + "Util/SimulationResults.mo",
prefixPath + "Util/Socket.mo",
prefixPath + "Util/StackOverflow.mo",
prefixPath + "Util/StringUtil.mo",
prefixPath + "Util/System.mo",
prefixPath + "Util/TaskGraphResults.mo",
Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck1.mos
Expand Up @@ -38,7 +38,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck1);
getErrorString();
Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck10.mos
Expand Up @@ -16,7 +16,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck10); getErrorString();

Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck11.mos
Expand Up @@ -16,7 +16,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck11); getErrorString();

Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck12.mos
Expand Up @@ -16,7 +16,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck12); getErrorString();

Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck13.mos
Expand Up @@ -16,7 +16,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits"); getErrorString();
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits"); getErrorString();
instantiateModel(unitCheckTests.UnitCheck13); getErrorString();


Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck14.mos
Expand Up @@ -15,7 +15,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits"); getErrorString();
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits"); getErrorString();
instantiateModel(unitCheckTests.UnitCheck14); getErrorString();


Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck15.mos
Expand Up @@ -21,7 +21,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits"); getErrorString();
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits"); getErrorString();
instantiateModel(unitCheckTests.UnitCheck15); getErrorString();


Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck16.mos
Expand Up @@ -10,7 +10,7 @@ equation
end test;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(test);
getErrorString();
Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck17.mos
Expand Up @@ -19,7 +19,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck17);
getErrorString();
Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck2.mos
Expand Up @@ -16,7 +16,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck2);
getErrorString();
Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck3.mos
Expand Up @@ -16,7 +16,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck3); getErrorString();

Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck4.mos
Expand Up @@ -16,7 +16,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck4); getErrorString();

Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck5.mos
Expand Up @@ -16,7 +16,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck5); getErrorString();

Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck6.mos
Expand Up @@ -16,7 +16,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck6); getErrorString();

Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck7.mos
Expand Up @@ -16,7 +16,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck7); getErrorString();

Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck8.mos
Expand Up @@ -16,7 +16,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck8); getErrorString();

Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/UnitCheck9.mos
Expand Up @@ -18,7 +18,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck9); getErrorString();

Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/Unitcheck18.mos
Expand Up @@ -28,7 +28,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.UnitCheck18);
getErrorString();
Expand Down
2 changes: 1 addition & 1 deletion simulation/modelica/NFunitcheck/ticket3631.mos
Expand Up @@ -13,7 +13,7 @@ package unitCheckTests
end unitCheckTests;
"); getErrorString();

setCommandLineOptions("+d=frontEndUnitCheck +d=dumpUnits");
setCommandLineOptions("-d=oldFrontEndUnitCheck,dumpUnits");
getErrorString();
instantiateModel(unitCheckTests.ticket3631); getErrorString();

Expand Down

0 comments on commit 7046ded

Please sign in to comment.