Skip to content

Commit

Permalink
add test for string handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke committed Aug 14, 2015
1 parent 40f1091 commit 5f8a13a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 29 deletions.
8 changes: 6 additions & 2 deletions openmodelica/cppruntime/libraries/msl32/Makefile
Expand Up @@ -21,6 +21,10 @@ Modelica.StateGraph.Examples.FirstExample.mos \
Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.mos \
Modelica.Thermal.HeatTransfer.Examples.TwoMasses.mos \
Modelica.Electrical.Digital.Examples.Counter.mos \
Modelica.Utilities.Examples.readRealParameterModel.mos \

# tested features:
# readRealParameterModel: string handling, variable name string

# Run make failingtest
FAILINGTESTFILES=\
Expand All @@ -47,7 +51,7 @@ test:
@echo
@echo OPENMODELICAHOME=" $(OPENMODELICAHOME) "
@$(TEST) $(TESTFILES)

# Cleans all files that are not listed as dependencies
clean :
@echo $(DEPENDENCIES) | sed 's/ /\\|/g' > deps.tmp
Expand All @@ -64,7 +68,7 @@ getdeps:
@echo $(CLEAN) | sed -r 's/deps.txt|deps.tmp//g' | sed 's/ / \\\n/g' > deps.txt
@echo Dependency list saved in deps.txt.
@echo Copy the list from deps.txt and add it to the Makefile @DEPENDENCIES

failingtest:
@echo
@echo Running failing tests...
Expand Down
Expand Up @@ -30,33 +30,12 @@ res := OpenModelica.Scripting.compareSimulationResults("Modelica.Utilities.Examp
// ""
// true
// ""
// true
// ""
// Not possible to open file "C:/Projekte/OpenModelica/testsuite/simulation/libraries/msl32/modelica:/Modelica/Resources/Data/Utilities/Examples_readRealParameters.txt" for reading:
// Invalid argument
// Not possible to open file "C:/Projekte/OpenModelica/testsuite/simulation/libraries/msl32/modelica:/Modelica/Resources/Data/Utilities/Examples_readRealParameters.txt" for reading:
// Invalid argument
// Not possible to open file "C:/Projekte/OpenModelica/testsuite/simulation/libraries/msl32/modelica:/Modelica/Resources/Data/Utilities/Examples_readRealParameters.txt" for reading:
// Invalid argument
// Not possible to open file "C:/Projekte/OpenModelica/testsuite/simulation/libraries/msl32/modelica:/Modelica/Resources/Data/Utilities/Examples_readRealParameters.txt" for reading:
// Invalid argument
// Not possible to open file "C:/Projekte/OpenModelica/testsuite/simulation/libraries/msl32/modelica:/Modelica/Resources/Data/Utilities/Examples_readRealParameters.txt" for reading:
// Invalid argument
// Not possible to open file "C:/Projekte/OpenModelica/testsuite/simulation/libraries/msl32/modelica:/Modelica/Resources/Data/Utilities/Examples_readRealParameters.txt" for reading:
// Invalid argument
// Not possible to open file "C:/Projekte/OpenModelica/testsuite/simulation/libraries/msl32/modelica:/Modelica/Resources/Data/Utilities/Examples_readRealParameters.txt" for reading:
// Invalid argument
// Not possible to open file "C:/Projekte/OpenModelica/testsuite/simulation/libraries/msl32/modelica:/Modelica/Resources/Data/Utilities/Examples_readRealParameters.txt" for reading:
// Invalid argument
// Not possible to open file "C:/Projekte/OpenModelica/testsuite/simulation/libraries/msl32/modelica:/Modelica/Resources/Data/Utilities/Examples_readRealParameters.txt" for reading:
// Invalid argument
// record SimulationResult
// resultFile = "",
// simulationOptions = "startTime = 0.0, stopTime = 1.01, numberOfIntervals = 500, tolerance = 0.000001, method = 'dassl', fileNamePrefix = 'Modelica.Utilities.Examples.readRealParameterModel', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = "Simulation execution failed for model: Modelica.Utilities.Examples.readRealParameterModel
// File too large"
// resultFile = "Modelica.Utilities.Examples.readRealParameterModel_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.01, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica.Utilities.Examples.readRealParameterModel', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = ""
// end SimulationResult;
// "Error: File too large to fit into a MetaModelica string: output.log.
// "
// "Error opening file: Modelica.Utilities.Examples.readRealParameterModel_res.mat"
// ""
// {"Files Equal!"}
// ""
// endResult

0 comments on commit 5f8a13a

Please sign in to comment.