tools/tests: Add syntax check for different versions of python

From: Andreas Florath <xen@flonatel.org>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2009-07-28 16:38:08 +01:00
1 parent d7de9aa5e8
commit 59efc1880b
6 files changed
+180

No files matched your search

@@ -0,0 +1,24 @@
#!/bin/bash
#
# This script builds python in the dir
# installed/python-${DEST} from package downloads/Python-{PKG_VERS}.tgz
#
set -e
XEN_ROOT=$1
DEST=$2
PKG_VERS=$3
SUB_MAKES_MINUS_J=-j4
BUILD_DIR=${XEN_ROOT}/tests/build
mkdir -p ${BUILD_DIR}
(cd ${BUILD_DIR} && tar -xf ${XEN_ROOT}/tests/downloads/Python-$PKG_VERS.tgz)
(cd ${BUILD_DIR}/Python-$PKG_VERS &&
./configure --enable-shared --enable-ipv6 --without-cxx \
--with-threads --prefix=${XEN_ROOT}/tests/installed/python-$DEST &&
make ${SUB_MAKES_MINUS_J} &&
make install)
rm -fr ${BUILD_DIR}/Python-$PKG_VERS
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.