]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: update help-version to work with parted, too
authorJim Meyering <meyering@redhat.com>
Wed, 26 May 2010 09:33:53 +0000 (11:33 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 26 May 2010 09:33:53 +0000 (11:33 +0200)
* tests/misc/help-version: Add init code for GNU Parted.

tests/misc/help-version

index 10f93ad30886ba604d36d342463c26795be7f18c..a84c0ecc4e107a7481eb32f2df069b9c258b81aa 100755 (executable)
@@ -242,6 +242,9 @@ stat_setup () { args=$tmp_in; }
 unlink_setup () { args=$tmp_in; }
 lbracket_setup () { args=": ]"; }
 
+parted_setup () { args="-s $tmp_in mklabel gpt"
+  dd if=/dev/null of=$tmp_in seek=2000; }
+
 # Ensure that each program "works" (exits successfully) when doing
 # something more than --help or --version.
 for i in $built_programs; do