ia64/xen-unstable

view tools/check/chk @ 13672:d14da87feed6

[IA64] New resend_irq_on_evtchn() params

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author awilliam@xenbuild2.aw
date Sun Jan 28 16:33:18 2007 -0700 (2007-01-28)
parents cbc181eb54fa
children 6ba04ec03dec
line source
1 #!/bin/sh
3 func_usage ()
4 {
5 echo "Usage:"
6 echo " $0 [build|install|clean]"
7 echo
8 echo "Check suitability for Xen build or install."
9 echo "Exit with 0 if OK, 1 if not."
10 echo "Prints only failed tests."
11 echo
12 echo "Calling with 'clean' removes generated files."
13 exit 1
14 }
16 PATH=${PATH}:/sbin:/usr/sbin
17 OS=`uname -s`
18 export PATH OS
20 if test "${OS}" = "SunOS"; then
21 exit 0
22 fi
24 case $1 in
25 build)
26 check="CHECK-BUILD"
27 ;;
28 install)
29 check="CHECK-INSTALL"
30 ;;
31 clean)
32 exit 0
33 ;;
34 *)
35 func_usage
36 ;;
37 esac
39 failed=0
41 echo "Xen ${check} " $(date)
42 for f in check_* ; do
43 case $f in
44 *~)
45 continue
46 ;;
47 *)
48 ;;
49 esac
50 if ! [ -x $f ] ; then
51 continue
52 fi
53 if ! grep -q ${check} $f ; then
54 continue
55 fi
56 echo -n "Checking $f: "
57 if ./$f 2>&1 ; then
58 echo OK
59 else
60 failed=1
61 fi
62 done
64 exit ${failed}