From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6DD7D138247 for ; Sun, 5 Jan 2014 19:32:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 09CD6E0B3E; Sun, 5 Jan 2014 19:32:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A10A9E0B3E for ; Sun, 5 Jan 2014 19:32:57 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C8A3833F559 for ; Sun, 5 Jan 2014 19:32:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 4AE92E54AB for ; Sun, 5 Jan 2014 19:32:55 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1388948938.752d92c9b7ace52f2b5cdf1b1e77ffef3ef12911.vapier@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: / X-VCS-Repository: proj/portage X-VCS-Files: DEVELOPING runtests.sh X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 752d92c9b7ace52f2b5cdf1b1e77ffef3ef12911 X-VCS-Branch: master Date: Sun, 5 Jan 2014 19:32:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ca190cdd-70b8-4aec-a264-d141a19701cb X-Archives-Hash: 106368229f40bacec51135388995b270 commit: 752d92c9b7ace52f2b5cdf1b1e77ffef3ef12911 Author: Mike Frysinger gentoo org> AuthorDate: Sun Jan 5 15:31:32 2014 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sun Jan 5 19:08:58 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=752d92c9 runtests: add a "supported" shortcut This keeps the list of supported versions in one place so people can do: ./runtests.sh --python-versions=supported No need to hardcode the list of python versions in multiple places. --- DEVELOPING | 6 +++--- runtests.sh | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/DEVELOPING b/DEVELOPING index 5dfd9b7..7aac81b 100644 --- a/DEVELOPING +++ b/DEVELOPING @@ -171,9 +171,9 @@ Then create the tarball: ./mkrelease.sh --changelog-rev v2.2.7 --tag 2.2.8 Unpack the tarball and run tests: - ./runtests.sh -Make sure you have all supported python versions installed: - 2.6 2.7 3.2 3.3 + ./runtests.sh --python-versions=supported +Make sure you have all supported python versions installed first +(see PYTHON_SUPPORTED_VERSIONS in runtests.sh). Version bump the ebuild and verify it can re-install itself: emerge portage diff --git a/runtests.sh b/runtests.sh index 010a7bf..3006be5 100755 --- a/runtests.sh +++ b/runtests.sh @@ -2,6 +2,8 @@ # Copyright 2010-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +# These are the versions we care about. The rest are just "nice to have". +PYTHON_SUPPORTED_VERSIONS="2.6 2.7 3.2 3.3" PYTHON_VERSIONS="2.6 2.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0 3.1 3.2 3.3 3.4" # has to be run from portage root dir @@ -44,6 +46,9 @@ while [ $# -gt 0 ] ; do esac shift done +if [[ ${PYTHON_VERSIONS} == "supported" ]] ; then + PYTHON_VERSIONS=${PYTHON_SUPPORTED_VERSIONS} +fi set -- "${unused_args[@]}"