-
Notifications
You must be signed in to change notification settings - Fork 68
Decorrelating auto-sync and tuning-mode #317
Conversation
9183513 to
3e2c568
Compare
26b00cb to
0715449
Compare
Currently auto-sync can be disabled in tuning mode only. This patch decorrelates auto-sync and tnuning mode features: they can be activated independently. Signed-off-by: Thomas Cahuzac <[email protected]>
dcc8877 to
6a269f8
Compare
|
In the "Adding the ability to set configuration value" and "Allowing to choose the subsystem type" commit messages, please add a context information in the headline: as they stand, they seem to suggest, for instance, that the Parameter Framework does not provide the ability to set a configuration value at all. |
909b8e5 to
caa584c
Compare
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.
(const std::string& name, core::log::Logger& logger)
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.
hungarian
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.
Remove virtual as it is redundant with override.
caa584c to
926f83f
Compare
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.
ALWAYS_ASSERT(geParameterType(instanceConfigurableElement)->isScalar(),
"Parameter shall be scalar");Don't need to do it though.
Functional testing auto-sync feature requires a fake subsystem that allows to retrieve parameter value set by the parameter-framework. This patch introduces the introspection-subsystem, it provides the ability to retrieve the value of a boolean parameter. Signed-off-by: Thomas Cahuzac <[email protected]>
This patch allows the pfw test wrapper to set configuration values. Signed-off-by: Thomas Cahuzac <[email protected]>
Currently the subsystem type used by the functional test framework is always "Virtual". This patch provides the ability to change it. Signed-off-by: Thomas Cahuzac <[email protected]>
This feature was not test. This patch introduces a functional test that uses the instrospection subsystem to check the auto-sync feature. Two sequences are tested: - when auto-sync is activated, parameter sync occurs when a parameter is changed in the blackboard. - when auto-sync is off, parameter sync occurs when tha auto-sync is turned to on. Signed-off-by: Thomas Cahuzac <[email protected]>
926f83f to
6aa22a1
Compare
|
You still have 1 alignment wrong: #317 (comment) |
Decorrelating auto-sync and tuning mode Auto-sync and tuning mode can now be activated independently.
Signed-off-by: Thomas Cahuzac [email protected]

@dawagner @krocard plz review
👍 after that.
Coverage decreased (-43.3%) to 31.67% when pulling 6aa22a1 on tcahuzax:autosync_update into 705008b on 01org:master.
(const std::string& name, core::log::Logger& logger)namesubsystemLibraryinstanceConfigurableElementSubsystem(const std::string &name, core::log::Logger &logger)core::log::Logger &loggerconst CParameterType *geParameterType(CInstanceConfigurableElement *element)&and*are to right align.CMappingContext &contextcore::log::Logger &loggervirtualas it is redundant withoverride.ALWAYS_ASSERT(geParameterType(instanceConfigurableElement)->isScalar(),
"Parameter shall be scalar");