3 # Copyright (C) 2019 Francis Deslauriers <francis.deslauriers@efficios.com>
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; only version 2
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 # This file tests what happens when we mux messages.
23 if [ "x${BT_TESTS_SRCDIR:-}" != "x" ]; then
24 UTILSSH
="$BT_TESTS_SRCDIR/utils/utils.sh"
26 UTILSSH
="$(dirname "$0")/../../../utils/utils.sh"
29 # shellcheck source=../../utils/utils.sh
32 data_dir
="$BT_TESTS_DATADIR/plugins/flt.utils.muxer"
40 "-c" "src.test-muxer.TheSourceOfConfusion"
41 "-p" "test-name=$test_name"
42 "-c" "sink.text.details"
43 "--params=compact=false,with-metadata=false"
44 "--plugin-path=$data_dir"
47 stdout_expected
="$data_dir/succeed/$test_name.expect"
48 bt_diff_cli
"$stdout_expected" /dev
/null
"${local_args[@]}"
54 basic_timestamp_ordering
57 diff_inactivity_msg_cs
59 diff_stream_class_name
60 diff_stream_class_no_name
68 for i
in "${test_cases[@]}"