[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging] tools/tests: Drop obsolete test infrastructure



commit f393b82fe5ba3ed9cfe2b306ffa53368e55b75af
Author:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Mon Feb 25 13:06:22 2019 +0000
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Fri Mar 1 10:23:43 2019 +0000

    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@xxxxxxxxxx>
    Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
    Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
    Release-acked-by: Juergen Gross <jgross@xxxxxxxx>
---
 tools/tests/Makefile                               |  3 -
 tools/tests/regression/Makefile                    | 95 ----------------------
 tools/tests/regression/README                      | 39 ---------
 tools/tests/regression/scripts/build_python.sh     | 24 ------
 .../regression/scripts/check_python_syntax.sh      | 22 -----
 tools/tests/regression/scripts/download_python.sh  | 12 ---
 6 files changed, 195 deletions(-)

diff --git a/tools/tests/Makefile b/tools/tests/Makefile
index a9fc50d789..2605b3b7ed 100644
--- a/tools/tests/Makefile
+++ b/tools/tests/Makefile
@@ -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
diff --git a/tools/tests/regression/Makefile b/tools/tests/regression/Makefile
deleted file mode 100644
index 70d524aee8..0000000000
--- a/tools/tests/regression/Makefile
+++ /dev/null
@@ -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
diff --git a/tools/tests/regression/README b/tools/tests/regression/README
deleted file mode 100644
index 06b26b0350..0000000000
--- a/tools/tests/regression/README
+++ /dev/null
@@ -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).
-
diff --git a/tools/tests/regression/scripts/build_python.sh 
b/tools/tests/regression/scripts/build_python.sh
deleted file mode 100644
index 603252eff7..0000000000
--- a/tools/tests/regression/scripts/build_python.sh
+++ /dev/null
@@ -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
diff --git a/tools/tests/regression/scripts/check_python_syntax.sh 
b/tools/tests/regression/scripts/check_python_syntax.sh
deleted file mode 100644
index 2401895f8e..0000000000
--- a/tools/tests/regression/scripts/check_python_syntax.sh
+++ /dev/null
@@ -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 $?
diff --git a/tools/tests/regression/scripts/download_python.sh 
b/tools/tests/regression/scripts/download_python.sh
deleted file mode 100644
index 223522ee25..0000000000
--- a/tools/tests/regression/scripts/download_python.sh
+++ /dev/null
@@ -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
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.