X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Fbin%2Ftest_intersection.in;fp=tests%2Fbin%2Ftest_intersection.in;h=0000000000000000000000000000000000000000;hp=82eac235c630aa73951dabfa23c200bf7fee1420;hb=5df9e303fa9d81b3a6d989612c7a98039ec76fd1;hpb=40af9f9fb5d827c8c58e32efd6fca204da1194c8 diff --git a/tests/bin/test_intersection.in b/tests/bin/test_intersection.in deleted file mode 100644 index 82eac235..00000000 --- a/tests/bin/test_intersection.in +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash -# -# Copyright (C) - 2015 Julien Desfossez -# -# 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. -# -# 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. -# -# 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. - -CURDIR=$(dirname $0) -TESTDIR=$CURDIR/.. - -BABELTRACE_BIN=$CURDIR/../../converter/babeltrace -CTF_TRACES=@abs_top_srcdir@/tests/ctf-traces - -source $TESTDIR/utils/tap/tap.sh - -NUM_TESTS=10 - -plan_tests $NUM_TESTS - -test_intersect() { - trace=$1 - totalevents=$2 - intersect=$3 - - test $($BABELTRACE_BIN $trace | wc -l) = $totalevents - ok $? "$totalevents events in the whole trace" - test $($BABELTRACE_BIN --stream-intersection $trace 2>/dev/null| wc -l) = $intersect - ok $? "$intersect events in packets intersecting" -} - -diag "Test the stream intersection feature" - -diag "2 streams offsetted with 3 packets intersecting" -test_intersect ${CTF_TRACES}/intersection/3eventsintersect 8 3 - -diag "2 streams offsetted with 3 packets intersecting (exchanged file names)" -test_intersect ${CTF_TRACES}/intersection/3eventsintersectreverse 8 3 - -diag "No intersection between 2 streams" -test_intersect ${CTF_TRACES}/intersection/nointersect 6 0 - -diag "Only 1 stream" -test_intersect ${CTF_TRACES}/intersection/onestream 3 3 - -diag "No stream at all" -test_intersect ${CTF_TRACES}/intersection/nostream 0 0