Add UST test for n events using validation
authorDavid Goulet <dgoulet@efficios.com>
Mon, 16 Jan 2012 22:25:49 +0000 (17:25 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 16 Jan 2012 22:25:49 +0000 (17:25 -0500)
commitd3e8f6bb8554af02b881990fbb5445ac6a4f4d98
treeb1c524e98b9b467a931bb21f7a70ba97c57cf15b
parent8dd3235128d2f304a4058741adb49ca043c2c39b
Add UST test for n events using validation

ust-nevents tests an instrumented application generating 100 events and
validating that those events are found using babeltrace (need to be
installed).

Adds the tests/utils.sh which is a family of function used to interact
with lttng cli. There is also a trace_matches function which uses
babeltrace to find string patterns.

Also, the session daemon is spawned at the beginning of runall.sh and
killed at the end. This means that all tests are done on a single
session daemon instance. Thus, session name across tests have to be
unique! From now on, each test should use the file name as a unique
identifier for the session name.

Finally, fixed the session name for all tests. At this commit, "make
check" or "sudo make check" should pass.

Signed-off-by: David Goulet <dgoulet@efficios.com>
17 files changed:
.gitignore
configure.ac
tests/Makefile.am
tests/lttng/kernel_all_events_basic.c
tests/lttng/kernel_event_basic.c
tests/lttng/run-kernel-tests.sh
tests/lttng/run-ust-global-tests.sh
tests/lttng/ust_global_all_events_basic.c
tests/lttng/ust_global_event_basic.c
tests/runall.sh
tests/test_ust_data_trace.c [new file with mode: 0644]
tests/ust-nevents/Makefile.am [new file with mode: 0644]
tests/ust-nevents/gen-nevents.c [new file with mode: 0644]
tests/ust-nevents/run [new file with mode: 0755]
tests/ust-nevents/tp.c [new file with mode: 0644]
tests/ust-nevents/ust_gen_nevents.h [new file with mode: 0644]
tests/utils.sh [new file with mode: 0644]
This page took 0.03337 seconds and 4 git commands to generate.