X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Fplugins%2Fsrc.ctf.fs%2Fsucceed%2Ftest_succeed;h=16fac9abd5b5ccf579110395a5c23608286eff31;hp=63ba2499b39197fe921793334110e57742be1f08;hb=524e73a1580c5c4dac9359177ba6da2577424642;hpb=ce75de140f82187fdaabd19e74a90baa797b8980 diff --git a/tests/plugins/src.ctf.fs/succeed/test_succeed b/tests/plugins/src.ctf.fs/succeed/test_succeed index 63ba2499..16fac9ab 100755 --- a/tests/plugins/src.ctf.fs/succeed/test_succeed +++ b/tests/plugins/src.ctf.fs/succeed/test_succeed @@ -1,20 +1,9 @@ #!/bin/bash # -# Copyright (C) 2019 Philippe Proulx -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; only version 2 -# of the License. +# SPDX-License-Identifier: GPL-2.0-only # -# 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. +# Copyright (C) 2019 Philippe Proulx # -# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # This test validates that a `src.ctf.fs` component successfully reads # specific CTF traces and creates the expected messages. @@ -66,9 +55,13 @@ test_packet_end() { local ret_stderr local details_comp=("-c" "sink.text.details") local details_args=("-p" "with-trace-name=no,with-stream-name=no,with-metadata=no,compact=yes") - local temp_stdout_output_file="$(mktemp -t actual_stdout.XXXXXX)" - local temp_greped_stdout_output_file="$(mktemp -t greped_stdout.XXXXXX)" - local temp_stderr_output_file="$(mktemp -t actual_stderr.XXXXXX)" + local temp_stdout_output_file + local temp_greped_stdout_output_file + local temp_stderr_output_file + + temp_stdout_output_file="$(mktemp -t actual_stdout.XXXXXX)" + temp_greped_stdout_output_file="$(mktemp -t greped_stdout.XXXXXX)" + temp_stderr_output_file="$(mktemp -t actual_stderr.XXXXXX)" bt_cli "$temp_stdout_output_file" "$temp_stderr_output_file" \ "$succeed_trace_dir/$name" "${details_comp[@]}" \ @@ -100,8 +93,11 @@ test_force_origin_unix_epoch() { local src_ctf_fs_args=("-p" "force-clock-class-origin-unix-epoch=true") local details_comp=("-c" "sink.text.details") local details_args=("-p" "with-trace-name=no,with-stream-name=no,with-metadata=yes,compact=yes") - local temp_stdout_output_file="$(mktemp -t actual_stdout.XXXXXX)" - local temp_stderr_output_file="$(mktemp -t actual_stderr.XXXXXX)" + local temp_stdout_output_file + local temp_stderr_output_file + + temp_stdout_output_file="$(mktemp -t actual_stdout.XXXXXX)" + temp_stderr_output_file="$(mktemp -t actual_stderr.XXXXXX)" bt_cli "$temp_stdout_output_file" "$temp_stderr_output_file" \ "$succeed_trace_dir/$name1" "${src_ctf_fs_args[@]}" \ @@ -129,7 +125,7 @@ test_force_origin_unix_epoch() { rm -f "$temp_stdout_output_file" "$temp_stderr_output_file" } -plan_tests 10 +plan_tests 13 test_force_origin_unix_epoch 2packets barectf-event-before-packet test_ctf_gen_single simple @@ -138,5 +134,8 @@ test_ctf_single 2packets test_ctf_single barectf-event-before-packet test_ctf_single session-rotation test_ctf_single lttng-tracefile-rotation +test_ctf_single array-align-elem +test_ctf_single struct-array-align-elem +test_ctf_single meta-ctx-sequence test_packet_end lttng-event-after-packet test_packet_end lttng-crash