File: testdebuglink.sh

package info (click to toggle)
dwarfutils 20210528-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,924 kB
  • sloc: ansic: 110,023; sh: 5,663; cpp: 4,809; makefile: 654; python: 639; awk: 11
file content (26 lines) | stat: -rwxr-xr-x 456 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
# Verify the printed output of of test_linkedto

top_blddir=`pwd`/..
if [ x$DWTOPSRCDIR = "x" ]
then
  top_srcdir=$top_blddir
else
  top_srcdir=$DWTOPSRCDIR
fi
srcdir=$top_srcdir/libdwarf

./test_linkedtopath >junk.ltp
which dos2unix
if [ $? -eq 0 ]
then
  dos2unix junk.ltp
fi
diff $srcdir/baseline.ltp junk.ltp
if [ $? -ne 0 ]
then
    echo "FAIL base test "
    echo "To update baseline: mv junk.ltp $srcdir/baseline.ltp"
    exit 1
fi
exit 0