File: addrxlat-invalid

package info (click to toggle)
libkdumpfile 0.5.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,800 kB
  • sloc: ansic: 34,639; sh: 3,853; python: 1,490; makefile: 755
file content (23 lines) | stat: -rw-r--r-- 491 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Main loop for checking invalid VTOP translations
#

totalrc=0
for input in $list; do
    echo -n "Checking $input... "
    output=$( ./addrxlat -p -f $pf -r MACHPHYSADDR:0 $ptes $input 2>&1 )
    rc=$?
    if [ $rc -gt 1 ]; then
        echo ERROR
        echo "Cannot translate $input: $output" >&2
        exit $rc
    elif [ $rc -ne 1 ]; then
        echo FAILED
	echo "Expected error for $input, got $output" >&2
        totalrc=1
    else
        echo OK
    fi
done

exit $totalrc