[kernel] r19896 - in dists/sid/linux/debian: . bin

Ben Hutchings benh at alioth.debian.org
Sun Mar 3 23:43:05 UTC 2013


Author: benh
Date: Sun Mar  3 23:43:05 2013
New Revision: 19896

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

Modified:
   dists/sid/linux/debian/bin/test-patches
   dists/sid/linux/debian/changelog

Modified: dists/sid/linux/debian/bin/test-patches
==============================================================================
--- dists/sid/linux/debian/bin/test-patches	Sun Mar  3 23:40:22 2013	(r19895)
+++ dists/sid/linux/debian/bin/test-patches	Sun Mar  3 23:43:05 2013	(r19896)
@@ -19,12 +19,15 @@
     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 @@
      -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 @@
     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

Modified: dists/sid/linux/debian/changelog
==============================================================================
--- dists/sid/linux/debian/changelog	Sun Mar  3 23:40:22 2013	(r19895)
+++ dists/sid/linux/debian/changelog	Sun Mar  3 23:43:05 2013	(r19896)
@@ -14,6 +14,7 @@
   * 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 at decadent.org.uk>  Wed, 27 Feb 2013 03:48:30 +0000
 



More information about the Kernel-svn-changes mailing list