test-patches: Add --fuzz option to allow testing patches that have fuzz

svn path=/dists/sid/linux/; revision=19896
This commit is contained in:
Ben Hutchings 2013-03-03 23:43:05 +00:00
parent 63ad08c556
commit 59229f2de2
2 changed files with 7 additions and 2 deletions

View File

@ -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 <flavour> specify the 'flavour' of kernel to build, e.g. 686-pae
-j <jobs> specify number of compiler jobs to run in parallel
-s <featureset> specify an optional featureset to apply, e.g. rt
--fuzz <num> 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

1
debian/changelog vendored
View File

@ -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 <ben@decadent.org.uk> Wed, 27 Feb 2013 03:48:30 +0000