projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move to kernel style SPDX license identifiers
[babeltrace.git]
/
tests
/
cli
/
query
/
test_query
diff --git
a/tests/cli/query/test_query
b/tests/cli/query/test_query
index 1be9fa24287218249173c7772c1f6ea6928a8a33..3227650b122b037d9bbb10445e4ef18559e7218d 100755
(executable)
--- a/
tests/cli/query/test_query
+++ b/
tests/cli/query/test_query
@@
-1,19
+1,9
@@
#!/bin/bash
#
#!/bin/bash
#
-# Copyright (C) 2019 Simon Marchi <simon.marchi@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.
+# SPDX-License-Identifier: GPL-2.0-only
#
#
-# 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.
+# Copyright (C) 2019 Simon Marchi <simon.marchi@efficios.com>
#
#
-# 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.
if [ "x${BT_TESTS_SRCDIR:-}" != "x" ]; then
UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh"
if [ "x${BT_TESTS_SRCDIR:-}" != "x" ]; then
UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh"
@@
-24,7
+14,7
@@
fi
# shellcheck source=../../utils/utils.sh
SH_TAP=1 source "$UTILSSH"
# shellcheck source=../../utils/utils.sh
SH_TAP=1 source "$UTILSSH"
-NUM_TESTS=1
1
+NUM_TESTS=1
5
plan_tests $NUM_TESTS
plan_tests $NUM_TESTS
@@
-92,6
+82,9
@@
expect_failure "ValueError: catastrophic failure" \
expect_failure 'Cannot find component class: plugin-name="query", comp-cls-name="NonExistentSource", comp-cls-type=1' \
'src.query.NonExistentSource' 'the-object' '-p' 'a=2'
expect_failure 'Cannot find component class: plugin-name="query", comp-cls-name="NonExistentSource", comp-cls-type=1' \
'src.query.NonExistentSource' 'the-object' '-p' 'a=2'
+# Wrong parameter syntax.
+expect_failure "Invalid format for --params option's argument:" \
+ 'src.query.SourceWithQueryThatPrintsParams' 'please-fail' '-p' 'a=3,'
rm -f "$stdout_expected_file"
rm -f "$stdout_file"
rm -f "$stdout_expected_file"
rm -f "$stdout_file"
This page took
0.024632 seconds
and
4
git commands to generate.