Python bindings: make intersect_mode read-only property
[babeltrace.git] / tests / bin / test_trace_read.in
CommitLineData
19badea8
CB
1#!/bin/bash
2#
3# Copyright (C) - 2013 Christian Babeux <christian.babeux@efficios.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
fcacebd5 23CTF_TRACES=@abs_top_srcdir@/tests/ctf-traces
19badea8
CB
24
25source $TESTDIR/utils/tap/tap.sh
26
27SUCCESS_TRACES=(${CTF_TRACES}/succeed/*)
28FAIL_TRACES=(${CTF_TRACES}/fail/*)
29
30NUM_TESTS=$((${#SUCCESS_TRACES[@]} + ${#FAIL_TRACES[@]}))
31
32plan_tests $NUM_TESTS
33
34for path in ${SUCCESS_TRACES[@]}; do
35 trace=$(basename ${path})
36 $BABELTRACE_BIN ${path} > /dev/null 2>&1
37 ok $? "Run babeltrace with trace ${trace}"
38done
39
40for path in ${FAIL_TRACES[@]}; do
41 trace=$(basename ${path})
42 $BABELTRACE_BIN ${path} > /dev/null 2>&1
43 if [ $? -eq 0 ]; then
44 fail "Run babeltrace with invalid trace ${trace}"
45 else
46 pass "Run babeltrace with invalid trace ${trace}"
47 fi
48done
This page took 0.025255 seconds and 4 git commands to generate.