From 59229f2de28d319865d6bdbf1bbc4ba59bcbbea0 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 3 Mar 2013 23:43:05 +0000 Subject: [PATCH] test-patches: Add --fuzz option to allow testing patches that have fuzz svn path=/dists/sid/linux/; revision=19896 --- debian/bin/test-patches | 8 ++++++-- debian/changelog | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/debian/bin/test-patches b/debian/bin/test-patches index 483b4f97fe92..94d6b0569708 100755 --- a/debian/bin/test-patches +++ b/debian/bin/test-patches @@ -19,12 +19,15 @@ else featureset=none fi -eval "set -- $(getopt -n "$0" -- "f:j:s:" "$@")" +fuzz=0 + +eval "set -- $(getopt -n "$0" -o "f:j:s:" -l "fuzz:" -- "$@")" while true; do case "$1" in -f) flavour="$2"; shift 2 ;; -j) export MAKEFLAGS="$MAKEFLAGS -j$2"; shift 2 ;; -s) featureset="$2"; shift 2 ;; + --fuzz) fuzz="$2"; shift 2;; --) shift 1; break ;; esac done @@ -36,6 +39,7 @@ Options: -f specify the 'flavour' of kernel to build, e.g. 686-pae -j specify number of compiler jobs to run in parallel -s specify an optional featureset to apply, e.g. rt + --fuzz set the maximum patch fuzz factor (default: 0) EOF exit 2 fi @@ -90,7 +94,7 @@ for patch in "$@"; do patch_abs="$(readlink -f "$patch")" (cd "debian/build/source_${featureset}" && \ quilt import -P "test/$(basename "$patch")" "$patch_abs" && \ - quilt push --fuzz=0) + quilt push --fuzz="$fuzz") done # Build selected binaries diff --git a/debian/changelog b/debian/changelog index ad2449d0bb54..2f6408f39631 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,6 +14,7 @@ linux (3.2.39-3) UNRELEASED; urgency=low * vhost: fix length for cross region descriptor (CVE-2013-0311) * test-patches: Clean up all previous test patches, whether or not they were applied + * test-patches: Add --fuzz option to allow testing patches that have fuzz -- Ben Hutchings Wed, 27 Feb 2013 03:48:30 +0000