Ville Skyttä
997ecac0f0
samba: Use _parse_help, add bunch of option completions and basic test cases.
2011-05-04 22:47:05 +03:00
Ville Skyttä
21c5a0eb9d
phing: Reuse ant completion for it, add basic test case.
2011-05-03 09:46:30 +03:00
Ville Skyttä
1126c831b8
testsuite: Don't define $BASH_COMPLETION here either.
2011-05-03 09:33:18 +03:00
David Paleino
00a6abb136
Also get rid of BASH_COMPLETION_DIR in the testsuite
2011-05-02 18:41:36 +02:00
Ville Skyttä
0a40e980cb
testsuite: Add basic grpck, passwd, and pwck test cases.
2011-05-02 14:37:33 +03:00
Ville Skyttä
b202bc60f6
cppcheck: New completion.
2011-05-01 12:13:32 +03:00
Ville Skyttä
e2c57c5966
Convert many completions to use _parse_help() instead of hardcoded option lists.
2011-04-28 21:21:31 +03:00
Ville Skyttä
393ab1f650
testsuite: Add basic mii-diag and mii-tool test cases.
2011-04-28 21:17:50 +03:00
Ville Skyttä
3998a70dd9
route: Don't leak local $opt.
2011-04-27 23:37:44 +03:00
Ville Skyttä
fabbec105c
testsuite: Add bunch of simple shadow util test cases.
2011-04-27 23:17:58 +03:00
Ville Skyttä
3a39ac6676
chsh: Use _allowed_users instead of plain compgen -u.
2011-04-27 18:40:16 +03:00
Ville Skyttä
976ba44825
Complete screen on commands (Alioth: #312164 , RedHat: #547852 ).
2011-04-25 15:51:33 +03:00
Ville Skyttä
a87086b7d4
Turn off default compopt when completing dirs in _longopt().
...
Otherwise -o default kicks in in cases where we have no dir
completions and ends up completing files.
2011-04-24 19:54:50 +03:00
Ville Skyttä
ea90dc1a86
Use _split_longopt() in rsync.
2011-04-24 18:50:40 +03:00
Ville Skyttä
6589a0d61b
Drop support for bash < 4.1, clean up no longer needed low hanging cruft.
2011-04-21 12:20:59 +03:00
Ville Skyttä
a47aff8481
Fix local variable leaks from bluez completions.
2011-04-17 13:44:06 +03:00
Ville Skyttä
1ffb918b4e
Support tildes when recursively sourcing muttrc files (Debian: #615134 ).
2011-04-14 22:17:29 +03:00
Ville Skyttä
f0eac44ac9
(testsuite) Test java -classpath in addition to -cp.
2011-04-06 18:51:22 +03:00
Ville Skyttä
c691c6e998
Add CHANGES entry and test case for previous java completion change.
2011-04-06 18:49:06 +03:00
Ville Skyttä
ec25abac89
(testsuite) Make ri basic test case more likely to work.
...
Plain "ri " completion returns 3729 entries on my box which is way
more than fits into the expect buffer we have in effect.
2011-04-01 20:09:42 +03:00
Ville Skyttä
c398b1c56f
(testsuite) Fix get_hosts option docs.
2011-03-29 23:27:51 +03:00
Freddy Vulto
68e9a8e6eb
(testsuite) Add -unsorted option to _get_hosts()
...
_known_hosts_real tests were failing after commit 81794a9:
FAIL: Hosts should be put in COMPREPLY
FAIL: Hosts should have username prefix and colon suffix
This is because tcl's get_hosts() is now doing a unique sort, but bash
_known_hosts_real() IS returning duplicates relying on bash's compgen/complete
to remove the duplicates). Fixed by calling _get_hosts -unsorted.
2011-03-27 23:12:14 +02:00
Ville Skyttä
a73774c833
Fix regressions and further tweak previous java completion patch.
...
Fix inner class regression, adapt test suite, turn off nospace for
single class completions, protect -o nospace for bash < 4.
2011-03-24 20:45:16 +02:00
Ville Skyttä
2c78ae3ea1
(testsuite) Add basic xzdec test case.
2011-03-21 19:46:13 +02:00
Ville Skyttä
a6354b8107
Add reptyr completion.
2011-03-12 12:04:02 +02:00
Ville Skyttä
a34a380410
(testsuite) Add basic puppet test case.
2011-02-26 15:58:20 +02:00
Ville Skyttä
ab66ae79c2
(testsuite) Add basic mdadm test case.
2011-02-26 15:47:02 +02:00
Ville Skyttä
6042cbe2f5
Split rpm and rpmbuild completions and improve them both.
...
The option sets are different, and rpm should not have been used to
build packages since rpm 4.0, and could not have been used for that
since rpm 4.1.
2011-02-10 23:51:26 +02:00
Ville Skyttä
f96e15428c
(testsuite) Add basic gendiff test case.
2011-02-07 21:01:01 +02:00
Ville Skyttä
cb01d8ea54
Add javaws completion.
2011-02-06 15:15:20 +02:00
Ville Skyttä
81794a9dcf
(testsuite) Avoid duplicates in get_hosts() return value.
2011-02-05 12:27:35 +02:00
Ville Skyttä
80312be9af
(testsuite) Use get_hosts() in xhost tests.
2011-02-05 12:24:49 +02:00
Ville Skyttä
74128a73ce
Add mktemp(1) completion.
2011-01-24 00:20:32 +02:00
Guillaume Rousse
55c38e271c
minimal tests for xfreerdp completion
2011-01-17 22:26:50 +01:00
Ville Skyttä
d6043b9609
Don't leak $options from iscsiadm completion, add basic test case.
2011-01-17 22:14:18 +02:00
Ville Skyttä
b1dbd1d712
(testsuite) Fix sysctl test case (Alioth: #312909 ).
2011-01-05 22:59:05 +02:00
Ville Skyttä
a0e7299717
(testsuite) assert_complete_one() fixes, revealed by ssh.exp.
2010-11-23 09:17:53 +02:00
Freddy Vulto
5a38f828d4
(testsuite) Split assert_complete() into
...
assert_complete_many() and assert_complete_one().
Fix ssh completion now that match_items() also matches on prompt.
2010-11-22 22:57:00 +01:00
Ville Skyttä
4b2c511e2d
Get python options with _parse_help().
2010-11-21 20:29:45 +02:00
Ville Skyttä
96908c87f1
Add lsof(8) completion.
2010-11-21 19:59:38 +02:00
Ville Skyttä
e9bf8773ec
Add perl -V completion.
2010-11-19 22:12:43 +02:00
Ville Skyttä
43ec91619d
Add perl -m-/-M- completion.
2010-11-19 22:11:48 +02:00
Ville Skyttä
ee1374f70b
Add some perl option non-completions.
2010-11-19 22:10:46 +02:00
Freddy Vulto
11da957e45
(testsuite) `match_items()' matches on bash-prompt
...
Also made `match_items()' more strict about matching
space/newline/prompt after the last item.
Added options to match_items():
- end-newline
- end-prompt
- end-space
and transferred them to other functions.
Function `assert_complete()' now has a `-nospace' option to explicitly
disallow a space after a completion...
Function `assert_bash_list()' now expects a single item to be followed
by a newline.
2010-11-17 23:36:58 +01:00
Freddy Vulto
7e8fe15484
Merge branch 'master' of git+ssh://git.debian.org/git/bash-completion/bash-completion
2010-11-16 23:09:59 +01:00
Freddy Vulto
69f9c7c77e
(testsuite) Fix _count_args tests to output newline
...
assert_bash_list() expects a newline terminated list
Plus small fixes to assert_bash_list_dir()
2010-11-16 23:06:13 +01:00
Ville Skyttä
c4eaba636f
(testsuite) Add some perl module completion test cases (Alioth: #312832 ).
...
The -MFile::Sp and -MFile::Spec::Func test cases fail at the moment
but are not marked as expected failures, hoping for a quick fix for
the above bug ;)
2010-11-16 23:20:46 +02:00
Ville Skyttä
07f76d8f6c
(testsuite) Fix cvs, cvsps, java, lftp, and wol fallout from commit c86b336.
2010-11-13 11:15:47 +02:00
Ville Skyttä
be5c8f4249
(testsuite) Ignore changed OLDPWD in xz.exp.
2010-11-13 10:51:31 +02:00
Freddy Vulto
c86b336769
(testuite) Fix tests to run with autotools' make distcheck
...
File locations are prefixed with `$::srcdir' so that `make distcheck' can
execute the test suite using a relative path.
The current working directory is removed from the test-suite-bash-prompt.
Furthermore, no more dynamic creation of files in dir $::srcdir/fixtures since
this dir is read-only during `make distcheck'. Instead create dynamic files in
$TESTDIR/tmp
The test suite uses these "directory" variables
tcl bash description
------------ ----------- ------------------------------------
$::srcdir $SRCDIR where `fixtures' reside, relative
$::srcdirabs $SRCDIRABS where `fixtures' reside, absolute
$::TESTDIR $TESTDIR where `runtest' is invoked, absolute
2010-11-12 23:35:36 +01:00