<div dir="ltr">True, it could probably skip the filename printed at the beginning of readobj with something like this:<div><pre id="m_6275910883927179878gmail-c1" class="m_6275910883927179878gmail-stx-plain" style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);padding-top:0.5em;outline:none;font-size:medium"><span class="m_6275910883927179878gmail-stx-line" id="m_6275910883927179878gmail-c1_50" style="display:block">#REGEX1: Symbols [</span><span class="m_6275910883927179878gmail-stx-line" id="m_6275910883927179878gmail-c1_50" style="display:block">#REGEX1-NOT: foobaz
</span><span class="m_6275910883927179878gmail-stx-line" id="m_6275910883927179878gmail-c1_51" style="display:block">#REGEX1-NOT: bar
</span><span class="m_6275910883927179878gmail-stx-line" id="m_6275910883927179878gmail-c1_52" style="display:block">#REGEX1-NOT: rebar
</span></pre><div><br></div>Mind contributing a patch? :)</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 29, 2019 at 9:53 AM Csaba Raduly via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
The following tests fail because my username (csabaraduly) contains "bar" :<br>
<br>
********************<br>
FAIL: LLVM :: tools/llvm-objcopy/ELF/regex.test (47099 of 50832)<br>
******************** TEST 'LLVM :: tools/llvm-objcopy/ELF/regex.test'<br>
FAILED ********************<br>
Script:<br>
--<br>
: 'RUN: at line 1';<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/yaml2obj<br>
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-objcopy/ELF/regex.test<br>
> /home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp<br>
: 'RUN: at line 4';<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-objcopy<br>
--discard-all --regex -K 'ba'<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp2<br>
: 'RUN: at line 5';<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-readobj<br>
--symbols /home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp2<br>
| /home/csabaraduly/wk/LLVM-git/__build_release_99/bin/FileCheck<br>
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-objcopy/ELF/regex.test<br>
--check-prefix=REGEX1<br>
: 'RUN: at line 8';<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-objcopy<br>
--discard-all --regex -K 'ba.*'<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp3<br>
: 'RUN: at line 9';<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-readobj<br>
--symbols /home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp3<br>
| /home/csabaraduly/wk/LLVM-git/__build_release_99/bin/FileCheck<br>
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-objcopy/ELF/regex.test<br>
--check-prefix=REGEX2<br>
: 'RUN: at line 12';<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-objcopy<br>
--discard-all --regex -K '.*ba.*'<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp4<br>
: 'RUN: at line 13';<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-readobj<br>
--symbols /home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp4<br>
| /home/csabaraduly/wk/LLVM-git/__build_release_99/bin/FileCheck<br>
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-objcopy/ELF/regex.test<br>
--check-prefix=REGEX3<br>
: 'RUN: at line 16';<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-objcopy<br>
--discard-all --regex -K '^([a-z]+)*ba.*$'<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp5<br>
: 'RUN: at line 17'; cmp<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp4<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp5<br>
--<br>
Exit Code: 1<br>
<br>
Command Output (stderr):<br>
--<br>
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-objcopy/ELF/regex.test:51:14:<br>
error: REGEX1-NOT: excluded string found in input<br>
#REGEX1-NOT: bar<br>
^<br>
<stdin>:2:16: note: found here<br>
File: /home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp2<br>
^~~<br>
<br>
<br>
<br>
<br>
********************<br>
FAIL: LLVM :: tools/llvm-symbolizer/ignore-undefined-symbols.s (47626 of 50832)<br>
******************** TEST 'LLVM ::<br>
tools/llvm-symbolizer/ignore-undefined-symbols.s' FAILED<br>
********************<br>
Script:<br>
--<br>
: 'RUN: at line 2';<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-mc<br>
--filetype=obj --triple=x86_64-pc-linux<br>
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-symbolizer/ignore-undefined-symbols.s<br>
-o /home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-symbolizer/Output/ignore-undefined-symbols.s.tmp.o<br>
-g<br>
: 'RUN: at line 3';<br>
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-symbolizer<br>
--obj=/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-symbolizer/Output/ignore-undefined-symbols.s.tmp.o<br>
0 | /home/csabaraduly/wk/LLVM-git/__build_release_99/bin/FileCheck<br>
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-symbolizer/ignore-undefined-symbols.s<br>
--implicit-check-not=bar<br>
--<br>
Exit Code: 1<br>
<br>
Command Output (stderr):<br>
--<br>
command line:1:22: error: CHECK-NOT: excluded string found in input<br>
-implicit-check-not='bar'<br>
^<br>
<stdin>:2:10: note: found here<br>
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-symbolizer/ignore-undefined-symbols.s:12:0<br>
^~~<br>
<br>
Maybe "bar" should be replaced with something less likely to appear<br>
accidentally in a file path, e.g. rumpelstiltskin :)<br>
<br>
Csaba<br>
-- <br>
You can get very substantial performance improvements<br>
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler<br>
So if you're looking for a completely portable, 100% standards-conformat way<br>
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>