PSOPT / psopt

PSOPT Optimal Control Software
GNU Lesser General Public License v2.1
193 stars 75 forks source link

added test suite #32

Closed schulz0r closed 2 years ago

schulz0r commented 3 years ago

I added a test suite with an example test. Just run cmake with -DBUILD_TESTS=1. If you want to write tests for a specific module, create a file test_modulename.cxx in the tests/ directory. You can check my example in said directory to see how it works. I still have to add a mechanism which excludes all tests using the SNOPT interface in case SNOPT has not been build, but I can do that later when you require that.

vmbecerra commented 3 years ago

Philipp

Many thanks for doing this. I have not had a chance yet to look at the test suite. I have had a busy couple of weeks but I will try to look at it later this week.

Best regards

Victor.

On Sun, 27 Sep 2020 at 13:29, schulz0r notifications@github.com wrote:

I added a test suite with an example test. Just checkout the branch googletest and run cmake with -DBUILDTESTS=1. If you want to write tests for a specific module, create a file test.cxx in the tests/ directory. You can check my example in said directory to see how it works. I still have to add a mechanism which excludes all tests using the SNOPT interface in case SNOPT has not been build, but I can do that later when you require that.

You can view, comment on, or merge this pull request online at:

https://github.com/PSOPT/psopt/pull/32 Commit Summary

  • added test suite.

File Changes

Patch Links:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PSOPT/psopt/pull/32, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGCMBN6526GON5OKJK4HD3SH4V2HANCNFSM4R3Q5QTQ .