bt2: field.py: raise ValueError when setting out of range value to Integer
[babeltrace.git] / tests / Makefile.am
CommitLineData
fac21c87 1SUBDIRS = utils lib bitfield ctf-writer plugins argpar
ac65e355 2
6a284733 3# Directories added to EXTRA_DIST will be recursively copied to the distribution.
bbff0ab4 4EXTRA_DIST = $(srcdir)/data \
7bb90dd0 5 bindings/python/bt2/.coveragerc
1b83271b 6
7bb90dd0 7dist_check_SCRIPTS = \
7bb90dd0
MJ
8 bindings/python/bt2/test_clock_class.py \
9 bindings/python/bt2/test_component_class.py \
10 bindings/python/bt2/test_component.py \
11 bindings/python/bt2/test_connection.py \
12 bindings/python/bt2/test_ctf_writer_clock.py \
13 bindings/python/bt2/test_event_class.py \
14 bindings/python/bt2/test_event.py \
15 bindings/python/bt2/test_field_class.py \
16 bindings/python/bt2/test_field.py \
17 bindings/python/bt2/test_graph.py \
19bb8b5a 18 bindings/python/bt2/test_integer_range_set.py \
1e920353 19 bindings/python/bt2/test_interrupter.py \
7bb90dd0
MJ
20 bindings/python/bt2/test_message_iterator.py \
21 bindings/python/bt2/test_message.py \
6c0b3817 22 bindings/python/bt2/test_package.py \
7bb90dd0
MJ
23 bindings/python/bt2/test_packet.py \
24 bindings/python/bt2/test_plugin.py \
25 bindings/python/bt2/test_port.py \
644e0364 26 bindings/python/bt2/test_python_bt2 \
7bb90dd0
MJ
27 bindings/python/bt2/test_query_executor.py \
28 bindings/python/bt2/test_stream_class.py \
29 bindings/python/bt2/test_stream.py \
30 bindings/python/bt2/test_trace_collection_message_iterator.py \
31 bindings/python/bt2/test_trace.py \
32 bindings/python/bt2/test_value.py \
33 bindings/python/bt2/utils.py \
595cc8e0 34 cli/convert/test_auto_source_discovery_grouping \
3b9d10e2
PP
35 cli/convert/test_auto_source_discovery_params \
36 cli/convert/test_auto_source_discovery_log_level \
595cc8e0 37 cli/convert/test_convert_args \
644e0364
MJ
38 cli/test_intersection \
39 cli/test_output_ctf_metadata \
005d49d6 40 cli/test_output_path_ctf_non_lttng_trace \
644e0364
MJ
41 cli/test_packet_seq_num \
42 cli/test_trace_copy \
43 cli/test_trace_read \
44 cli/test_trimmer \
7bb90dd0 45 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
644e0364 46 python-plugin-provider/test_python_plugin_provider \
7bb90dd0 47 python-plugin-provider/test_python_plugin_provider.py
cd1c5347 48
7bb90dd0 49TESTS_BINDINGS =
9e607e7c
JG
50
51if ENABLE_PYTHON_BINDINGS
b04a139e 52TESTS_BINDINGS += bindings/python/bt2/test_python_bt2
cd1c5347
PP
53endif
54
fac21c87
PP
55TESTS_ARGPAR = \
56 argpar/test_argpar
57
cd1c5347 58TESTS_CLI = \
595cc8e0 59 cli/convert/test_convert_args \
7bb90dd0 60 cli/test_intersection \
005d49d6
SM
61 cli/test_output_path_ctf_non_lttng_trace \
62 cli/test_packet_seq_num \
cd1c5347 63 cli/test_trace_copy \
005d49d6 64 cli/test_trace_read \
cd1c5347
PP
65 cli/test_trimmer
66
67TESTS_LIB = \
21d04293 68 lib/test_bt_values \
6162e6b7 69 lib/test_bt_uuid \
21d04293 70 lib/test_graph_topo \
8c20dd54
PP
71 lib/test_trace_ir_ref \
72 lib/test_simple_sink
cd1c5347 73
906ac65f
PP
74TESTS_BITFIELD = \
75 bitfield/test_bitfield
76
331731aa
MJ
77TESTS_CTF_WRITER = \
78 ctf-writer/test_ctf_writer
79
cd1c5347 80if !ENABLE_BUILT_IN_PLUGINS
644e0364 81TESTS_LIB += lib/test_plugin
1805e0b4
PP
82endif
83
e30aed9e 84TESTS_PLUGINS = \
1fba7c7b
PP
85 plugins/src.ctf.fs/succeed/test_succeed \
86 plugins/sink.ctf.fs/succeed/test_succeed
cd1c5347
PP
87
88if !ENABLE_BUILT_IN_PLUGINS
d8992d68 89if ENABLE_PYTHON_BINDINGS
493917ba 90TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_support_info
b34bfe00
FD
91TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_trace_info
92TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_metadata_info
d3765576 93endif
684658b1
PP
94
95if ENABLE_DEBUG_INFO
d3765576
FD
96TESTS_PLUGINS += \
97 plugins/flt.lttng-utils.debug-info/test_succeed
d8992d68 98endif
cd1c5347
PP
99endif
100
101if ENABLE_DEBUG_INFO
102TESTS_PLUGINS += \
66251464
PP
103 plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \
104 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \
105 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \
106 plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \
107 plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \
108 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \
109 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \
110 plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu
cd1c5347
PP
111endif
112
188edac1
SM
113if ENABLE_PYTHON_PLUGINS
114if ENABLE_PYTHON_BINDINGS
3b9d10e2
PP
115TESTS_CLI += cli/convert/test_auto_source_discovery_grouping \
116 cli/convert/test_auto_source_discovery_log_level \
117 cli/convert/test_auto_source_discovery_params
38403bf5
FD
118TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming \
119 plugins/flt.utils.muxer/succeed/test_succeed
188edac1
SM
120endif
121endif
122
cd1c5347
PP
123TESTS_PYTHON_PLUGIN_PROVIDER =
124
9e607e7c 125if ENABLE_PYTHON_PLUGINS
cd1c5347
PP
126TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
127endif
128
644e0364
MJ
129LOG_DRIVER_FLAGS = --merge --comments
130LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
131 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
132 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
133 BT_TESTS_AWK_BIN="$(AWK)" \
134 BT_TESTS_GREP_BIN="$(GREP)" \
135 BT_TESTS_PYTHON_BIN="$(PYTHON)" \
e23e08c4 136 BT_TESTS_PYTHON_CONFIG_BIN="$(PYTHON_CONFIG)" \
644e0364 137 BT_TESTS_SED_BIN="$(SED)" \
86f2cc9e 138 $(SHELL) $(srcdir)/utils/tap-driver.sh
11d328de 139
906ac65f 140TESTS_NO_BITFIELD = \
fac21c87 141 $(TESTS_ARGPAR) \
906ac65f
PP
142 $(TESTS_BINDINGS) \
143 $(TESTS_CLI) \
144 $(TESTS_CTF_WRITER) \
145 $(TESTS_LIB) \
146 $(TESTS_PLUGINS) \
147 $(TESTS_PYTHON_PLUGIN_PROVIDER)
148
149TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
cd1c5347
PP
150
151define check_target
152check-$(1):
153 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
154endef
155
fac21c87 156$(eval $(call check_target,argpar,$(TESTS_ARGPAR)))
cd1c5347 157$(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
906ac65f 158$(eval $(call check_target,bitfield,$(TESTS_BITFIELD)))
cd1c5347 159$(eval $(call check_target,cli,$(TESTS_CLI)))
331731aa 160$(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
cd1c5347
PP
161$(eval $(call check_target,lib,$(TESTS_LIB)))
162$(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
163$(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
906ac65f
PP
164
165check-no-bitfield:
166 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check
This page took 0.070224 seconds and 4 git commands to generate.