ia64/xen-unstable

changeset 13028:70155087efe8

Add another package check (python-xml).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
author kfraser@localhost.localdomain
date Thu Dec 14 14:13:18 2006 +0000 (2006-12-14)
parents 7fdf6e0f12db
children 6a28bfc1a940
files tools/Makefile tools/check/check_python_xml
line diff
     1.1 --- a/tools/Makefile	Thu Dec 14 12:35:23 2006 +0000
     1.2 +++ b/tools/Makefile	Thu Dec 14 14:13:18 2006 +0000
     1.3 @@ -36,7 +36,7 @@ all: check
     1.4  	$(MAKE) ioemu
     1.5  
     1.6  .PHONY: install
     1.7 -install: check
     1.8 +install: check_install
     1.9  	@set -e; for subdir in $(SUBDIRS-y); do \
    1.10  		$(MAKE) -C $$subdir $@; \
    1.11  	done
    1.12 @@ -58,6 +58,10 @@ distclean: clean
    1.13  check:
    1.14  	$(MAKE) -C check
    1.15  
    1.16 +.PHONY: check_install
    1.17 +check_install: check
    1.18 +	$(MAKE) -C check install
    1.19 +
    1.20  .PHONY: check_clean
    1.21  check_clean:
    1.22  	$(MAKE) -C check clean
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/tools/check/check_python_xml	Thu Dec 14 14:13:18 2006 +0000
     2.3 @@ -0,0 +1,16 @@
     2.4 +#!/bin/bash
     2.5 +# CHECK-INSTALL
     2.6 +
     2.7 +function error {
     2.8 +    echo
     2.9 +    echo "  *** Check for python-xml package FAILED"
    2.10 +    exit 1
    2.11 +}
    2.12 +
    2.13 +python -c '
    2.14 +import os.path, sys
    2.15 +for p in sys.path:
    2.16 +	if os.path.exists(p + "/xml/dom/minidom.py"):
    2.17 +		sys.exit(0)
    2.18 +sys.exit(1)
    2.19 +' || error