2>/dev/null >"${tmp_out}"
ok $? "Running with --begin"
cnt=$(wc -l < "${tmp_out}")
2>/dev/null >"${tmp_out}"
ok $? "Running with --begin"
cnt=$(wc -l < "${tmp_out}")
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}")
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}")
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}")
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}")
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}")
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}")
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}")
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}")