search for: initempty

Displaying 20 results from an estimated 84 matches for "initempty".

Did you mean: enotempty
2014 Oct 22
0
[PATCH] tests: c-api: add $datadir and $databuilddir
...(+), 55 deletions(-) diff --git a/generator/actions.ml b/generator/actions.ml index 4cfba0d..370e6e0 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -2744,19 +2744,19 @@ data." }; style = RString "format", [String "filename"], []; tests = [ InitEmpty, Always, TestResultString ( - [["disk_format"; "../data/blank-disk-1s.raw"]], "raw"), []; + [["disk_format"; "$databuilddir/blank-disk-1s.raw"]], "raw"), []; InitEmpty, Always, TestResultString ( - [["disk_...
2016 Feb 03
5
[PATCH 0/3] tests: Various fixes for btrfs and aarch64.
These patches fix btrfs on aarch64. You still need btrfs-progs 4.4 which was only released a few days ago. Rich.
2014 Oct 05
0
[PATCH v5 2/7] tests/c-api: Convert the C API tests to use the test harness.
...# Print subdirs. # diff --git a/generator/actions.ml b/generator/actions.ml index eec3b94..fde0b25 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -2732,19 +2732,19 @@ data." }; style = RString "format", [String "filename"], []; tests = [ InitEmpty, Always, TestResultString ( - [["disk_format"; "../data/blank-disk-1s.raw"]], "raw"), []; + [["disk_format"; "$datadir/blank-disk-1s.raw"]], "raw"), []; InitEmpty, Always, TestResultString ( - [["disk_forma...
2016 Feb 03
0
[PATCH 1/3] tests: Increase the size of the /dev/sda and /dev/sdb test devices.
...filesystem write operations. diff --git a/generator/actions.ml b/generator/actions.ml index 4078082..881ec4e 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -4779,7 +4779,8 @@ C<blocksize> option of C<guestfs_mkfs>." }; proc_nr = Some 62; tests = [ InitEmpty, Always, TestResult ( - [["blockdev_getsz"; "/dev/sda"]], "ret == 1024000"), [] + [["blockdev_getsz"; "/dev/sda"]], + "ret == INT64_C(10)*1024*1024*1024/512"), [] ]; shortdesc = "get total size of devi...
2015 Jan 13
3
[PATCH] mkfs: add 'label' optional argument
...ce, blocksize, 0, 0, 0); + return do_mkfs (fstype, device, blocksize, 0, 0, 0, NULL); } diff --git a/generator/actions.ml b/generator/actions.ml index a6a6dad..96a9dd6 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -3324,7 +3324,7 @@ let daemon_functions = [ tests = [ InitEmpty, Always, TestResultString ( [["part_disk"; "/dev/sda"; "mbr"]; - ["mkfs"; "ext2"; "/dev/sda1"; ""; "NOARG"; ""; ""]; + ["mkfs"; "ext2"; "/dev/sda1&qu...
2015 Aug 06
0
[PATCH v4 02/17] tests/c-api: Convert the C API tests to use the test harness.
...# Print subdirs. # diff --git a/generator/actions.ml b/generator/actions.ml index 35af981..d2b057d 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -2767,19 +2767,19 @@ data." }; style = RString "format", [String "filename"], []; tests = [ InitEmpty, Always, TestResultString ( - [["disk_format"; "../data/blank-disk-1s.raw"]], "raw"), []; + [["disk_format"; "$datadir/blank-disk-1s.raw"]], "raw"), []; InitEmpty, Always, TestResultString ( - [["disk_forma...
2016 Jan 26
1
[PATCH] xfs_admin: do not set lazycounter in tests not checking that
...hen not needed. --- generator/actions.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/actions.ml b/generator/actions.ml index 9ea5736..14902e7 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -10928,12 +10928,12 @@ with zeroes)." }; InitEmpty, Always, TestResultString ( [["part_disk"; "/dev/sda"; "mbr"]; ["mkfs"; "xfs"; "/dev/sda1"; ""; "NOARG"; ""; ""; "NOARG"]; - ["xfs_admin"; "/...
2017 Feb 21
1
[PATCH] generator: Put all the daemon procedure numbers (proc_nr)
This is a follow-up to the other generator changes in: https://www.redhat.com/archives/libguestfs/2017-February/msg00217.html Rich.
2016 Feb 08
1
[PATCH] tests: reduce sizes of scratch disks to 2 GB
...system used for testing filesystem write operations. diff --git a/generator/actions.ml b/generator/actions.ml index 36b8680..eb45392 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -4780,7 +4780,7 @@ C<blocksize> option of C<guestfs_mkfs>." }; tests = [ InitEmpty, Always, TestResult ( [["blockdev_getsz"; "/dev/sda"]], - "ret == INT64_C(10)*1024*1024*1024/512"), [] + "ret == INT64_C(2)*1024*1024*1024/512"), [] ]; shortdesc = "get total size of device in 512-byte sectors";...
2017 Feb 18
8
[PATCH 0/6] generator: Split up generator/actions.ml
Split up the huge generator/actions.ml into several smaller files. Rich.
2018 Jul 18
0
[PATCH 2/3] New API: lvm_scan, deprecate vgscan (RHBZ#1602353).
...+5245,6 @@ If blocks are already zero, then this command avoids writing zeroes. This prevents the underlying device from becoming non-sparse or growing unnecessarily." }; - { defaults with - name = "vgscan"; added = (1, 3, 2); - style = RErr, [], []; - tests = [ - InitEmpty, Always, TestRun ( - [["vgscan"]]), [] - ]; - shortdesc = "rescan for LVM physical volumes, volume groups and logical volumes"; - longdesc = "\ -This rescans all block devices and rebuilds the list of LVM -physical volumes, volume groups and logical volumes....
2017 Apr 21
0
[PATCH 1/2] generator: Simplify the handling of string parameters.
...idden files are shown." }; { defaults with name = "disk_format"; added = (1, 19, 38); - style = RString "format", [String "filename"], []; + style = RString "format", [String (PlainString, "filename")], []; tests = [ InitEmpty, Always, TestResultString ( [["disk_format"; "../../test-data/blank-disks/blank-disk-1s.raw"]], "raw"), []; @@ -1265,7 +1265,7 @@ See also: L<guestfs(3)/DISK IMAGE FORMATS>" }; { defaults with name = "disk_virtual_size"; added =...
2017 Apr 21
4
[PATCH 0/2] generator: Simplify the handling of string parameters.
Very large but mechanical change to the generator. Rich.
2016 Jan 25
1
[PATCH] actions: expand partitions for btrfs_image test
....ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/actions.ml b/generator/actions.ml index 75d3fc5..9ea5736 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -12680,8 +12680,8 @@ This enable skinny metadata extent refs." }; tests = [ InitEmpty, Always, TestRun ( [["part_init"; "/dev/sda"; "mbr"]; - ["part_add"; "/dev/sda"; "p"; "64"; "204799"]; - ["part_add"; "/dev/sda"; "p"; "204800"; "409...
2015 Mar 13
2
[PATCH] tests: add test case of set-label and vfs-label for btrfs
...k"; "/dev/sda"; "mbr"]; ["mkfs"; "ext2"; "/dev/sda1"; ""; "NOARG"; ""; ""; "test-label"]; ["vfs_label"; "/dev/sda1"]], "test-label"), []; + InitEmpty, IfAvailable "btrfs", TestResultString ( + [["part_disk"; "/dev/sda"; "mbr"]; + ["mkfs"; "btrfs"; "/dev/sda1"; ""; "NOARG"; ""; ""; ""]; + ["set_label&...
2015 Jun 04
3
[PATCH RFC][Resend] New API: btrfs_convert
...gt;, or C<extended>." }; + { defaults with + name = "btrfs_convert"; + style = RErr, [Device "device"], [OBool "rollback"]; + proc_nr = Some 455; + optional = Some "btrfs"; camel_name = "BTRFSConvert"; + tests = [ + InitEmpty, Disabled, TestRun ( + [["mkfs"; "ext2"; "/dev/sda"; ""; "NOARG"; ""; ""; "NOARG"]; + ["btrfs_convert"; "/dev/sda"; ""]; + ["btrfs_convert"; "/dev/sda...
2020 Feb 20
1
[PATCH] lib: Move guestfs_device_index impl from daemon to library.
Although the commit message ties this to https://bugzilla.redhat.com/1804207, in fact I believe this commit could be applied independently. It's a simple optimization. Rich.
2017 Mar 03
2
[PATCH] generator: Allow actions to be deprecated with no replacement.
...ean (I<-f>)." }; { defaults with name = "mkswap_L"; added = (1, 0, 55); style = RErr, [String "label"; Device "device"], []; - deprecated_by = Some "mkswap"; + deprecated_by = Replaced_by "mkswap"; tests = [ InitEmpty, Always, TestRun ( [["part_disk"; "/dev/sda"; "mbr"]; @@ -338,7 +338,7 @@ a limitation of the kernel or swap tools." }; { defaults with name = "mkswap_U"; added = (1, 0, 55); style = RErr, [String "uuid"; Device "devi...
2015 Oct 05
2
[PATCH] Remove multiple hacks that only apply to RHEL 5.
...1; } /* Takes optional arguments, consult optargs_bitmask. */ diff --git a/generator/actions.ml b/generator/actions.ml index 12d5e5a..2f29f7a 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -6169,11 +6169,11 @@ the command C<mount -o loop file mountpoint>." }; InitEmpty, Always, TestRun ( [["part_disk"; "/dev/sda"; "mbr"]; ["mkswap"; "/dev/sda1"; "hello"; "NOARG"]]), []; - InitEmpty, IfAvailable "linuxfsuuid", TestResultString ( + InitEmpty, Always, TestRes...
2015 Mar 17
4
[PATCH] New API: part_get_part_type for showing partition type
...ot; }; longdesc = "\ This enable skinny metadata extent refs." }; + { defaults with + name = "part_get_part_type"; + style = RString "partitiontype", [Device "device"; Int "partnum"], []; + proc_nr = Some 453; + tests = [ + InitEmpty, Always, TestResultString ( + [["part_init"; "/dev/sda"; "mbr"]; + ["part_add"; "/dev/sda"; "p"; "64"; "204799"]; + ["part_add"; "/dev/sda"; "e"; "204800";...