File: testall

package info (click to toggle)
ufoai 2.5-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 82,120 kB
  • sloc: cpp: 225,232; python: 5,111; ansic: 4,133; php: 2,209; perl: 1,931; sh: 1,505; xml: 1,115; makefile: 406; sed: 11
file content (19 lines) | stat: -rw-r--r-- 463 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
_testall()
{
	local cur prev opts
	COMPREPLY=()
	cur="${COMP_WORDS[COMP_CWORD]}"
	prev="${COMP_WORDS[COMP_CWORD-1]}"
	opts="--list -l --help -h --console -c --list -l --output-prefix= -a --automated"

	suites_opts=
	# allow ./testall
	PATH=$PATH:`pwd`
	for x in `testall -l | sed '1d' | sed 's/\* //'`; do
		suite=${x/\* /}
		opts="${opts} --only-${suite} --disable-${suite}"
	done

	COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
}
complete -F _testall testall