drm/rockchip: Don't change hdmi reference clock rate
[drm/drm-misc.git] / tools / perf / tests / shell / common / check_all_patterns_found.pl
blob11bdf1d3460a3bdd0a202ed9ff27c38c211db595
1 #!/usr/bin/perl
2 # SPDX-License-Identifier: GPL-2.0
4 @regexps = @ARGV;
6 $quiet = 1;
7 $quiet = 0 if (defined $ENV{TESTLOG_VERBOSITY} && $ENV{TESTLOG_VERBOSITY} ge 2);
9 %found = ();
10 $passed = 1;
12 while (<STDIN>)
14 s/\n//;
16 for $r (@regexps)
18 if (/$r/)
20 $found{$r} = 1; # FIXME: maybe add counters -- how many times was the regexp matched
25 for $r (@regexps)
27 unless (exists $found{$r})
29 print "Regexp not found: \"$r\"\n" unless $quiet;
30 $passed = 0;
34 exit ($passed == 0);