-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for FAST_SFunc using Matlab action to integrate with CI #1703
Conversation
This reverts commit 5657f25.
This branch is to modify the workflow to add tests for the build of the Matlab Simulink interface.
Unit test for Matlab Simulink interface.
Use environment variable to get workspace root
Added Simulink test run
Rename simulink test and add step to set up Matlab.
Change class name to match file name.
Ensure variables are available to Simulink model
Actually build FAST_SFunc before testing
Add dependencies
Tests are failing before my new test can even be run, failures definitely seem completely unrelated to my new test. |
For convenience, here is the main error output, seems like there's a problem with missing targets related to openfoam:
|
Remove references to openfoam library as that module has been removed
Add references to external inflow module libs
update another reference from openfoam to externalinflow
I resolved the issue with openfoam --> extinflow so now the only test failure is unrelated to the PR changes (just exposing a previously hidden build failure). I would like to request a review please @andrew-platt @deslaughter |
Add missing seastlib
@deslaughter and @andrew-platt: perhaps we should merge #1682 with its fixes for Simulink into |
@reos-rcrozier, thanks for putting together this test case! This will definitely help when we make changes to the build system and don't remember to propagate them all the way (this was an oversight on my part during the name change). @bjonkman, I agree on merging 3.5.1 to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@reos-rcrozier Thanks for setting this up and working out the bugs. As @bjonkman mentioned, there was a PR to rc-3.5.1
that should fix the issue with the missing symbols. I'm getting together a PR merging rc-3.5.1
into dev
. Once that is merged you can pull in the changes and see if it fixes the symbol issue.
Thanks, sounds good |
Regarding |
If I build |
Could you try it with -DBLA_STATIC=ON? That should force it to statically link the system LAPACK library. |
with
I have a |
Maybe relevent: https://gitlab.kitware.com/cmake/cmake/-/issues/23705 |
I agree that the issue you linked is causing the problem. It said that LAPACK isn't found when |
Adding |
@reos-rcrozier I have merged branch |
replace references to foamfastlib with extinflowlib again
Add missing openblas packages for simulink test
again added missing seastatelib
Fix seastlib typo
Add BLA_STATIC=ON to simulink test build
Try using local static lapack for simulink
@deslaughter I tried building with
I'm trying again with |
Successful with |
I'm fine with merging this using |
Yes, I'm not sure why it didn't work, I may not have set it up correctly. Glad to have this merged, thanks. |
Feature or improvement description
This change introduces a matlab test case and a github workflow for testing the build and running of the Simulink S-function. The test currently fails, but this is because of a real problem of undefined symbols, hence the need for the test.
Related issue, if one exists
Impacted areas of the software
Github CI tests
Additional supporting information
Currently attempting to run the built S-function on Linux results in the following error
This is exhibited in the test.
Test results, if applicable