diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:55:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:55:52 +0000 |
commit | f7a951d79bc895eb2171c2570add9f4899794a10 (patch) | |
tree | cc0c7147f472fecbc93add134f5c0e5c1bb72529 /testsuite/dwz.tests/twice-multifile.sh | |
parent | Initial commit. (diff) | |
download | dwz-f7a951d79bc895eb2171c2570add9f4899794a10.tar.xz dwz-f7a951d79bc895eb2171c2570add9f4899794a10.zip |
Adding upstream version 0.15.upstream/0.15upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testsuite/dwz.tests/twice-multifile.sh')
-rw-r--r-- | testsuite/dwz.tests/twice-multifile.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testsuite/dwz.tests/twice-multifile.sh b/testsuite/dwz.tests/twice-multifile.sh new file mode 100644 index 0000000..1ff0166 --- /dev/null +++ b/testsuite/dwz.tests/twice-multifile.sh @@ -0,0 +1,34 @@ +cp $execs/hello 1 +cp 1 2 + +dwz 1 2 + +smaller-than.sh 1 $execs/hello +smaller-than.sh 2 $execs/hello + +cp 1 1.saved +cp 2 2.saved + +if dwz -m 3 1 2 2>dwz.err; status=$?; then + true +fi + +if ! grep -q "DWARF compression not beneficial" dwz.err; then + cat dwz.err + exit 1 +fi + +if [ $(grep -qv "DWARF compression not beneficial" dwz.err \ + | wc -l) -gt 0 ]; then + cat dwz.err + exit 1 +fi + +if [ $status -ne 0 ]; then + cat dwz.err + exit 1 +fi + +smaller-than.sh 1 1.saved + +rm -f 1 1.saved 2 2.saved dwz.err 3 |