X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fcli%2Ftest_trimmer.in;h=03777af5f297f545718bd252aa9ceb6538b299b6;hb=3119de00eed0eeb9ddf80f93c4b8f0ba80f97a2f;hp=9303cdf76049ac00ffa9e9ea50e42a7e025cb90b;hpb=474f324652acca46d81f87f1768e4edf8afebb60;p=babeltrace.git diff --git a/tests/cli/test_trimmer.in b/tests/cli/test_trimmer.in index 9303cdf7..03777af5 100644 --- a/tests/cli/test_trimmer.in +++ b/tests/cli/test_trimmer.in @@ -33,34 +33,34 @@ ok $? "Read the trace with the trimmer enabled" 2>/dev/null >"${tmp_out}" ok $? "Running with --begin" cnt=$(wc -l < "${tmp_out}") -test "$cnt" == 18 +test $cnt == 18 ok $? "Expected number of events after trimming begin and end" "${BT_BIN}" --clock-gmt --end 17:48:17.588680018 "${TRACE_PATH}" \ 2>/dev/null >"${tmp_out}" ok $? "Running with --end" cnt=$(wc -l < "${tmp_out}") -test "$cnt" == 9 +test $cnt == 9 ok $? "Expected number of events after trimming end" "${BT_BIN}" --clock-gmt --begin 17:48:17.587029529 --end 17:48:17.588680018 \ "${TRACE_PATH}" 2>/dev/null >"${tmp_out}" ok $? "Running with --begin and --end" cnt=$(wc -l < "${tmp_out}") -test "$cnt" == 7 +test $cnt == 7 ok $? "Expected number of events after trimming begin and end" "${BT_BIN}" --clock-gmt --begin 18:48:17.587029529 "${TRACE_PATH}" \ 2>/dev/null >"${tmp_out}" ok $? "Running with --begin out of range" cnt=$(wc -l < "${tmp_out}") -test "$cnt" == 0 +test $cnt == 0 ok $? "No event output when begin is after the end of the trace" "${BT_BIN}" --clock-gmt --end 16:48:17.588680018 "${TRACE_PATH}" \ 2>/dev/null >"${tmp_out}" cnt=$(wc -l < "${tmp_out}") -test "$cnt" == 0 +test $cnt == 0 ok $? "No event output when end is before the beginning of the trace" rm "${tmp_out}"