X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fplugins%2Fflt.utils.trimmer%2Ftest_trimming;h=cf83a7809996de2e5f1a7b784925f446a43820e0;hb=065509d3bd9342344f5c163705c64cbfbbd39af5;hp=5f84bf1b7fa38dead45223d167c25a636dda2dea;hpb=58db335ee64dfdedc0e351fd8e1524e7ca381896;p=babeltrace.git diff --git a/tests/plugins/flt.utils.trimmer/test_trimming b/tests/plugins/flt.utils.trimmer/test_trimming index 5f84bf1b..cf83a780 100755 --- a/tests/plugins/flt.utils.trimmer/test_trimming +++ b/tests/plugins/flt.utils.trimmer/test_trimming @@ -40,19 +40,26 @@ function run_test { local begin_time="$1" local end_time="$2" + # with_stream_msgs_cs is set to "true" or "false" by the tests. local local_args=( + "--plugin-path" "$data_dir" "-c" "src.test-trimmer.TheSourceOfAllEvil" "-p" "with-stream-msgs-cs=$with_stream_msgs_cs" "-c" "sink.text.details" "--params=compact=true,with-metadata=false" - "--plugin-path=$data_dir" ) + if [ "$with_stream_msgs_cs" = "true" ]; then + test_name="with stream message clock snapshots" + else + test_name="without stream message clock snapshots" + fi + if [ -n "$begin_time" ]; then local_args+=("--begin=$begin_time") - test_name="with --begin=$begin_time" + test_name="$test_name, with --begin=$begin_time" else - test_name="without --begin" + test_name="$test_name, without --begin" fi if [ -n "$end_time" ]; then @@ -62,8 +69,6 @@ function run_test test_name="$test_name, without --end" fi - # with_stream_msgs_cs is set to "true" or "false" by the tests. - bt_diff_cli "$temp_stdout_expected" "$temp_stderr_expected" "${local_args[@]}" ok $? "$test_name" }