ia64/xen-unstable

view tools/check/chk @ 19648:f0e2df69a8eb

x86 hvm: Allow cross-vendor migration

Intercept #UD and emulate SYSCALL/SYSENTER/SYSEXIT as necessary.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 26 15:01:36 2009 +0100 (2009-05-26)
parents 6ba04ec03dec
children
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
11 echo "Calling with 'clean' removes generated files."
12 exit 1
13 }
15 PATH=$PATH:/sbin:/usr/sbin
16 OS=`uname -s`
17 export PATH OS
19 if [ "$OS" = "SunOS" ]; then
20 exit 0
21 fi
23 case $1 in
24 build)
25 check="CHECK-BUILD"
26 ;;
27 install)
28 check="CHECK-INSTALL"
29 ;;
30 clean)
31 exit 0
32 ;;
33 *)
34 func_usage
35 ;;
36 esac
38 failed=0
40 echo "Xen ${check} " `date`
41 for f in check_* ; do
42 case $f in
43 *~)
44 continue
45 ;;
46 *)
47 ;;
48 esac
49 if ! [ -x $f ] ; then
50 continue
51 fi
52 if ! grep -Fq "$check" $f ; then
53 continue
54 fi
55 echo -n "Checking $f: "
56 if ./$f 2>&1 ; then
57 echo OK
58 else
59 failed=1
60 fi
61 done
63 exit ${failed}