diff options
Diffstat (limited to '')
-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 |