repo.or.cz
/
drm
/
drm-misc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git]
/
tools
/
perf
/
tests
/
shell
/
common
/
check_no_patterns_found.pl
blob
770999e87a5fe7cb64f0d0a66b543aafed544803
1
#!/usr/bin/perl
2
# SPDX-License-Identifier: GPL-2.0
3
4
@regexps
=
@ARGV
;
5
6
$quiet
=
1
;
7
$quiet
=
0
if
(
defined
$ENV
{
TESTLOG_VERBOSITY
} &&
$ENV
{
TESTLOG_VERBOSITY
}
ge
2
);
8
9
%found
= ();
10
$passed
=
1
;
11
12
while
(<
STDIN
>)
13
{
14
s/\n//
;
15
16
for
$r
(
@regexps
)
17
{
18
if
(
/$r/
)
19
{
20
$found
{
$r
} =
1
;
21
}
22
}
23
}
24
25
for
$r
(
@regexps
)
26
{
27
if
(
exists
$found
{
$r
})
28
{
29
print
"Regexp found:
\"
$r
\"\n
"
unless
$quiet
;
30
$passed
=
0
;
31
}
32
}
33
34
exit
(
$passed
==
0
);