*~
-/tests/cli/intersection/bt_python_helper.py
-/tests/cli/intersection/test_intersection
/tests/cli/test_convert_args
/tests/cli/test_debug_info
+/tests/cli/test_intersection
/tests/cli/test_packet_seq_num
/tests/cli/test_trace_copy
/tests/cli/test_trace_read
logging/Makefile
bindings/Makefile
tests/Makefile
- tests/cli/Makefile
- tests/cli/intersection/Makefile
tests/lib/Makefile
tests/lib/test-plugin-plugins/Makefile
- tests/lib/trace-ir/Makefile
- tests/lib/ctf-writer/Makefile
tests/utils/common.sh
tests/utils/Makefile
tests/utils/tap/Makefile
- tests/bindings/Makefile
- tests/bindings/python/Makefile
- tests/bindings/python/bt2/Makefile
tests/plugins/Makefile
- tests/plugins/ctf/Makefile
- tests/python-plugin-provider/Makefile
extras/Makefile
extras/valgrind/Makefile
plugins/Makefile
babeltrace-ctf.pc
])
-AC_CONFIG_FILES([tests/cli/intersection/test_intersection], [chmod +x tests/cli/intersection/test_intersection])
+AC_CONFIG_FILES([tests/cli/test_intersection], [chmod +x tests/cli/test_intersection])
AC_CONFIG_FILES([tests/cli/test_convert_args], [chmod +x tests/cli/test_convert_args])
AC_CONFIG_FILES([tests/cli/test_output_ctf_metadata], [chmod +x tests/cli/test_output_ctf_metadata])
AC_CONFIG_FILES([tests/cli/test_packet_seq_num], [chmod +x tests/cli/test_packet_seq_num])
-SUBDIRS = utils cli lib bindings plugins
+SUBDIRS = utils lib plugins
# Directories added to EXTRA_DIST will be recursively copied to the distribution.
EXTRA_DIST = $(srcdir)/ctf-traces \
- $(srcdir)/debug-info-data
+ $(srcdir)/debug-info-data \
+ bindings/python/bt2/.coveragerc
+
+dist_check_SCRIPTS = \
+ bindings/python/babeltrace/test_ctf_writer_empty_packet.py \
+ bindings/python/babeltrace/test_ctf_writer_no_packet_context.py \
+ bindings/python/babeltrace/test_ctf_writer.py \
+ bindings/python/bt2/test_clock_class_priority_map.py \
+ bindings/python/bt2/test_clock_class.py \
+ bindings/python/bt2/test_component_class.py \
+ bindings/python/bt2/test_component.py \
+ bindings/python/bt2/test_connection.py \
+ bindings/python/bt2/test_ctf_writer_clock.py \
+ bindings/python/bt2/test_event_class.py \
+ bindings/python/bt2/test_event.py \
+ bindings/python/bt2/test_field_class.py \
+ bindings/python/bt2/test_field.py \
+ bindings/python/bt2/test_graph.py \
+ bindings/python/bt2/test_message_iterator.py \
+ bindings/python/bt2/test_message.py \
+ bindings/python/bt2/test_packet.py \
+ bindings/python/bt2/test_plugin.py \
+ bindings/python/bt2/test_port.py \
+ bindings/python/bt2/test_query_executor.py \
+ bindings/python/bt2/test_stream_class.py \
+ bindings/python/bt2/test_stream.py \
+ bindings/python/bt2/test_trace_collection_message_iterator.py \
+ bindings/python/bt2/test_trace.py \
+ bindings/python/bt2/test_value.py \
+ bindings/python/bt2/utils.py \
+ python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
+ python-plugin-provider/test_python_plugin_provider.py
TESTS_BINDINGS =
-if ENABLE_PYTHON_PLUGINS
-SUBDIRS += python-plugin-provider
-endif
-
if ENABLE_PYTHON_BINDINGS
TESTS_BINDINGS += bindings/python/bt2/test_python_bt2 \
bindings/python/babeltrace/test_python_babeltrace
cli/test_trace_read \
cli/test_packet_seq_num \
cli/test_convert_args \
- cli/intersection/test_intersection \
+ cli/test_intersection \
cli/test_trace_copy \
cli/test_trimmer
+++ /dev/null
-if ENABLE_PYTHON_BINDINGS
-SUBDIRS = python
-endif
+++ /dev/null
-SUBDIRS = bt2
+++ /dev/null
-EXTRA_DIST = \
- test_clock_class_priority_map.py \
- test_clock_class.py \
- test_component.py \
- test_component_class.py \
- test_connection.py \
- test_ctf_writer_clock.py \
- test_event.py \
- test_event_class.py \
- test_field_class.py \
- test_field.py \
- test_graph.py \
- test_message.py \
- test_message_iterator.py \
- test_packet.py \
- test_plugin.py \
- test_port.py \
- test_query_executor.py \
- test_stream.py \
- test_stream_class.py \
- test_trace.py \
- test_trace_collection_message_iterator.py \
- test_value.py \
- utils.py \
- .coveragerc
+++ /dev/null
-SUBDIRS = intersection
-check_SCRIPTS = test_trace_read test_packet_seq_num test_convert_args test_trace_copy
+++ /dev/null
-check_SCRIPTS = test_intersection
-
-all-local:
- @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
- for script in $(EXTRA_DIST); do \
- cp -f $(srcdir)/$$script $(builddir); \
- done; \
- fi
-
-clean-local:
- @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
- for script in $(EXTRA_DIST); do \
- rm -f $(builddir)/$$script; \
- done; \
- fi
+++ /dev/null
-#!/bin/bash
-#
-# Copyright (C) - 2015 Julien Desfossez <jdesfossez@efficios.com>
-#
-# This program is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License, version 2 only, as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
-# more details.
-#
-# You should have received a copy of the GNU General Public License along with
-# this program; if not, write to the Free Software Foundation, Inc., 51
-# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-. "@abs_top_builddir@/tests/utils/common.sh"
-
-NUM_TESTS=10
-
-plan_tests $NUM_TESTS
-
-test_intersect() {
- trace="$1"
- totalevents="$2"
- intersect="$3"
-
- test $("${BT_BIN}" "$trace" | wc -l) = "$totalevents"
- ok $? "$totalevents events in the whole trace"
- test $("${BT_BIN}" --stream-intersection "$trace" 2>/dev/null| wc -l) = "$intersect"
- ok $? "$intersect events in packets intersecting"
-}
-
-diag "Test the stream intersection feature"
-
-diag "2 streams offsetted with 3 packets intersecting"
-test_intersect "${BT_CTF_TRACES}/intersection/3eventsintersect" 8 3
-
-diag "2 streams offsetted with 3 packets intersecting (exchanged file names)"
-test_intersect "${BT_CTF_TRACES}/intersection/3eventsintersectreverse" 8 3
-
-diag "No intersection between 2 streams"
-test_intersect "${BT_CTF_TRACES}/intersection/nointersect" 6 0
-
-diag "Only 1 stream"
-test_intersect "${BT_CTF_TRACES}/intersection/onestream" 3 3
-
-diag "No stream at all"
-test_intersect "${BT_CTF_TRACES}/intersection/nostream" 0 0
--- /dev/null
+#!/bin/bash
+#
+# Copyright (C) - 2015 Julien Desfossez <jdesfossez@efficios.com>
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License, version 2 only, as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 51
+# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+. "@abs_top_builddir@/tests/utils/common.sh"
+
+NUM_TESTS=10
+
+plan_tests $NUM_TESTS
+
+test_intersect() {
+ trace="$1"
+ totalevents="$2"
+ intersect="$3"
+
+ test $("${BT_BIN}" "$trace" | wc -l) = "$totalevents"
+ ok $? "$totalevents events in the whole trace"
+ test $("${BT_BIN}" --stream-intersection "$trace" 2>/dev/null| wc -l) = "$intersect"
+ ok $? "$intersect events in packets intersecting"
+}
+
+diag "Test the stream intersection feature"
+
+diag "2 streams offsetted with 3 packets intersecting"
+test_intersect "${BT_CTF_TRACES}/intersection/3eventsintersect" 8 3
+
+diag "2 streams offsetted with 3 packets intersecting (exchanged file names)"
+test_intersect "${BT_CTF_TRACES}/intersection/3eventsintersectreverse" 8 3
+
+diag "No intersection between 2 streams"
+test_intersect "${BT_CTF_TRACES}/intersection/nointersect" 6 0
+
+diag "Only 1 stream"
+test_intersect "${BT_CTF_TRACES}/intersection/onestream" 3 3
+
+diag "No stream at all"
+test_intersect "${BT_CTF_TRACES}/intersection/nostream" 0 0
-SUBDIRS = trace-ir ctf-writer
+SUBDIRS =
AM_CPPFLAGS += -I$(top_srcdir)/tests/utils
LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
+dist_check_SCRIPTS = ctf-writer/test_auto_populate.py
+
libtestcommon_la_SOURCES = common.c common.h
noinst_LTLIBRARIES = libtestcommon.la
test_trace_ir_ref_SOURCES = test_trace_ir_ref.c
test_graph_topo_SOURCES = test_graph_topo.c
-check_SCRIPTS = test_ctf_writer_complete
-
if !ENABLE_BUILT_IN_PLUGINS
noinst_PROGRAMS += test_plugin
test_plugin_LDADD = $(COMMON_TEST_LDADD)
test_plugin_SOURCES = test_plugin.c
-check_SCRIPTS += test_plugin_complete
SUBDIRS += test-plugin-plugins
endif
+++ /dev/null
-if ENABLE_PYTHON_BINDINGS
-check_SCRIPTS = test_ctf_writer
-endif
-
-EXTRA_DIST = test_auto_populate.py
+++ /dev/null
-if ENABLE_PYTHON_BINDINGS
-check_SCRIPTS = test_trace_ir
-endif
-SUBDIRS = ctf
-
AM_CPPFLAGS += -I$(top_srcdir)/tests/utils -I$(top_srcdir)/plugins
LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la
-check_SCRIPTS =
+dist_check_SCRIPTS = \
+ test_lttng_utils_debug_info.py\
+ ctf/test_query_trace_info.py
+
noinst_PROGRAMS =
if !ENABLE_BUILT_IN_PLUGINS
endif # !ENABLE_BUILT_IN_PLUGINS
if ENABLE_DEBUG_INFO
+noinst_PROGRAMS += test_dwarf test_bin_info
+
test_dwarf_LDADD = \
$(top_builddir)/plugins/lttng-utils/debug-info/libdebug-info.la \
$(top_builddir)/fd-cache/libbabeltrace-fd-cache.la \
$(ELFUTILS_LIBS) \
$(LIBTAP)
test_bin_info_SOURCES = test_bin_info.c
-
-noinst_PROGRAMS += test_dwarf test_bin_info
-
-if !ENABLE_BUILT_IN_PLUGINS
-if ENABLE_PYTHON_BINDINGS
-check_SCRIPTS += test_lttng_utils_debug_info
-endif # !ENABLE_BUILT_IN_PLUGINS
-endif # ENABLE_PYTHON_BINDINGS
endif # ENABLE_DEBUG_INFO
-
-EXTRA_DIST = test_lttng_utils_debug_info.py
+++ /dev/null
-dist_check_SCRIPTS = test_query_trace_info.py
+++ /dev/null
-check_SCRIPTS = test_python_plugin_provider
-EXTRA_DIST = \
- test_python_plugin_provider.py \
- bt_plugin_test_python_plugin_provider.py
SUBDIRS = tap
-EXTRA_DIST = python/testrunner.py \
- python/tap/adapter.py \
- python/tap/directive.py \
- python/tap/formatter.py \
- python/tap/i18n.py \
- python/tap/__init__.py \
- python/tap/LICENSE \
- python/tap/line.py \
- python/tap/loader.py \
- python/tap/main.py \
- python/tap/parser.py \
- python/tap/rules.py \
- python/tap/runner.py \
- python/tap/tracker.py
+# Directories added to EXTRA_DIST will be recursively copied to the distribution.
+EXTRA_DIST = python
noinst_LTLIBRARIES = libtap.la
libtap_la_SOURCES = tap.c tap.h
-SCRIPT_LIST = tap.sh
-
-dist_noinst_SCRIPTS = $(SCRIPT_LIST)
-
-all-local:
- @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
- for script in $(SCRIPT_LIST); do \
- cp -f $(srcdir)/$$script $(builddir); \
- done; \
- fi
-
-clean-local:
- @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
- for script in $(SCRIPT_LIST); do \
- rm -f $(builddir)/$$script; \
- done; \
- fi
+dist_noinst_SCRIPTS = tap.sh