drm/rockchip: Don't change hdmi reference clock rate
[drm/drm-misc.git] / tools / perf / tests / shell / common / check_all_lines_matched.pl
blobfded48959a3f5e538ed6a9927cf358a2ff597aeb
1 #!/usr/bin/perl
2 # SPDX-License-Identifier: GPL-2.0
4 @regexps = @ARGV;
6 $max_printed_lines = 20;
7 $max_printed_lines = $ENV{TESTLOG_ERR_MSG_MAX_LINES} if (defined $ENV{TESTLOG_ERR_MSG_MAX_LINES});
9 $quiet = 1;
10 $quiet = 0 if (defined $ENV{TESTLOG_VERBOSITY} && $ENV{TESTLOG_VERBOSITY} ge 2);
12 $passed = 1;
13 $lines_printed = 0;
15 while (<STDIN>)
17 s/\n//;
19 $line_matched = 0;
20 for $r (@regexps)
22 if (/$r/)
24 $line_matched = 1;
25 last;
29 unless ($line_matched)
31 if ($lines_printed++ < $max_printed_lines)
33 print "Line did not match any pattern: \"$_\"\n" unless $quiet;
35 $passed = 0;
39 exit ($passed == 0);