Hi Aleksei, On Fri, Nov 17, 2023 at 10:35:41PM +0000, vvv...@google.com wrote: > Test dwfl-report-offline-memory against an archive that contains > non-relocatable ELFs with the same name and contents.
Nice testcase. Do note that you also have to add the new test file to EXTRA_DIST so it actually gets into the dist. * tests/test-ar-duplicates.a.bz2: New test file. * tests/run-dwfl-report-offline-memory.sh: Test new test-ar-duplicates.a.bz2. * tests/Makefile.am (EXTRA_DIST): Add test-ar-duplicates.a.bz2. diff --git a/tests/Makefile.am b/tests/Makefile.am index 7fb8efb1..80f6cb59 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -632,7 +632,8 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh run-ar.sh \ run-nvidia-extended-linemap-libdw.sh run-nvidia-extended-linemap-readelf.sh \ testfile_nvidia_linemap.bz2 \ testfile-largealign.o.bz2 run-strip-largealign.sh \ - run-funcretval++11.sh + run-funcretval++11.sh \ + test-ar-duplicates.a.bz2 make distcheck catches these things by creating a dist and doing a build and run various tests and make check. Cheers, Mark