-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Helper] PluginManager: testing loading a plugin with a dependency on…
… an other plugin (#4464) * add test on a second plugin with a dependency on an other plugin * fix runsofa test
- Loading branch information
Showing
17 changed files
with
213 additions
and
66 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
6 changes: 3 additions & 3 deletions
6
...per/test/system/TestPlugin/CMakeLists.txt → ...er/test/system/TestPluginA/CMakeLists.txt
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
File renamed without changes.
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 |
---|---|---|
|
@@ -19,10 +19,10 @@ | |
* * | ||
* Contact information: [email protected] * | ||
******************************************************************************/ | ||
#ifndef TESTPLUGIN_COMPONENT_A_H | ||
#define TESTPLUGIN_COMPONENT_A_H | ||
#ifndef TESTPLUGINA_COMPONENT_A_H | ||
#define TESTPLUGINA_COMPONENT_A_H | ||
|
||
#include <TestPlugin/TestPlugin.h> | ||
#include <TestPluginA/TestPluginA.h> | ||
#include <sofa/core/objectmodel/BaseObject.h> | ||
|
||
namespace sofa | ||
|
@@ -31,7 +31,7 @@ namespace sofa | |
namespace test | ||
{ | ||
|
||
class SOFA_TESTPLUGIN_API ComponentA : public sofa::core::objectmodel::BaseObject | ||
class SOFA_TESTPLUGINA_API ComponentA : public sofa::core::objectmodel::BaseObject | ||
{ | ||
|
||
public: | ||
|
@@ -47,4 +47,4 @@ class SOFA_TESTPLUGIN_API ComponentA : public sofa::core::objectmodel::BaseObjec | |
} // namespace sofa | ||
|
||
|
||
#endif // TESTPLUGIN_COMPONENT_A_H | ||
#endif // TESTPLUGINA_COMPONENT_A_H |
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
* * | ||
* Contact information: [email protected] * | ||
******************************************************************************/ | ||
#define TESTPLUGIN_COMPONENT_B_CPP | ||
#define TESTPLUGINA_COMPONENT_B_CPP | ||
|
||
#include "ComponentB.h" | ||
|
||
|
@@ -50,9 +50,9 @@ int ComponentBClass = sofa::core::RegisterObject("Component B") | |
|
||
; | ||
|
||
template class SOFA_TESTPLUGIN_API ComponentB<double>; | ||
template class SOFA_TESTPLUGIN_API ComponentB<sofa::defaulttype::Vec2Types>; | ||
template class SOFA_TESTPLUGIN_API ComponentB<sofa::defaulttype::Rigid3Types>; | ||
template class SOFA_TESTPLUGINA_API ComponentB<double>; | ||
template class SOFA_TESTPLUGINA_API ComponentB<sofa::defaulttype::Vec2Types>; | ||
template class SOFA_TESTPLUGINA_API ComponentB<sofa::defaulttype::Rigid3Types>; | ||
|
||
|
||
|
||
|
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 |
---|---|---|
|
@@ -19,10 +19,10 @@ | |
* * | ||
* Contact information: [email protected] * | ||
******************************************************************************/ | ||
#ifndef TESTPLUGIN_COMPONENT_B_H | ||
#define TESTPLUGIN_COMPONENT_B_H | ||
#ifndef TESTPLUGINA_COMPONENT_B_H | ||
#define TESTPLUGINA_COMPONENT_B_H | ||
|
||
#include <TestPlugin/TestPlugin.h> | ||
#include <TestPluginA/TestPluginA.h> | ||
#include <sofa/core/objectmodel/BaseObject.h> | ||
#include <sofa/defaulttype/RigidTypes.h> | ||
|
||
|
@@ -33,7 +33,7 @@ namespace test | |
{ | ||
|
||
template<class T> | ||
class SOFA_TESTPLUGIN_API ComponentB : public sofa::core::objectmodel::BaseObject | ||
class SOFA_TESTPLUGINA_API ComponentB : public sofa::core::objectmodel::BaseObject | ||
{ | ||
|
||
public: | ||
|
@@ -45,16 +45,16 @@ class SOFA_TESTPLUGIN_API ComponentB : public sofa::core::objectmodel::BaseObjec | |
|
||
}; | ||
|
||
#if !defined(TESTPLUGIN_COMPONENT_B_CPP) | ||
extern template class SOFA_TESTPLUGIN_API ComponentB<double>; | ||
extern template class SOFA_TESTPLUGIN_API ComponentB<defaulttype::Vec2Types>; | ||
extern template class SOFA_TESTPLUGIN_API ComponentB<defaulttype::Rigid3Types>; | ||
#if !defined(TESTPLUGINA_COMPONENT_B_CPP) | ||
extern template class SOFA_TESTPLUGINA_API ComponentB<double>; | ||
extern template class SOFA_TESTPLUGINA_API ComponentB<defaulttype::Vec2Types>; | ||
extern template class SOFA_TESTPLUGINA_API ComponentB<defaulttype::Rigid3Types>; | ||
|
||
#endif // !defined(TESTPLUGIN_COMPONENT_B_CPP) | ||
#endif // !defined(TESTPLUGINA_COMPONENT_B_CPP) | ||
|
||
} // namespace test | ||
|
||
} // namespace sofa | ||
|
||
|
||
#endif // TESTPLUGIN_COMPONENT_B_H | ||
#endif // TESTPLUGINA_COMPONENT_B_H |
File renamed without changes.
File renamed without changes.
39 changes: 39 additions & 0 deletions
39
Sofa/framework/Helper/test/system/TestPluginA/TestPluginA.h
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,39 @@ | ||
/****************************************************************************** | ||
* SOFA, Simulation Open-Framework Architecture * | ||
* (c) 2006 INRIA, USTL, UJF, CNRS, MGH * | ||
* * | ||
* This program is free software; you can redistribute it and/or modify it * | ||
* under the terms of the GNU Lesser General Public License as published by * | ||
* the Free Software Foundation; either version 2.1 of the License, or (at * | ||
* your option) any later version. * | ||
* * | ||
* This program is distributed in the hope that it will be useful, but WITHOUT * | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License * | ||
* for more details. * | ||
* * | ||
* You should have received a copy of the GNU Lesser General Public License * | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. * | ||
******************************************************************************* | ||
* Authors: The SOFA Team and external contributors (see Authors.txt) * | ||
* * | ||
* Contact information: [email protected] * | ||
******************************************************************************/ | ||
#ifndef TESTPLUGINA_CONFIG_H | ||
#define TESTPLUGINA_CONFIG_H | ||
|
||
#include <sofa/helper/config.h> | ||
|
||
#ifdef SOFA_BUILD_TESTPLUGINA | ||
# define SOFA_TARGET TestPluginA | ||
# define SOFA_TESTPLUGINA_API SOFA_EXPORT_DYNAMIC_LIBRARY | ||
#else | ||
# define SOFA_TESTPLUGINA_API SOFA_IMPORT_DYNAMIC_LIBRARY | ||
#endif | ||
|
||
namespace testplugina | ||
{ | ||
SOFA_TESTPLUGINA_API void init(); | ||
} | ||
|
||
#endif // TESTPLUGINA_CONFIG_H |
File renamed without changes.
Oops, something went wrong.