From 9d806fbf7a6806b79cfddba58ced01441c1bf188 Mon Sep 17 00:00:00 2001 From: Christian Babeux Date: Tue, 14 May 2013 17:53:45 -0400 Subject: [PATCH] Tests: Move the babelstats utility to tests/utils This utility will prove useful in trace validation for other tests, so put it in a common location accessible by the tests. Signed-off-by: Christian Babeux Signed-off-by: David Goulet --- tests/regression/tools/filtering/Makefile.am | 4 ++-- tests/regression/tools/filtering/test_valid_filter | 4 ++-- tests/{regression/tools/filtering => utils}/babelstats.pl | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename tests/{regression/tools/filtering => utils}/babelstats.pl (100%) diff --git a/tests/regression/tools/filtering/Makefile.am b/tests/regression/tools/filtering/Makefile.am index 5629da244..ca60dbf63 100644 --- a/tests/regression/tools/filtering/Makefile.am +++ b/tests/regression/tools/filtering/Makefile.am @@ -14,5 +14,5 @@ gen_ust_events_SOURCES = gen-ust-events.c tp.c tp.h gen_ust_events_LDADD = -llttng-ust endif -noinst_SCRIPTS = test_unsupported_op test_invalid_filter test_valid_filter babelstats.pl -EXTRA_DIST = test_unsupported_op test_invalid_filter test_valid_filter babelstats.pl +noinst_SCRIPTS = test_unsupported_op test_invalid_filter test_valid_filter +EXTRA_DIST = test_unsupported_op test_invalid_filter test_valid_filter diff --git a/tests/regression/tools/filtering/test_valid_filter b/tests/regression/tools/filtering/test_valid_filter index 7170eb57c..a62cc1ef2 100755 --- a/tests/regression/tools/filtering/test_valid_filter +++ b/tests/regression/tools/filtering/test_valid_filter @@ -21,7 +21,7 @@ CURDIR=$(dirname $0)/ TESTDIR=$CURDIR/../../.. LTTNG_BIN="lttng" BIN_NAME="gen-ust-events" -STATS_BIN="babelstats.pl" +STATS_BIN="$TESTDIR/utils/babelstats.pl" SESSION_NAME="valid_filter" EVENT_NAME="tp:tptest" NR_ITER=100 @@ -81,7 +81,7 @@ function test_valid_filter # Destroy session destroy_lttng_session $SESSION_NAME - stats=`babeltrace $trace_path | $CURDIR/$STATS_BIN --tracepoint $EVENT_NAME` + stats=`babeltrace $trace_path | $STATS_BIN --tracepoint $EVENT_NAME` rm -rf $trace_path diff --git a/tests/regression/tools/filtering/babelstats.pl b/tests/utils/babelstats.pl similarity index 100% rename from tests/regression/tools/filtering/babelstats.pl rename to tests/utils/babelstats.pl -- 2.34.1