History log of /openbmc/sdeventplus/test/ (Results 26 – 50 of 66)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
27b7301a18-Oct-2018 William A. Kennington III <wak@google.com>

utility/timer: Make it possible to get the Event

Other event sources expose the ability to get th event used for
constructing the source. Since our timer is basically just a time
source, we should b

utility/timer: Make it possible to get the Event

Other event sources expose the ability to get th event used for
constructing the source. Since our timer is basically just a time
source, we should be able to trivially get the event object.

Tested:
Built and run through unit tests

Change-Id: I4b4192797652a903cba90d6e73771014df7702d6
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

ba04ffb520-Sep-2018 William A. Kennington III <wak@google.com>

utility/timer: Implement oneshot timers

This change is meant to enable users of the old openbmc timer class to
trivially use the timer if they only want single executions. It also
makes setting up t

utility/timer: Implement oneshot timers

This change is meant to enable users of the old openbmc timer class to
trivially use the timer if they only want single executions. It also
makes setting up the timer less verbose if you do not already know the
timeout interval.

Tested:
Run through unit tests and did a sample integration with
phosphor-watchdog and phosphor-networkd. Verified that the new
oneshot example works as expected.

Change-Id: I2cd006d1f19fff99bce3f732a16eac9ca9553666
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

4755818e25-Sep-2018 William A. Kennington III <wak@google.com>

utility/timer: Callback should pass in the timer

This makes the timer better resemble the other source types, and makes
it easier to access timer properties from the callback.

Since we do not yet h

utility/timer: Callback should pass in the timer

This makes the timer better resemble the other source types, and makes
it easier to access timer properties from the callback.

Since we do not yet have any committed users of this API it is safe to
change it.

Tested:
Unit tests were run and builds work fine.

Change-Id: I9ecb24a20bc822b2ab55900e47a7cae834ba873d
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

81282e1a19-Sep-2018 William A. Kennington III <wak@google.com>

utility/timer: Implement

We often need a continually ticking timer for our daemons. This utility
wraps an sd_event time source as a convenience. This is meant to be a
usable replacement for the time

utility/timer: Implement

We often need a continually ticking timer for our daemons. This utility
wraps an sd_event time source as a convenience. This is meant to be a
usable replacement for the timer.hpp found in other openbmc projects.

Tested:
New tests pass with full coverage. Changes to the phosphor-watchdog
that rely on this utility work as expected.

Change-Id: Id12aed9e5b018e7eca825c4a7ac7b4f46e2f04c6
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

59a4722d19-Sep-2018 William A. Kennington III <wak@google.com>

test: Build test cases with their respective c++ files

The current build situation places the test wrappers and logs into the
top level test directory. We can actually build and run these binaries
i

test: Build test cases with their respective c++ files

The current build situation places the test wrappers and logs into the
top level test directory. We can actually build and run these binaries
ink the subdirectories containing the test sources. Do this.

Tested:
Run through the unit test suite and all test still show up and pass.

Change-Id: Ia5c9957242ae4df88dca6433682dc66bbbc3d684
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...

5f3cdfad12-Sep-2018 William A. Kennington III <wak@google.com>

Upgrade to C++17

Change-Id: I0efd11f488ceee9b1a03ffaa1522cf0182ae1aca
Signed-off-by: William A. Kennington III <wak@google.com>

8fd0cd4c23-Jul-2018 William A. Kennington III <wak@google.com>

source/base: Improve some method types

0005e30c23-Jul-2018 William A. Kennington III <wak@google.com>

event: Fix watchdog types

86be5dd823-Jul-2018 William A. Kennington III <wak@google.com>

source/event: Rename Event to EventBase

eaf815f723-Jul-2018 William A. Kennington III <wak@google.com>

source/io: Temporarily remove {get,set}_fd_own

These functions were implemented only in newer systemd 237+. We often
deal with older verisons so lets add them back after some time passes.
We could a

source/io: Temporarily remove {get,set}_fd_own

These functions were implemented only in newer systemd 237+. We often
deal with older verisons so lets add them back after some time passes.
We could also make them an optional autodetected feature to work around
the issue.

show more ...

571fdf9e22-Jul-2018 William A. Kennington III <wak@google.com>

source/child: Implement

a3a3850422-Jul-2018 William A. Kennington III <wak@google.com>

source/signal: Implement

ce80c3ff22-Jul-2018 William A. Kennington III <wak@google.com>

source/io: Implement

ebcb4f1e22-Jul-2018 William A. Kennington III <wak@google.com>

test/source/event: Add missing <type_traits>

5a7365c622-Jul-2018 William A. Kennington III <wak@google.com>

source/event: Implement event_handler style sources

425691a222-Jul-2018 William A. Kennington III <wak@google.com>

test/time: Missing functional

1072c7f019-Jul-2018 William A. Kennington III <wak@google.com>

test/time: Validate callback

e32a88e117-Jul-2018 William A. Kennington III <wak@google.com>

source/time: Implement

e0f1d19917-Jul-2018 William A. Kennington III <wak@google.com>

source/base: Make callback handling generic

4e9e604f17-Jul-2018 William A. Kennington III <wak@google.com>

internal/utils: Errors now have names

feef68f717-Jul-2018 William A. Kennington III <wak@google.com>

source/base: Refactor out callback routine

The callback mechanism will be used by other callback methods in the
same fashion, so we can template and re-use this functionality

2d943ead17-Jul-2018 William A. Kennington III <wak@google.com>

source/base: Support automatically configuring userdata

This makes callbacks work correctly as the systemd callback functions
need to know where to look for the object storing the real callback.

e3e1df0b17-Jul-2018 William A. Kennington III <wak@google.com>

test/source/base: Clean up duplicated code

cc6b12be17-Jul-2018 William A. Kennington III <wak@google.com>

source/base: Implement moving

f5285c7317-Jul-2018 William A. Kennington III <wak@google.com>

source/base: Make it possible to get the prepare callback

123