Fix: Use autoconf provided grep in test_formats
[babeltrace.git] / tests / bin / test_formats.in
CommitLineData
235d06f0
NL
1#!/bin/bash
2#
3# Copyright (C) - 2016 Nathan Lynch <nathan_lynch@mentor.com>
4#
5# This program is free software; you can redistribute it and/or modify it
6# under the terms of the GNU General Public License, version 2 only, as
7# published by the Free Software Foundation.
8#
9# This program is distributed in the hope that it will be useful, but WITHOUT
10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12# more details.
13#
14# You should have received a copy of the GNU General Public License along with
15# this program; if not, write to the Free Software Foundation, Inc., 51
16# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
18CURDIR=$(dirname $0)
19TESTDIR=$CURDIR/..
20
21BABELTRACE_BIN=$CURDIR/../../converter/babeltrace
22
23source $TESTDIR/utils/tap/tap.sh
24
25expected_formats=(text lttng-live dummy ctf-metadata ctf)
26
27plan_tests ${#expected_formats[*]}
28
29for format in "${expected_formats[@]}"; do
77baf3a0 30 "$BABELTRACE_BIN" --list | @GREP@ -qw "$format"
235d06f0
NL
31 ok $? "Detect support for format \"$format\""
32done
This page took 0.023468 seconds and 4 git commands to generate.