7 prog="$builddir/$name$EXEEXT"
8 log="$builddir/$name.log"
12 if [ "$2" != "$3" ]; then
13 echo "error checking $1" >&2
14 echo " expected: $2" >&2
15 echo " received: $3" >&2
22 echo "$prog -s '$1'" >>"$log"
23 val=`$prog -s "$1"` &&
24 echo "$val" >>"$log" &&
25 check_error "$1" "$2" "$val" >>"$log" 2>&1 ||
31 echo "$prog -k '$1'" >>"$log"
32 val=`$prog -k "$1"` && \
33 echo "$val" >>"$log" &&
34 check_error "$1" "$2" "$val" >>"$log" 2>&1 || \
40 check_string Undo 0xFF65
41 check_key 0x1008FF56 XF86Close
42 check_string ThisKeyShouldNotExist NoSymbol
44 check_string XF86_Switch_VT_5 0x1008FE05
45 check_key 0x1008FE20 XF86_Ungrab