DO_TEST("#unbalanced; 'quotes\"\necho a # b");
DO_TEST("\\# ignored;echo a\n'#also' ignored");
+ /* test of the --help option handling */
+ DO_TEST_SCRIPT("help-option", NULL, VIRSH_DEFAULT, "-q");
+
/* test of splitting in vshStringToArray */
DO_TEST_SCRIPT("echo-split", NULL, VIRSH_DEFAULT, "-q");
--- /dev/null
+ NAME
+ echo - echo arguments. Used for internal testing.
+
+ SYNOPSIS
+ echo [--shell] [--xml] [--split] [--err] [--prefix <string>] [<string>]...
+
+ DESCRIPTION
+ Echo back arguments, possibly with quoting. Used for internal testing.
+
+ OPTIONS
+ --shell escape for shell use
+ --xml escape for XML use
+ --split split each argument on ','; ',,' is an escape sequence
+ --err output to stderr
+ --prefix <string> prefix the message
+ [--string] <string>... arguments to echo
+ NAME
+ echo - echo arguments. Used for internal testing.
+
+ SYNOPSIS
+ echo [--shell] [--xml] [--split] [--err] [--prefix <string>] [<string>]...
+
+ DESCRIPTION
+ Echo back arguments, possibly with quoting. Used for internal testing.
+
+ OPTIONS
+ --shell escape for shell use
+ --xml escape for XML use
+ --split split each argument on ','; ',,' is an escape sequence
+ --err output to stderr
+ --prefix <string> prefix the message
+ [--string] <string>... arguments to echo
+ NAME
+ echo - echo arguments. Used for internal testing.
+
+ SYNOPSIS
+ echo [--shell] [--xml] [--split] [--err] [--prefix <string>] [<string>]...
+
+ DESCRIPTION
+ Echo back arguments, possibly with quoting. Used for internal testing.
+
+ OPTIONS
+ --shell escape for shell use
+ --xml escape for XML use
+ --split split each argument on ','; ',,' is an escape sequence
+ --err output to stderr
+ --prefix <string> prefix the message
+ [--string] <string>... arguments to echo
+ NAME
+ echo - echo arguments. Used for internal testing.
+
+ SYNOPSIS
+ echo [--shell] [--xml] [--split] [--err] [--prefix <string>] [<string>]...
+
+ DESCRIPTION
+ Echo back arguments, possibly with quoting. Used for internal testing.
+
+ OPTIONS
+ --shell escape for shell use
+ --xml escape for XML use
+ --split split each argument on ','; ',,' is an escape sequence
+ --err output to stderr
+ --prefix <string> prefix the message
+ [--string] <string>... arguments to echo