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

[SCM] Debian package checker branch, master, updated. 2.5.2-113-g8d16cf8



The following commit has been merged in the master branch:
commit 8d16cf8873a913383438c5349510e478df3f1df9
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Sep 7 13:47:45 2011 +0200

    Add option to only run the legacy tests

diff --git a/doc/README.developers b/doc/README.developers
index 4915042..a769ba0 100644
--- a/doc/README.developers
+++ b/doc/README.developers
@@ -251,6 +251,15 @@ tag, use:
 
 The legacy test suite will not be run in this case.
 
+=item Running only the legacy test suite
+
+To run only the tests in legacy test suite use:
+
+ $ debian/rules runtests onlyrun=--legacy-only
+
+The new test suite will not be run in this case, but it is not possible
+to select specific tests to run.
+
 =back
 
 =cut
diff --git a/private/runtests b/private/runtests
index 071f2c3..a6f2876 100755
--- a/private/runtests
+++ b/private/runtests
@@ -11,8 +11,13 @@ if [ "$1" = "-j" ] ; then
     shift
 fi
 
+NEW_SUITE=1
+
 if [ "$1" = "-t" ] ; then
     TAG=yes
+elif [ "$1" = "--legacy-only" ] ; then
+    NEW_SUITE=0
+    shift
 fi
 
 LC_ALL="C"
@@ -43,7 +48,9 @@ if [ ! -e "$LOCPATH"/en_US.UTF-8 ] ; then
         --quiet "$LOCPATH"/en_US.UTF-8 || fail "Locale generation failed"
 fi
 
-t/runtests --dump-logs -k $PARALLEL_ARGS t "$TEST_WORK_DIR" "$@"
+if [ "${NEW_SUITE}" = 1 ] ; then
+    t/runtests --dump-logs -k $PARALLEL_ARGS t "$TEST_WORK_DIR" "$@"
+fi
 if [ "$TAG" = "" ] ; then
     testset/runtests -k testset "$TEST_WORK_DIR" "$@"
 fi

-- 
Debian package checker


Reply to: