summaryrefslogtreecommitdiffstats
path: root/test/test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix std::variant usageWilliam A. Kennington III2018-11-061-1/+2
| | | | | | | | This change makes it possible to use std::variant as a drop in replacement for mapbox::variant. Change-Id: Ia729c3a7832eec4dd6cddadba9bc160b6ba9ad90 Signed-off-by: William A. Kennington III <wak@google.com>
* formatter: update clang-format and fix-up file(s)Patrick Venture2018-10-141-5/+7
| | | | | | | | clang-format-6.0 introduced new changes, also then updates to .clang-format introduce more new changes. Change-Id: Iec9f84e3a7a5bf254d66eee46cdc9b3070e06687 Signed-off-by: Patrick Venture <venture@google.com>
* Enable clang-formatBrad Bishop2018-03-291-354/+298
| | | | | | | Fix up problems and enable clang-format during CI builds. Change-Id: Ia5c88281f7090c0aa09ba586d968f1fcd8aba4f1 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* test: signalqueue: add explicit cast to boolBrad Bishop2018-02-211-7/+7
| | | | | | | | | | | | | React to a GCC7.2 behavioral differences where assert(sdbusplus::message::message) no longer compiles. sdbusplus::message::message implements operator bool which prior to GCC7.2 was emitted implicitly. Add an explicit cast to bool where required. Tested: Built repository using GCC 7.2 Change-Id: I49fb05d616ba1f790ef68365983b1f85aa91e46a Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* change namespace on sdbusplus::matchPatrick Williams2017-05-011-1/+1
| | | | | | | sdbusplus::server::match::match moved to the sdbusplus::bus namespace. Change-Id: Ib1599f7efbf63570685a7029811f2eeb69ef6ace Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* pimgen: Use cast instead of integer literalsBrad Bishop2017-02-251-1/+3
| | | | | | | This ends up being more portable. Change-Id: I9e4e0414329878316a110a5234aeea4677b877e8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Set properties when constructing interfaces.Brad Bishop2017-02-141-1/+1
| | | | | | | | | Make use of new sdbusplus support for passing a map of properties and their values to the interface constructor. Change-Id: Ib0dd406fd80c89acb723e3a376af26ba57b53d27 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Link with libphosphor_dbusBrad Bishop2017-02-091-15/+11
| | | | | | | | | | | Link with libphosphor_dbus. Update the manager implementation to match the new server binding in libphosphor_dbus (bool types for notify and notify signature change). Change-Id: I033d224965caf737591e363b3e2fd666605bff13 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* build: split app/test pimgen invocationBrad Bishop2017-02-091-4/+4
| | | | | | | | | | | | | Run pimgen twice, once for the application with the real YAML and once for the testcase with the example YAML so that the testcase can run and build sucessfully when an alternate YAML tree is provided. Move extra interface rule generation from pimgen to a makefile generating script. Change-Id: Ib0c01bd2207007b815019232a466fa16889f2005 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add support for application startup events.Brad Bishop2017-02-021-0/+18
| | | | | | | | Allow clients to specify filters and actions that trigger on application startup. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: Ib36c5bab778d7c87906dd3f61a3a6e033c7ccde1
* Add support for createObjects actionBrad Bishop2017-02-011-1/+44
| | | | | Change-Id: I999a5e506a236eac8ca0944b0e2b003c57612e54 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Remove Object from testcaseBrad Bishop2017-02-011-16/+9
| | | | | | | | Currently the testcase and the application both define their own Object type. Move to a common header. Change-Id: I05dba67dca7855f522be299fcfd361913ed73fbc Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add propertyIs filterBrad Bishop2017-01-311-0/+78
| | | | | | | | | | | The existing property match filter tests a property in the PropertiesChanged signal payload. Add a match filter that tests any arbitrary property on any object. Change-Id: I1c238c03a3ccbf45f7b338693a4342fbd4f670c2 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Fix hardcoded string in propertyChangedToBrad Bishop2017-01-311-8/+60
| | | | | | | | | | Prior to this change this template will not build with types other than strings. Add an example that tests this. Change-Id: I71e5c4136e7e4fd52fea3e8e027e42634011d630 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* test: Move trigger objects to dedicated threadBrad Bishop2017-01-311-41/+82
| | | | | | | | | Put the trigger object in its own thread rather than the inventory manager thread. This allows the thread under test to make calls to it. Change-Id: I181d2d46a10e4193653df61205ac3380a1d4db2e Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Fix build failureBrad Bishop2017-01-241-1/+1
| | | | | | | | Comparing strings to object paths directly isn't supported at the moment. Change-Id: I98083cf563fe8dde74e7f058720a0481bbe7c2e6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Regenerate manager bindingsBrad Bishop2017-01-161-16/+14
| | | | | | | Re-run sdbus++ and react to the sdbusplus interface namespace move and a real object path type. Change-Id: Id6241b55cd3f2d4c3b85e5545e4ac6e5dd439e34
* Remove pointless move operationsBrad Bishop2017-01-161-3/+3
| | | | | Change-Id: I7ea63f3b78e62fa40247806ceca7b84b7e36f875 Signed-off-by: Brad Bishop <<bradleyb@fuzziesquirrel.com>
* Use std::thread in favor of direct pthread accessBrad Bishop2017-01-161-14/+6
| | | | | Change-Id: I7f2927deee84701f3ed7bec86ec97171a5daabb8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Run astyleBrad Bishop2017-01-121-74/+78
| | | | | Change-Id: Iec4802e9837465a7deb1fd7fd57a2068cc18c50d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add a testcase for setPropertyBrad Bishop2017-01-121-0/+48
| | | | | Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: Ifade8963ebc8d18dbdca46ece16800cf8ea8a6ad
* Add a testcase for destroyObjectBrad Bishop2017-01-121-0/+112
| | | | | | | | | | Validate that: -Dbus signal callbacks are established. -The propertyChangedTo filter works correctly. -The destroyObject action works correctly. Change-Id: I0981fed76aa26ff275a401ae81fd230833dfc4cc Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Enhance notify testcaseBrad Bishop2016-12-151-17/+115
| | | | | | | | | Validate signal content rather than doing explicit property lookups. This avoids race conditions and additionally validates that a signal is sent with the correct values. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: Iaf13b1dfd68eeaf8ab7e8dc3bf045f824c3c803a
* build: Fix out of tree build issuesBrad Bishop2016-11-211-1/+1
| | | | | | | | Eventually server.hpp will come from an external shared library. Until then, iquote it while it lives in-tree. Change-Id: If0f7da8e2c951443fea0d623ad03a7c54a5a5ee9 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Switch to generated interface factory methodsBrad Bishop2016-11-081-2/+2
| | | | | | | | Automatically populate the association of interface with an appropriate sdbusplus server side interface binding. Change-Id: Ie46d91cf2e6726b033789be6228c10ca14a76220 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add manager skeletonBrad Bishop2016-11-081-0/+77
Add stubbed Notify implementation and register for generated signal callbacks. Add a unit test; which, at this point does little more than verify we don't coredump on startup. Change-Id: I0cda71935947c0d082612a5c52e2b7eba98516ab Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud