summaryrefslogtreecommitdiff
path: root/tests/completion.at
diff options
context:
space:
mode:
authorAlex Wang <alexw@nicira.com>2015-02-02 12:57:16 -0800
committerAlex Wang <alexw@nicira.com>2015-02-03 17:57:55 -0800
commitb8905bfa9def3c9acbbe76c6aa5523348b713771 (patch)
tree7b1575e442461ed0227f615b4d63b173034dfe26 /tests/completion.at
parent08ba081054b668fa5d98ae8e03c8a783af871df8 (diff)
downloadopenvswitch-b8905bfa9def3c9acbbe76c6aa5523348b713771.tar.gz
ovs-command-completion: Complete on file path by default.
This commit makes the bash completion script complete on file path when there is no completion available. The unit tests are also adjusted accordingly. Signed-off-by: Alex Wang <alexw@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'tests/completion.at')
-rw-r--r--tests/completion.at25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/completion.at b/tests/completion.at
index 4832f61f3..dd50429b4 100644
--- a/tests/completion.at
+++ b/tests/completion.at
@@ -78,19 +78,6 @@ AT_CHECK_UNQUOTED([GET_AVAIL(${INPUT})],
${MATCH}
])])
AT_CHECK([ovs-appctl --target ovs-ofctl exit])
-
-
-# check all ovs-appctl subcommand formats
-LIST=$(ovs-appctl list-commands | tail -n +2 | cut -c3- | cut -d ' ' -f1 | sort)
-for subcommand in $LIST; do
- INPUT="$(bash ovs-command-compgen.bash debug ovs-appctl $subcommand TAB 2>&1)"
- MATCH=$(ovs-appctl list-commands | tail -n+2 | cut -c3- | grep -- "^$subcommand " | tr -s ' ')
- AT_CHECK_UNQUOTED([GET_FORMAT(${INPUT})],
-[0], [dnl
-${MATCH}
-])
-done
-
OVS_VSWITCHD_STOP
AT_CLEANUP
@@ -123,8 +110,6 @@ p0
INPUT="$(bash ovs-command-compgen.bash debug ovs-appctl bfd/set-forwarding true TAB 2>&1)"
AT_CHECK_UNQUOTED([echo "$INPUT" | sed -e '/./,$!d'],
[0], [dnl
-Command format:
-bfd/set-forwarding [[interface]] normal|false|true
])
@@ -145,8 +130,6 @@ AT_CHECK_UNQUOTED([GET_AVAIL(${INPUT})], [0])
INPUT="$(bash ovs-command-compgen.bash debug ovs-appctl bfd/set-forwarding p1 false TAB 2>&1)"
AT_CHECK_UNQUOTED([echo "$INPUT" | sed -e '/./,$!d'],
[0], [dnl
-Command format:
-bfd/set-forwarding [[interface]] normal|false|true
])
OVS_VSWITCHD_STOP
@@ -181,8 +164,6 @@ p1
INPUT="$(bash ovs-command-compgen.bash debug ovs-appctl lacp/show p1 TAB 2>&1)"
AT_CHECK_UNQUOTED([echo "$INPUT" | sed -e '/./,$!d'],
[0], [dnl
-Command format:
-lacp/show [[port]]
])
OVS_VSWITCHD_STOP
@@ -244,8 +225,6 @@ AT_CHECK_UNQUOTED([GET_AVAIL(${INPUT})],
INPUT="$(bash ovs-command-compgen.bash debug ovs-appctl ofproto/trace ovs-dummy "in_port(123),mac(),ip,tcp" "ABSJDFLSDJFOIWEQR" TAB 2>&1)"
AT_CHECK_UNQUOTED([echo "$INPUT" | sed -e '/./,$!d'],
[0], [dnl
-Command format:
-ofproto/trace {[[dp_name]] odp_flow | bridge br_flow} [[-generate|packet]]
])
@@ -301,8 +280,6 @@ AT_CHECK_UNQUOTED([GET_AVAIL(${INPUT})], [0])
INPUT="$(bash ovs-command-compgen.bash debug ovs-appctl vlog/set abcd TAB 2>&1)"
AT_CHECK_UNQUOTED([echo "$INPUT" | sed -e '/./,$!d'],
[0], [dnl
-Command format:
-vlog/set {spec | PATTERN:destination:pattern}
])
OVS_VSWITCHD_STOP
@@ -319,7 +296,6 @@ AT_CHECK_UNQUOTED([echo "$INPUT" | sed -e 's/[ \t]*$//' | sed -e '/./,$!d'], [0]
INPUT="$(bash ovs-command-compgen.bash debug ovs-appctl ERROR TAB 2>&1)"
AT_CHECK_UNQUOTED([echo "$INPUT" | sed -e 's/[ \t]*$//' | sed -e '/./!d'],
[0], [dnl
-Command format:
])
@@ -343,7 +319,6 @@ ${MATCH}
INPUT="$(bash ovs-command-compgen.bash debug ovs-appctl --target target_daemon ERROR SUBCMD TAB 2>&1)"
AT_CHECK_UNQUOTED([echo "$INPUT" | sed -e 's/[ \t]*$//' | sed -e '/./!d'],
[0], [dnl
-Command format:
])])