Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add some sanity checks for CI/Build MINGW
- make sure the compiler can build and simulate a simple model with C, C++ and that an FMU can be build - check that linearization works (for matlab) - check that OMEdit can start (not missing any dlls) - add a script to test the sanity, don't build it on the fly as escaping in Windows is alien technology - build more stuff in parallel for mingw/msvc (via all-runtimes target)
- Loading branch information
Showing
5 changed files
with
57 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// script to test the sanity of the OpenModelica compiler | ||
|
||
// load the model | ||
loadString(" | ||
model M | ||
Real x(start=1.0, fixed=true); | ||
parameter Real a = -1.0; | ||
equation | ||
der(x) = a * x; | ||
end M;"); getErrorString(); | ||
|
||
// build and FMU out of the model | ||
buildModelFMU(M); getErrorString(); | ||
|
||
// build an simulation executable out of the model | ||
buildModel(M); getErrorString(); | ||
|