File: t6100-completion-help.sh

package info (click to toggle)
todotxt-cli 2.10-4~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 748 kB
  • sloc: sh: 5,357; makefile: 50
file content (20 lines) | stat: -rwxr-xr-x 772 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
#

test_description='Bash help completion functionality

This test checks todo_completion of actions for usage help.
'
. ./actions-test-lib.sh
. ./test-lib.sh
make_action "zany"
make_action "aardvark"

readonly ACTIONS='add a addto addm append app archive command del rm depri dp do help list ls listaddons listall lsa listcon lsc listfile lf listpri lsp listproj lsprj move mv prepend prep pri p replace report shorthelp'
readonly ADDONS='aardvark zany'

test_todo_completion 'all actions after help' 'todo-txt help ' "$ACTIONS $ADDONS"
test_todo_completion 'all actions after command help' 'todo-txt command help ' "$ACTIONS $ADDONS"
test_todo_completion 'actions beginning with a' 'todo-txt help a' 'add a addto addm append app archive aardvark'

test_done