Details
- Reviewers
morehouse kcc vitalybuka - Commits
- rG46b0df649ff2: [libFuzzer] [NFC] Generalize DSO tests to work even when files are moved.
rGfe44eb4cf10e: [libFuzzer] [NFC] Generalize DSO tests to work even when files are moved.
rCRT334766: [libFuzzer] [NFC] Generalize DSO tests to work even when files are moved.
rL334766: [libFuzzer] [NFC] Generalize DSO tests to work even when files are moved.
rL333243: [libFuzzer] [NFC] Generalize DSO tests to work even when files are moved.
rCRT333243: [libFuzzer] [NFC] Generalize DSO tests to work even when files are moved.
Diff Detail
- Repository
- rL LLVM
Event Timeline
Reverted in r333257
I'm glad the bot went back to green, but I'm super confused: how can one .test file affect another? If it does, there's another problem here.
Only these were red.
******************** Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 25.10s ******************** Failing Tests (2): LLVMFuzzer :: dso.test LLVMFuzzer :: dump_coverage.test
@vitalybuka thanks, I can now reproduce on my Linux machine as well. Looking into this.
@vitalybuka Turns out the simple trick I was using for Darwin did not work for the Linux linker, and more invasive changes were required.
What do you think? I don't see a way to do this without introducing extra substitutions, even though they are ugly.
I don't really mind the ugliness in testing configuration scripts here.
From patch title I don't understand what are you trying to solve.
Why do we need to move files?
Why do we need to move files?
For testing on devices.
If you look at other tests in compiler-rt, they all use a similar combination of expansions to get dynamic libraries on devices working.
Here the problem was that since there were TWO dynamic libraries, the usual flags did not work.
(On Linux, linking in libblah.so requires a flag -lblah, so appending a postfix after both libblah.so and after libblah does not work, since liblah.so1 != libblah1.so)
@vitalybuka What do you think? I guess a more generalized framework could be developed to reduce code duplication, but I'm really not sure whether it's worth it.
I see.
Maybe we can create a patch with replacements like "%xdynamiclib_filename" -> "%xdynamiclib_filename1"
Then we will just wrap lit.common.cfg changes into the loop (1...2 for now :-) )?
test/fuzzer/dso.test | ||
---|---|---|
2 ↗ | (On Diff #151294) | can you use 1 and 2 to make it look nicer? |
test/fuzzer/dso.test | ||
---|---|---|
2 ↗ | (On Diff #151294) | OK |