Thread (3 messages) 3 messages, 2 authors, 2016-08-20

Re: [PATCH 3/6] kvm-xfstests: update command line help

From: Theodore Ts'o <tytso@mit.edu>
Date: 2016-08-19 13:42:46

On Fri, Aug 19, 2016 at 12:54:08AM +0400, Dmitry Monakhov wrote:
quoted hunk
diff --git a/kvm-xfstests/util/parse_cli b/kvm-xfstests/util/parse_cli
index 83400ea..edbbafa 100644
--- a/kvm-xfstests/util/parse_cli
+++ b/kvm-xfstests/util/parse_cli
@@ -26,10 +26,47 @@ print_help ()
     echo "	-o opts		- Extra kernel command line options"
     echo "	-r ram		- Specify memory to be used in megabytes"
     echo "	-X test		- Exclude test from running"
+    echo "	--no-punch	- Do not run tests w/ patch hole"
+    echo "	--no-collapse	- Do not run tests w/ collapse range"
+    echo "	--no-insert	- Do not run tests w/ insert range"
+    echo "	--no-zero	- Do not run tests w/ zero range"
The reason why I don't document these options is they depend on an
out-of-tree patch for xfstests.  It's in my githup repo, but it's not
something which xfstests upstream has seen fit to take.
quoted hunk
     if test "$GCE_XFSTESTS" != "yes" ; then
 	echo "	--kernel file	- Boot the specified kernel"
 
+    else
+	echo "GCE speciffic commands:"
+	echo "	ls-instances"
+        echo "	ls|ls-instances"
+        echo "	rm|rm-instances|abort|abort-instances"
+        echo "	start|start-instance|start-instances"
+        echo "	stop|stop-instance|stop-instances"
+        echo "	ls-disks|ls-disk"
+        echo "	rm-disks|rm-disk"
+        echo "	ls-results|ls-gcs"
+        echo "	rm-results|rm-gcs"
+        echo "	get-results"
+        echo "	setup"
+        echo "	ssh"
+        echo "	console"
+        echo "	serial"
+        echo "	get-results"
+        echo "	create-image"
+        echo "	export-image"
+        echo "	import-image"
+        echo "	--numa"
+        echo "	--log"
+        echo "	--local-ssd"
+        echo "	--pmem-device"
+        echo "	--machtype"
+        echo "	--image-project"
+        echo "	--instance-name"
+        echo "	--no-virtio-rng"
     fi
+    echo "Base image update commands:"
+    echo "	--update-xfstests-tar"
+    echo "	--update-xfstests"
+    echo "	--update-files"
+    echo
     echo "	--no-log	- Don't save the log file for this run"
     echo "	--no-action	- Print the command to start the VM"
     echo ""
The options don't belong next to the GCE specific commands.  And
gce-import, as well as the base image update options, are really
intended for the maintainer (e.g., for me to update the xfstests-cloud
public image project).

The main issue is I'm a bit concerned about making the help message
too long.  My long term vision is to go in the direction of git and
gcloud's style of help messages / man pages.  So gce-xfstests --help
and kvm-xfstests --help will display a list of the most commonly used
/ useful commands and options.  And where "gce-xfstests get-results
--help" will display a full man page for the get-results subcommand,
and "gce-xfstests help commands" will display a full list of all
commands, and "gce-xfstests help topics" will allow you to see the
documentation currently available as markdown files in Documentation.

Cheers,

						- Ted
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help