File: checkresult

package info (click to toggle)
linuxcnc 1%3A2.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 285,604 kB
  • sloc: python: 202,568; ansic: 109,036; cpp: 99,239; tcl: 16,054; xml: 10,631; sh: 10,303; makefile: 1,255; javascript: 138; sql: 72; asm: 15
file content (22 lines) | stat: -rwxr-xr-x 534 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
#!/bin/sh

STDERR=$(dirname $1)/stderr
if [ ! -f $STDERR ]; then
    echo "stderr file not found!"
    exit 1
fi

# Linux spelling of ERANGE
if egrep -q 'rtapi_app_main_fails.* Numerical result out of range' $STDERR; then
    echo "loadrt found the test component, and it failed to load"
    exit 0
fi

# FreeBSD spelling of ERANGE
if egrep -q 'rtapi_app_main_fails.* Result too large' $STDERR; then
    echo "loadrt found the test component, and it failed to load"
    exit 0
fi

echo "loadrt did not find the test component"
exit 1