mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
tools/tests: Drop obsolete test infrastructure
The regression/ directory was identified as already broken in 2012 (c/s
953953cc5). The logic is intended to test *.py files in the Xen tree against
different versions of python, but every python version is obsolete as well.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
1 parent
b50acc560b
commit
f393b82fe5
6 files changed
-195
No files matched your search
@@ -7,9 +7,6 @@ LDLIBS += $(LDLIBS_libxenctrl)
|
||||
SUBDIRS-y :=
|
||||
SUBDIRS-$(CONFIG_X86) += mce-test
|
||||
SUBDIRS-y += mem-sharing
|
||||
ifeq ($(XEN_TARGET_ARCH),__fixme__)
|
||||
SUBDIRS-y += regression
|
||||
endif
|
||||
ifneq ($(clang),y)
|
||||
SUBDIRS-$(CONFIG_X86) += x86_emulator
|
||||
endif
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
#
|
||||
# Sets up some regression applications
|
||||
# Runs regression tests
|
||||
#
|
||||
# To run this, at least the basic build / development environment must
|
||||
# be installed (gcc, ...)
|
||||
#
|
||||
XEN_ROOT=$(PWD)/../../..
|
||||
REG_TEST_DIR=$(PWD)
|
||||
|
||||
PYTHON_VERSIONS=python-2.3 python-2.4 python-2.5 python-2.6 python-3.1
|
||||
|
||||
.PHONY: all
|
||||
all: check-python-syntax
|
||||
|
||||
.PHONY: check-python-syntax
|
||||
check-python-syntax: runtime-environment
|
||||
@(set -e && for p in $(PYTHON_VERSIONS); do \
|
||||
/bin/sh $(REG_TEST_DIR)/scripts/check_python_syntax.sh \
|
||||
$(REG_TEST_DIR) $$p $(XEN_ROOT); done)
|
||||
|
||||
.PHONY: runtime-environment
|
||||
runtime-environment: $(PYTHON_VERSIONS)
|
||||
|
||||
.PHONY: distclean
|
||||
distclean:
|
||||
rm -fr $(REG_TEST_DIR)/installed $(REG_TEST_DIR)/downloads \
|
||||
$(REG_TEST_DIR)/build
|
||||
|
||||
### Python 2.3
|
||||
|
||||
.PHONY: python-2.3
|
||||
python-2.3: $(REG_TEST_DIR)/installed/python-2.3/bin/python2.3
|
||||
|
||||
$(REG_TEST_DIR)/installed/python-2.3/bin/python2.3: \
|
||||
$(REG_TEST_DIR)/downloads/Python-2.3.7.tgz
|
||||
@/bin/sh $(REG_TEST_DIR)/scripts/build_python.sh \
|
||||
$(REG_TEST_DIR) 2.3 2.3.7
|
||||
$(REG_TEST_DIR)/downloads/Python-2.3.7.tgz:
|
||||
@/bin/sh $(REG_TEST_DIR)/scripts/download_python.sh \
|
||||
$(REG_TEST_DIR) 2.3.7
|
||||
|
||||
### Python 2.4
|
||||
|
||||
.PHONY: python-2.4
|
||||
python-2.4: $(REG_TEST_DIR)/installed/python-2.4/bin/python2.4
|
||||
|
||||
$(REG_TEST_DIR)/installed/python-2.4/bin/python2.4: \
|
||||
$(REG_TEST_DIR)/downloads/Python-2.4.6.tgz
|
||||
@/bin/sh $(REG_TEST_DIR)/scripts/build_python.sh \
|
||||
$(REG_TEST_DIR) 2.4 2.4.6
|
||||
$(REG_TEST_DIR)/downloads/Python-2.4.6.tgz:
|
||||
@/bin/sh $(REG_TEST_DIR)/scripts/download_python.sh \
|
||||
$(REG_TEST_DIR) 2.4.6
|
||||
|
||||
### Python 2.5
|
||||
|
||||
.PHONY: python-2.5
|
||||
python-2.5: $(REG_TEST_DIR)/installed/python-2.5/bin/python2.5
|
||||
|
||||
$(REG_TEST_DIR)/installed/python-2.5/bin/python2.5: \
|
||||
$(REG_TEST_DIR)/downloads/Python-2.5.4.tgz
|
||||
@/bin/sh $(REG_TEST_DIR)/scripts/build_python.sh \
|
||||
$(REG_TEST_DIR) 2.5 2.5.4
|
||||
$(REG_TEST_DIR)/downloads/Python-2.5.4.tgz:
|
||||
@/bin/sh $(REG_TEST_DIR)/scripts/download_python.sh \
|
||||
$(REG_TEST_DIR) 2.5.4
|
||||
|
||||
### Python 2.6
|
||||
|
||||
.PHONY: python-2.6
|
||||
python-2.6: $(REG_TEST_DIR)/installed/python-2.6/bin/python2.6
|
||||
|
||||
$(REG_TEST_DIR)/installed/python-2.6/bin/python2.6: \
|
||||
$(REG_TEST_DIR)/downloads/Python-2.6.2.tgz
|
||||
@/bin/sh $(REG_TEST_DIR)/scripts/build_python.sh \
|
||||
$(REG_TEST_DIR) 2.6 2.6.2
|
||||
$(REG_TEST_DIR)/downloads/Python-2.6.2.tgz:
|
||||
@/bin/sh $(REG_TEST_DIR)/scripts/download_python.sh \
|
||||
$(REG_TEST_DIR) 2.6.2
|
||||
|
||||
### Python 3.0.1 has reached end of life and is not (longer) supported
|
||||
|
||||
### Python 3.1
|
||||
|
||||
.PHONY: python-3.1
|
||||
python-3.1: $(REG_TEST_DIR)/installed/python-3.1/bin/python3.1
|
||||
|
||||
$(REG_TEST_DIR)/installed/python-3.1/bin/python3.1: \
|
||||
$(REG_TEST_DIR)/downloads/Python-3.1.tgz
|
||||
@/bin/sh $(REG_TEST_DIR)/scripts/build_python.sh \
|
||||
$(REG_TEST_DIR) 3.1 3.1
|
||||
$(REG_TEST_DIR)/downloads/Python-3.1.tgz:
|
||||
@/bin/sh $(REG_TEST_DIR)/scripts/download_python.sh \
|
||||
$(REG_TEST_DIR) 3.1
|
||||
@@ -1,39 +0,0 @@
|
||||
|
||||
Regression Test Environment for Xen
|
||||
-------------------------------------
|
||||
|
||||
This is an initial regression tool environment for Xen.
|
||||
|
||||
With the help of the Makefile, it is possible to compile a couple of
|
||||
different python versions and check all .py files against all verions
|
||||
for syntax errors. Note that due to the dynmic of python not all
|
||||
syntax errors might be detected.
|
||||
|
||||
Currently the following versions of python are supported:
|
||||
2.3.7 2.4.6 2.5.4 2.6.2 3.1
|
||||
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
To download all supported versions of python, compile them, install
|
||||
them and run a basic syntax check, run
|
||||
|
||||
$ make
|
||||
|
||||
(The download and compilation of python is only done if not already
|
||||
available.)
|
||||
|
||||
To delete all automatically build files:
|
||||
|
||||
$ make dist-clean
|
||||
|
||||
|
||||
|
||||
Runing unittests with a specific version
|
||||
----------------------------------------
|
||||
|
||||
This does not work at the moment, because a lot of additional python
|
||||
packages are needed for this (which are currently not automatically
|
||||
build).
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This script builds python in the dir
|
||||
# installed/python-${DEST} from package downloads/Python-{PKG_VERS}.tgz
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
REG_TEST_DIR=$1
|
||||
DEST=$2
|
||||
PKG_VERS=$3
|
||||
|
||||
SUB_MAKES_MINUS_J=-j4
|
||||
|
||||
BUILD_DIR=${REG_TEST_DIR}/build
|
||||
|
||||
mkdir -p ${BUILD_DIR}
|
||||
(cd ${BUILD_DIR} && tar -xf ${REG_TEST_DIR}/downloads/Python-$PKG_VERS.tgz)
|
||||
(cd ${BUILD_DIR}/Python-$PKG_VERS &&
|
||||
./configure --enable-shared --enable-ipv6 --without-cxx \
|
||||
--with-threads --prefix=${REG_TEST_DIR}/installed/python-$DEST &&
|
||||
make ${SUB_MAKES_MINUS_J} &&
|
||||
make install)
|
||||
rm -fr ${BUILD_DIR}/Python-$PKG_VERS
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Checks the syntax of all .py files
|
||||
# (compiles them into .pyc files)
|
||||
#
|
||||
|
||||
REG_TEST_DIR=$1
|
||||
# Python version, e.g. python-2.3
|
||||
PYTHON=$2
|
||||
PATH_TO_CHECK=$3
|
||||
|
||||
echo "Syntax check for $PYTHON"
|
||||
PYTHON_EXECUTABLE=`echo $PYTHON | tr -d "-"`
|
||||
export LD_LIBRARY_PATH=${REG_TEST_DIR}/installed/$PYTHON/lib
|
||||
export PATH=${REG_TEST_DIR}/installed/$PYTHON/bin:$PATH
|
||||
|
||||
# -m is available starting with python 2.4
|
||||
# When support for 2.3 (and earlier) is dropped,
|
||||
# the following line will do.
|
||||
# ${PYTHON_EXECUTABLE} -m compileall -f -q -x ".*\.hg.*|.*/tools/tests/regression/installed.*" ${PATH_TO_CHECK}
|
||||
${PYTHON_EXECUTABLE} ${REG_TEST_DIR}/installed/$PYTHON/lib/${PYTHON_EXECUTABLE}/compileall.py -f -q -x ".*\.hg.*|.*/installed/python-.*" ${PATH_TO_CHECK}
|
||||
exit $?
|
||||
@@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Downloads python with version $1 and stores in into the downloads dir.
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
REG_TEST_DIR=$1
|
||||
VERSION=$2
|
||||
|
||||
mkdir -p ${REG_TEST_DIR}/downloads
|
||||
wget -q -O ${REG_TEST_DIR}/downloads/Python-${VERSION}.tgz http://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tgz
|
||||