Improve tests and change tests/ directory layout Add run-report.py and test_list.py files which are an extended test framework providing memory and CPU sampling of the session daemon during the tests. Tests are now divided on a per package basis. The kernel/ directory contains integration tests for lttng-modules (kernel tracer). ust/ directory contains tests for lttng-ust and tools/ directory has the unit tests of lttng-tools itself which does not test tracer integration. First patch aimed at improving test coverage of the lttng 2.0 toolchain and provide the python framework for more detailled analysis. Use make check to run them all or use run-report.py and select which tests to run in test_list.py. Signed-off-by: David Goulet <dgoulet@efficios.com>
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>
Add two basic tests for UST global domain They test basic functionnality of UST meaning creating channel/session/event, enabling/disabling, start/stop and destroy the session. Those two tests *does not* use UST instrumented application. They only test support and communication between lttng cli and session daemon. Integrated with "make check" Signed-off-by: David Goulet <dgoulet@efficios.com>