test-patches: Add --fuzz option to allow testing patches that have fuzz
svn path=/dists/sid/linux/; revision=19896
This commit is contained in:
parent
63ad08c556
commit
59229f2de2
|
@ -19,12 +19,15 @@ else
|
||||||
featureset=none
|
featureset=none
|
||||||
fi
|
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
|
while true; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-f) flavour="$2"; shift 2 ;;
|
-f) flavour="$2"; shift 2 ;;
|
||||||
-j) export MAKEFLAGS="$MAKEFLAGS -j$2"; shift 2 ;;
|
-j) export MAKEFLAGS="$MAKEFLAGS -j$2"; shift 2 ;;
|
||||||
-s) featureset="$2"; shift 2 ;;
|
-s) featureset="$2"; shift 2 ;;
|
||||||
|
--fuzz) fuzz="$2"; shift 2;;
|
||||||
--) shift 1; break ;;
|
--) shift 1; break ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
@ -36,6 +39,7 @@ Options:
|
||||||
-f <flavour> specify the 'flavour' of kernel to build, e.g. 686-pae
|
-f <flavour> specify the 'flavour' of kernel to build, e.g. 686-pae
|
||||||
-j <jobs> specify number of compiler jobs to run in parallel
|
-j <jobs> specify number of compiler jobs to run in parallel
|
||||||
-s <featureset> specify an optional featureset to apply, e.g. rt
|
-s <featureset> specify an optional featureset to apply, e.g. rt
|
||||||
|
--fuzz <num> set the maximum patch fuzz factor (default: 0)
|
||||||
EOF
|
EOF
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
@ -90,7 +94,7 @@ for patch in "$@"; do
|
||||||
patch_abs="$(readlink -f "$patch")"
|
patch_abs="$(readlink -f "$patch")"
|
||||||
(cd "debian/build/source_${featureset}" && \
|
(cd "debian/build/source_${featureset}" && \
|
||||||
quilt import -P "test/$(basename "$patch")" "$patch_abs" && \
|
quilt import -P "test/$(basename "$patch")" "$patch_abs" && \
|
||||||
quilt push --fuzz=0)
|
quilt push --fuzz="$fuzz")
|
||||||
done
|
done
|
||||||
|
|
||||||
# Build selected binaries
|
# Build selected binaries
|
||||||
|
|
|
@ -14,6 +14,7 @@ linux (3.2.39-3) UNRELEASED; urgency=low
|
||||||
* vhost: fix length for cross region descriptor (CVE-2013-0311)
|
* vhost: fix length for cross region descriptor (CVE-2013-0311)
|
||||||
* test-patches: Clean up all previous test patches, whether or not they
|
* test-patches: Clean up all previous test patches, whether or not they
|
||||||
were applied
|
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
|
-- Ben Hutchings <ben@decadent.org.uk> Wed, 27 Feb 2013 03:48:30 +0000
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue