blob: 1ff01667484da757fc074bdc4c4e06b8a8f4cfdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
|