rv = gpiod_line_request_rising_edge_events(line, TEST_CONSUMER);
TEST_ASSERT_RET_OK(rv);
- test_set_event(0, 7, TEST_EVENT_RISING, 100);
+ test_set_event(0, 7, 100);
rv = gpiod_line_event_wait(line, &ts);
TEST_ASSERT_EQ(rv, 1);
rv = gpiod_line_request_falling_edge_events(line, TEST_CONSUMER);
TEST_ASSERT_RET_OK(rv);
- test_set_event(0, 7, TEST_EVENT_FALLING, 100);
+ test_set_event(0, 7, 100);
rv = gpiod_line_event_wait(line, &ts);
TEST_ASSERT_EQ(rv, 1);
rv = gpiod_line_request_rising_edge_events(line, TEST_CONSUMER);
TEST_ASSERT_RET_OK(rv);
- test_set_event(0, 7, TEST_EVENT_FALLING, 100);
+ test_set_event(0, 7, 100);
rv = gpiod_line_event_wait(line, &ts);
TEST_ASSERT_EQ(rv, 0);
GPIOD_LINE_REQUEST_FLAG_ACTIVE_LOW);
TEST_ASSERT_RET_OK(rv);
- test_set_event(0, 7, TEST_EVENT_RISING, 100);
+ test_set_event(0, 7, 100);
rv = gpiod_line_event_wait(line, &ts);
TEST_ASSERT_EQ(rv, 1);
rv = gpiod_line_get_value(line);
TEST_ASSERT_EQ(rv, 0);
- test_set_event(0, 7, TEST_EVENT_RISING, 100);
+ test_set_event(0, 7, 100);
rv = gpiod_line_event_wait(line, &ts);
TEST_ASSERT_EQ(rv, 1);
rv = gpiod_line_get_value(line);
TEST_ASSERT_EQ(rv, 1);
- test_set_event(0, 7, TEST_EVENT_FALLING, 100);
+ test_set_event(0, 7, 100);
rv = gpiod_line_event_wait(line, &ts);
TEST_ASSERT_EQ(rv, 1);
rv = gpiod_line_request_bulk_both_edges_events(&bulk, TEST_CONSUMER);
TEST_ASSERT_RET_OK(rv);
- test_set_event(0, 4, TEST_EVENT_RISING, 100);
+ test_set_event(0, 4, 100);
rv = gpiod_line_event_wait_bulk(&bulk, &ts, &event_bulk);
TEST_ASSERT_EQ(rv, 1);
{
test_tool_run("gpiomon", "--rising-edge", "--num-events=1",
test_chip_name(1), "4", (char *)NULL);
- test_set_event(1, 4, TEST_EVENT_RISING, 200);
+ test_set_event(1, 4, 200);
test_tool_wait();
TEST_ASSERT(test_tool_exited());
{
test_tool_run("gpiomon", "--rising-edge", "--num-events=1",
"--active-low", test_chip_name(1), "4", (char *)NULL);
- test_set_event(1, 4, TEST_EVENT_RISING, 200);
+ test_set_event(1, 4, 200);
test_tool_wait();
TEST_ASSERT(test_tool_exited());
{
test_tool_run("gpiomon", "--rising-edge", "--num-events=1",
"--silent", test_chip_name(1), "4", (char *)NULL);
- test_set_event(1, 4, TEST_EVENT_RISING, 200);
+ test_set_event(1, 4, 200);
test_tool_wait();
TEST_ASSERT(test_tool_exited());
{
test_tool_run("gpiomon", "--num-events=4",
test_chip_name(1), "4", (char *)NULL);
- test_set_event(1, 4, TEST_EVENT_ALTERNATING, 100);
+ test_set_event(1, 4, 100);
test_tool_wait();
TEST_ASSERT(test_tool_exited());
{
test_tool_run("gpiomon", "--falling-edge",
test_chip_name(0), "4", (char *)NULL);
- test_set_event(0, 4, TEST_EVENT_FALLING, 100);
+ test_set_event(0, 4, 100);
usleep(200000);
test_tool_signal(SIGINT);
test_tool_wait();
{
test_tool_run("gpiomon", "--falling-edge", "--rising-edge",
test_chip_name(0), "4", (char *)NULL);
- test_set_event(0, 4, TEST_EVENT_ALTERNATING, 100);
+ test_set_event(0, 4, 100);
usleep(300000);
test_tool_signal(SIGTERM);
test_tool_wait();
{
test_tool_run("gpiomon", "--format=%o", test_chip_name(0),
"1", "2", "3", "4", "5", (char *)NULL);
- test_set_event(0, 2, TEST_EVENT_ALTERNATING, 100);
+ test_set_event(0, 2, 100);
usleep(150000);
- test_set_event(0, 3, TEST_EVENT_ALTERNATING, 100);
+ test_set_event(0, 3, 100);
usleep(150000);
- test_set_event(0, 4, TEST_EVENT_ALTERNATING, 100);
+ test_set_event(0, 4, 100);
usleep(150000);
test_tool_signal(SIGTERM);
test_tool_wait();
{
test_tool_run("gpiomon", "--format=%o", test_chip_name(0),
"5", "2", "7", "1", "6", (char *)NULL);
- test_set_event(0, 2, TEST_EVENT_ALTERNATING, 100);
+ test_set_event(0, 2, 100);
usleep(150000);
- test_set_event(0, 1, TEST_EVENT_ALTERNATING, 100);
+ test_set_event(0, 1, 100);
usleep(150000);
- test_set_event(0, 6, TEST_EVENT_ALTERNATING, 100);
+ test_set_event(0, 6, 100);
usleep(150000);
test_tool_signal(SIGTERM);
test_tool_wait();
{
test_tool_run("gpiomon", "--num-events=1", "--format=%e %o",
test_chip_name(0), "3", (char *)NULL);
- test_set_event(0, 3, TEST_EVENT_RISING, 100);
+ test_set_event(0, 3, 100);
test_tool_wait();
TEST_ASSERT(test_tool_exited());
{
test_tool_run("gpiomon", "--num-events=1", "--format=%e%o",
test_chip_name(0), "3", (char *)NULL);
- test_set_event(0, 3, TEST_EVENT_RISING, 100);
+ test_set_event(0, 3, 100);
test_tool_wait();
TEST_ASSERT(test_tool_exited());
{
test_tool_run("gpiomon", "--num-events=1", "--format=%e %o %s.%n",
test_chip_name(0), "3", (char *)NULL);
- test_set_event(0, 3, TEST_EVENT_RISING, 100);
+ test_set_event(0, 3, 100);
test_tool_wait();
TEST_ASSERT(test_tool_exited());
{
test_tool_run("gpiomon", "--num-events=1", "--format=%%",
test_chip_name(0), "3", (char *)NULL);
- test_set_event(0, 3, TEST_EVENT_RISING, 100);
+ test_set_event(0, 3, 100);
test_tool_wait();
TEST_ASSERT(test_tool_exited());
{
test_tool_run("gpiomon", "--num-events=1", "--format=%%e",
test_chip_name(0), "3", (char *)NULL);
- test_set_event(0, 3, TEST_EVENT_RISING, 100);
+ test_set_event(0, 3, 100);
test_tool_wait();
TEST_ASSERT(test_tool_exited());
{
test_tool_run("gpiomon", "--num-events=1", "--format=%",
test_chip_name(0), "3", (char *)NULL);
- test_set_event(0, 3, TEST_EVENT_RISING, 100);
+ test_set_event(0, 3, 100);
test_tool_wait();
TEST_ASSERT(test_tool_exited());
{
test_tool_run("gpiomon", "--num-events=1", "--format=foo % bar",
test_chip_name(0), "3", (char *)NULL);
- test_set_event(0, 3, TEST_EVENT_RISING, 100);
+ test_set_event(0, 3, 100);
test_tool_wait();
TEST_ASSERT(test_tool_exited());
{
test_tool_run("gpiomon", "--num-events=1", "--format=%x",
test_chip_name(0), "3", (char *)NULL);
- test_set_event(0, 3, TEST_EVENT_RISING, 100);
+ test_set_event(0, 3, 100);
test_tool_wait();
TEST_ASSERT(test_tool_exited());