Closed schulz0r closed 2 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
- M CMakeLists.txt https://github.com/PSOPT/psopt/pull/32/files#diff-af3b638bc2a3e6c650974192a53c7291 (5)
- A tests/CMakeLists.txt https://github.com/PSOPT/psopt/pull/32/files#diff-3dea97423f83302e647a3bab62bf1157 (48)
- A tests/CMakeLists.txt.in https://github.com/PSOPT/psopt/pull/32/files#diff-1e6ce328ded93f87ebb58e70ed8de813 (15)
- A tests/test_something.cpp https://github.com/PSOPT/psopt/pull/32/files#diff-44af7e36da48d4bfa391730f5dd7fc19 (17)
- A tests/tests_main.cpp https://github.com/PSOPT/psopt/pull/32/files#diff-3449057643bf0e596d2feb05b8748096 (6)
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 .
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.