Last change
on this file since 12247 was
11012,
checked in by landauf, 9 years ago
|
added unittest for plugin loading and unloading
|
-
Property svn:eol-style set to
native
|
File size:
872 bytes
|
Line | |
---|
1 | # Test-executable that loads and unloads the plugin at runtime an tests if it correctly (un-)registers static instances |
---|
2 | ORXONOX_ADD_EXECUTABLE( |
---|
3 | core_plugin_test |
---|
4 | EXCLUDE_FROM_ALL |
---|
5 | NO_INSTALL |
---|
6 | LINK_LIBRARIES |
---|
7 | core |
---|
8 | gmock_orxonox |
---|
9 | SOURCE_FILES |
---|
10 | ${GMOCK_MAIN} |
---|
11 | PluginTest.cc |
---|
12 | ) |
---|
13 | |
---|
14 | # A plugin that statically registers some instances |
---|
15 | ORXONOX_ADD_LIBRARY( |
---|
16 | testplugin |
---|
17 | PLUGIN |
---|
18 | EXCLUDE_FROM_ALL |
---|
19 | NO_INSTALL |
---|
20 | LINK_LIBRARIES |
---|
21 | core |
---|
22 | SOURCE_FILES |
---|
23 | Testclass.cc |
---|
24 | Testcommandlineargument.cc |
---|
25 | Testconsolecommand.cc |
---|
26 | Testsingleton.cc |
---|
27 | ) |
---|
28 | |
---|
29 | # let the test-executable depend on the plugin to ensure that the plugin always gets built before the test runs |
---|
30 | ADD_DEPENDENCIES(core_plugin_test testplugin) |
---|
31 | |
---|
32 | ADD_DEPENDENCIES(all_tests core_plugin_test) |
---|
33 | ADD_TEST(core_plugin_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/core_plugin_test --gtest_output=xml) |
---|
Note: See
TracBrowser
for help on using the repository browser.