diff options
Diffstat (limited to 'src/generator.ml')
-rwxr-xr-x | src/generator.ml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/generator.ml b/src/generator.ml index 191b94df..ae1dfe9f 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -1273,7 +1273,10 @@ Reread the partition table on C<device>. This uses the L<blockdev(8)> command."); ("upload", (RErr, [FileIn "filename"; String "remotefilename"]), 66, [], - [], + [InitBasicFS, TestOutput ( + (* Pick a file from cwd which isn't likely to change. *) + [["upload"; "COPYING.LIB"; "/COPYING.LIB"]; + ["checksum"; "md5"; "/COPYING.LIB"]], "e3eda01d9815f8d24aae2dbd89b68b06")], "upload a file from the local machine", "\ Upload local file C<filename> to C<remotefilename> on the @@ -1284,7 +1287,12 @@ C<filename> can also be a named pipe. See also C<guestfs_download>."); ("download", (RErr, [String "remotefilename"; FileOut "filename"]), 67, [], - [], + [InitBasicFS, TestOutput ( + (* Pick a file from cwd which isn't likely to change. *) + [["upload"; "COPYING.LIB"; "/COPYING.LIB"]; + ["download"; "/COPYING.LIB"; "testdownload.tmp"]; + ["upload"; "testdownload.tmp"; "/upload"]; + ["checksum"; "md5"; "/upload"]], "e3eda01d9815f8d24aae2dbd89b68b06")], "download a file to the local machine", "\ Download file C<remotefilename> and save it as C<filename> |