Lines Matching +full:data +full:- +full:lines
2 # SPDX-License-Identifier: GPL-2.0
40 $expect =~ s/^.*?>>//; # '?' is non-greedy, minimal match
54 if ($got =~ /^[+-]*[0-9]+/) {
55 $got =~ s/^[+-]*[0-9]+//;
60 if ($got =~ /^(0x)*[0-9a-f]+/) {
61 $got =~ s/^(0x)*[0-9a-f]+//;
98 -h print program usage
99 --help print program usage
100 --hide-expect suppress output of EXPECTed lines
101 --line-num report line number of CONSOLE_LOG
102 --no-expect-stats do not report EXPECT statistics
103 --no-strip-ts do not strip leading console timestamps
104 --verbose do not suppress EXPECT begin and end lines
105 --version print program version and exit
122 If 'EXPECT \\' (begin) and 'EXPECT /' (end) lines do not contain
125 If EXPECT lines are nested, 'EXPECT /' (end) lines must be in the
126 reverse order of the corresponding 'EXPECT \\' (begin) lines.
128 'EXPECT \\ : text' (begin) and 'EXPECT / : text' (end) lines can
131 <<int>> matches: [+-]*[0-9]+
132 <<hex>> matches: (0x)*[0-9a-f]+
134 'EXPECT \\' (begin) and 'EXPECT /' (end) lines are suppressed.
142 '-> ' Line reports start or end of the unittests
146 ' ' Lines that are not otherwise prefixed
152 --line-num causes the CONSOLE_LOG line number to be printed in 4 columns.
153 If CONSOLE_LOG contains more than 9999 lines then more columns will be
154 used to report the line number for lines greater than 9999 (eg for
155 lines 10000 - 99999, 5 columns will be used).
167 "hide-expect" => \$hide_expect,
168 "line-num" => \$print_line_num,
169 "no-expect-stats" => \$no_expect_stats,
170 "no-strip-ts" => \$no_strip_ts,
177 print STDERR "For help, type '$script_name --help'\n";
193 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
202 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
212 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
219 # once for all input - it is not an expected use case to generate one
240 $pr_fmt = "### dt-test ### ";
260 if ($timestamp =~ /^\[\s*[0-9]+\.[0-9]*\] /) {
269 $line =~ s/^\[\s*[0-9]+\.[0-9]*\] //;
272 # ----- find EXPECT begin
275 $data = $line;
276 $data =~ s/^\s*$exp_begin//;
277 push @begin, $data;
290 # ----- find EXPECT end
293 $data = $line;
294 $data =~ s/^\s*$exp_end//;
307 if (compare($data, $begin)) {
320 print " end ---> $line\n";
329 printf "** %s%s$script_name WARNING - not found ---> %s\n",
330 $line_num, $timestamp, $data;
332 } elsif (! compare($data, $begin)) {
336 print " begin -> $begin\n";
337 print " end ---> $line\n";
349 # ----- not an EXPECT line
351 if (($line =~ /^${pr_fmt}start of unittest - you will see error messages$/) ||
352 ($line =~ /^${pr_fmt}end of unittest - [0-9]+ passed, [0-9]+ failed$/ ) ) {
353 $prefix = "->"; # 2 characters
406 print " begin ---> $begin\n";