Skip to content

Commit

Permalink
Add parameter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaeuber committed Sep 27, 2016
1 parent 8a0ec7d commit f86f656
Show file tree
Hide file tree
Showing 12 changed files with 4,515 additions and 3 deletions.
12 changes: 11 additions & 1 deletion simulation/modelica/parameters/Makefile
@@ -1,9 +1,19 @@
TEST = ../../../rtest -v

TESTFILES = \
parameterTest.mos \
parameterTest2.mos \
parameterTest3.mos \
parameterTest4.mos \
parameterTest5.mos \
parameterTest6.mos \
parameterTest7.mos \
parameterTest8.mos \
parameterTest9.mos \
parameterTest10.mos \
parameterTest11.mos \
Engine1a_output.mos \
revoluteConstraint.mos \
parameterTest.mos \

# test that currently fail. Move up when fixed.
# Run make testfailing
Expand Down
4 changes: 2 additions & 2 deletions simulation/modelica/parameters/parameterTest.mos
@@ -1,5 +1,5 @@
// name: parameterTest
// keywords: parameter evaluation function evaluation
// keywords: parameter evaluation, function evaluation
// status: correct

loadString("
Expand Down Expand Up @@ -64,7 +64,7 @@ equation
end parameterTest;
"); getErrorString();

setCommandLineOptions("+d=evalParameterDump, --evalConstArgsOnly=false"); getErrorString();
setCommandLineOptions("-d=evalParameterDump, --evalConstArgsOnly=false"); getErrorString();
simulate(parameterTest); getErrorString();
val(p1, 0.0);
val(p2, 0.0);
Expand Down

0 comments on commit f86f656

Please sign in to comment.