Test: clear: local, streaming, live, tracefile rotation
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 8 Apr 2019 18:08:36 +0000 (14:08 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 10 Apr 2019 23:36:37 +0000 (19:36 -0400)
commitd8b7ee901bab38f2c8c080b418100111a0ef247f
tree616eb2c4e6569a545798476839ba4f293a451883
parent05f1df32a7453452765b0a46fb723047815ba2ef
Test: clear: local, streaming, live, tracefile rotation

This is the base testsuite for the lttng clear command.

The following scenarios are validated:

    local
    local with tracefilei rotation
    streaming
    streaming with tracefile rotation
    live with viewer attach while clear is issued
    live with viewer attach after clear is issued
    live with viewer attach while clear is issued and tracefile rotation active

These tests are performed for kernel and userspace domain.

When testing in userspace the following scenarios are also tested:
     Per pid and clear: this should fail. It is not supported yet.
     relayd disallow clear: clear must fail when relayd does not allow it

For the test using a viewer a testpoint was added to lttng-relayd live
protocol to give a synchronization point between babeltrace and the test
script.

The common_test script is a bit convoluted due to the reuse of the same
script for both ust and kernel testing. The alternative is to have
almost the same code (90%) in two separate files.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
src/bin/lttng-relayd/live.c
src/bin/lttng-relayd/testpoint.h
tests/regression/tools/clear/Makefile.am
tests/regression/tools/clear/common_test [new file with mode: 0755]
tests/regression/tools/clear/relayd_state_testpoint.c [new file with mode: 0644]
tests/regression/tools/clear/test_kernel
tests/regression/tools/clear/test_ust
tests/regression/tools/crash/test_crash
tests/regression/tools/notification/test_notification_multi_app
tests/utils/utils.sh
This page took 0.027317 seconds and 5 git commands to generate.