tap-driver.sh: flush stdout after each test result This is useful in a CI system where stdout is fully buffered and you look at the console output to see which test is hanging. Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Add --post-script to tap-driver.sh Allow warn_process.sh to be run between each test to validate that a test does not leave ghost processes. Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Tests: Replace prove by autotools tap runner This patch removes the dependency on the prove perl script to run the TAP test suite. It replaces it with the autotools shell TAP driver that only requires a shell and awk. Custom arguments can be passed to the test runner with env variables as follow: env LOG_DRIVER_FLAGS='--comments --ignore-exit' \ TESTS='foo.test baz.test' make -e check This tap driver also creates a log file for each test that can then be used by another system to build a test report. Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Port: cleanup and portability fix to configure.ac Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Tests: Java agent: update after Java agent refactoring This patch fixes the Java agent tests which were impossible to run since the Jar files have been renamed. It also overhauls the java part of the configure script to match what's in UST and replace some hardcoded path with configurable values. The tests are now enabled when corresponding classes are found in the CLASSPATH during configure. Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Test: Add the new log4j agent This adds the log4j java agent test. It also moves the JUL test and build system to use the new UST java agent jar. Signed-off-by: David Goulet <dgoulet@efficios.com>
Add lttng-ctl SWIG python bindings The lttng-tools Python module can be used to directly control the lttng-tools API inside Python, using 'import lttng'. Therefore, it becomes possible to create a trace, add events, start/stop tracing, destroy a session and so on from within Python. SWIG >= 2.0 is used to create the wrapper and its 'warning md variable unused' bug is patched in Makefile.am. In the interface file, struct and enum are directly copied from lttng.h (all changes must be made in both files). To install with python bingings, configure using --enable-python-bindings Please note that this extra feature is added in extras/ hence not supported and not yet shipped by default with the tarball or packages. Signed-off-by: Danny Serres <danny.serres@efficios.com> Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com> Signed-off-by: David Goulet <dgoulet@efficios.com>
Add epoll check to autoconf and Makefile Adds two m4 macros to check for epoll(7) API and change the gitignore to fit thoses changes. Also change the Makefile to add COMPAT_EPOLL value in order to select the right source file at compile time. Signed-off-by: David Goulet <david.goulet@polymtl.ca>