1695 Commits

Author SHA1 Message Date
Freddy Vulto
22675a60f7 Reviewed tests f* 2009-07-17 23:15:15 +02:00
Freddy Vulto
55bc44b035 Reviewed tests e*
Fixed `assert_complete()' to remove an optional (partial) argument from
`cmd' when expecting `cmd + longestCommonPrefix'.
Added `prompt' argument to procs `assert_bash_exec()' &
`sync_after_int()'
2009-07-17 16:15:02 +02:00
Freddy Vulto
f615d17cb6 tsuite) Only test completions if installed
Some tests failed with label `failed', which is incorrect because the
completions just weren't installed.  Completions weren't installed
because the commands to complete weren't installed.
Fixed so that if commands aren't available, the tests fail with label
`unsupported'.
2009-07-16 22:51:18 +02:00
Freddy Vulto
2d905413fb (testsuite) Removed local short timeout values
The local timeout settings `-timeout 1' in some loops seemed to cause
inpredictable results, e.g. with `./runCompletion dkpg.exp' since this
test has a long list to match.  Sometimes the `spawn_id' was gone before
the `teardown' method was called.
Removing the short timeout seems to give more predictable results.
2009-07-16 22:47:44 +02:00
Ville Skyttä
c6e916bece Add reference to Ubuntu bug about disabling PostgreSQL database and user completions. 2009-07-14 21:13:43 +03:00
Ville Skyttä
cbe81a50da Add link to Ubuntu bug about disabling database and user completions. 2009-07-14 21:11:48 +03:00
Ville Skyttä
e34f96e50d Associate *.po with poedit, gtranslator, kbabel, and lokalize. 2009-07-13 18:28:42 +03:00
Freddy Vulto
acdf4ca55e (testsuite) Improve `cancel' with dummy print job
A dummy print job is now created (and removed/cancelled) when testing `cancel' completion.
To run the test:

    cd test && ./runCompletion cancel.exp
2009-07-12 21:41:56 +02:00
Freddy Vulto
7cdd205e76 (testsuite) `assert_complete' uses common prefix
Fix `assert_complete' to expect the longest common prefix to be presented as completion.
When trying to do a:

    package require textutil::string

it appeared DejaGnu overwrites `unknown', the tcl function that is called to attempt autoloading.  A workaround is used for tcl auto-loading to work: `init.tcl' is reloaded to restore the original `unknown' function:

    source [file join [info library] init.tcl]

See also: http://fvue.nl/wiki/DejaGnu:_proc_"tclPkgUnknown_..."_does_not_exist
2009-07-12 21:37:57 +02:00
Freddy Vulto
262c91b486 [testsuite] Improved `match_items()' sorting
`match_items()' now uses bash sort instead of tcl lsort.
The difference in sorting happens because bash and tcl use a different sorting order:
* bash sort uses the current locale's collating sequence and character set
* tcl lsort uses a C-like sort order where each character is sorted according to its numeric value
See also: http://fvue.nl/wiki/Tcl:_Lsort_output_differs_from_bash_sort

This fix allows the `dpkg -L' test to compare all packages.  To run the test:

   ./runCompletion dpkg.exp
2009-07-10 23:08:11 +02:00
Freddy Vulto
3fe193f81a Fix completing multiple hosts (Debian: #535585)
Fixed `_known_hosts_real' to allow for multiple patterns in ssh config, e.g.:

    Host foo.example.net bar.example.net

IFS was set to just newline (\n), whereas `compgen -W' relies on IFS
being space-tab-newline ( \t\n) to expand hostnames which are separated
by whitespace.
Tests are updated as well (added host `jar' to config).  To run the tests:

    ./runUnit _known_hosts_real.exp
2009-07-07 23:05:03 +02:00
Ville Skyttä
0c44194be2 Improve xmllint --dtdvalid, --relaxng, --schema and --schematron completions. 2009-07-07 18:50:56 +03:00
Ville Skyttä
0f18d2327a Add xmlwf completion. 2009-07-07 18:48:22 +03:00
Freddy Vulto
25e4eb6df3 Gave _known_hosts_real mandatory argument CWORD
The option `-h hostname' to `_known_hosts_real' is removed.
2009-07-03 22:28:13 +02:00
Ville Skyttä
a050115f2f Rephrase OO tools -> applications. 2009-07-03 00:53:49 +03:00
Ville Skyttä
c78e27cd7c Associate .tsv with oocalc. 2009-07-02 22:57:01 +03:00
Ville Skyttä
2b56b95caa Associate OOXML/MS Office 2007 extensions with OpenOffice tools. 2009-07-02 22:54:05 +03:00
David Paleino
9f192ba339 Remove -k from avahi-browse call
The original call to avahi-browse also had "-k", to avoid
    lookups into avahi's services DB. We don't need the name
    of the service, and if it contains ";", it may mistify
    the result. But on Gentoo (at least), -k isn't available
    (even if mentioned in the manpage), so...
2009-06-20 22:45:14 +02:00
Freddy Vulto
2770bc6927 Merge branch 'fvu' 2009-06-20 09:37:50 +02:00
Freddy Vulto
8858c8df33 Tidied getopts-check loop in _known_hosts_real 2009-06-20 09:34:46 +02:00
David Paleino
976fafa07e Oops :) 2009-06-20 09:17:06 +02:00
David Paleino
1ab50e301e Merge branch 'master' of git+ssh://git.debian.org/git/bash-completion/bash-completion 2009-06-20 09:14:35 +02:00
David Paleino
1e532f0f2b Check whether avahi-daemon is started 2009-06-20 09:14:08 +02:00
Freddy Vulto
c769eeaf8c (testsuite) Centralized tcl function `get_hosts' 2009-06-19 14:56:36 +02:00
Freddy Vulto
49f739a515 Make finger test use new 'assert_complete_partial' 2009-06-19 14:47:34 +02:00
Freddy Vulto
67eedb203f Added ssh completion tests:
- First argument shouldn't complete with commands
- Tab should complete partial hostname

To run the tests: $ cd test && ./runCompletion ssh.exp

Added test library function: assert_complete_partial
2009-06-19 14:23:57 +02:00
Freddy Vulto
362090a160 Updated test _known_hosts_real.
Added hosts retrieved by avahi-browse.
2009-06-19 12:33:50 +02:00
Freddy Vulto
8358f35def Merge branch 'master' of git+ssh://fvu-guest@git.debian.org/git/bash-completion/bash-completion 2009-06-18 21:52:32 +02:00
Freddy Vulto
127eaafb54 Fixed calls to _known_hosts_real
Made _known_hosts_real raise error if there are unprocessed arguments.
2009-06-18 21:51:01 +02:00
Ville Skyttä
d9cce38567 Eliminate redundant code. 2009-06-18 20:41:15 +03:00
Ville Skyttä
8b2416c180 Invoke the actual mplayer/mencoder command being completed (with full path) to get various completions instead of simply "mplayer" or "mencoder". 2009-06-18 20:36:09 +03:00
David Paleino
ab36c8d29d Added avahi-discovered hosts to _known_hosts_real() (Debian: #518561) 2009-06-18 13:12:52 +02:00
David Paleino
f4c8afb826 It was really Freddy's fix 2009-06-18 11:55:09 +02:00
Freddy Vulto
cdf0e82686 Fix contrib/ssh command completion
Only complete with command names (compgen -c) if argc > 1
2009-06-17 23:45:00 +02:00
Freddy Vulto
043fe4dd4b Reviewed tests d* 2009-06-15 23:17:39 +02:00
Freddy Vulto
881bce9618 Reviewed tests b* & c* 2009-06-14 16:22:25 +02:00
Freddy Vulto
3d723502c9 Reviewed tests a* 2009-06-14 15:20:38 +02:00
Freddy Vulto
ad1b60a3de Refactored xhost & alias completion tests 2009-06-14 13:15:06 +02:00
Freddy Vulto
33118de1f6 Refactored finger test 2009-06-14 12:18:24 +02:00
Freddy Vulto
14d0ee38ac Fix _known_hosts calling _known_hosts_real
Added -h argument.  Added "deprecated" notes.
2009-06-13 23:54:14 +02:00
Freddy Vulto
2afa079ff5 Changed calls to _known_hosts > _known_hosts_real 2009-06-13 12:25:36 +02:00
Freddy Vulto
1f63e21ff5 Fix _user_at_host completion
Fixed _known_hosts_real user completion.
Added test for `finger'.  To execute:

    $ cd test && ./runCompletion finger.exp
2009-06-13 11:34:39 +02:00
Freddy Vulto
b1d869cbf2 Renamed unit test _known_hosts > _known_hosts_real 2009-06-13 08:42:22 +02:00
Freddy Vulto
0b19577ed9 Added -h HOST option to _known_hosts_real
Modified call to _known_hosts_real in ssh, vncviewer and xhost completions.
2009-06-13 08:38:52 +02:00
Ville Skyttä
8c24c1429a Comment spelling fixes. 2009-06-12 20:45:35 +03:00
Ville Skyttä
40073816ff Add vpnc and xmms to bashcomp_DATA, sort alphabetically. 2009-06-12 20:41:52 +03:00
Ville Skyttä
fb58599470 Use _split_longopt in mailman. 2009-06-12 20:26:54 +03:00
Ville Skyttä
4f04c9553d Add 'have foo's. 2009-06-12 20:24:00 +03:00
Ville Skyttä
4956b5fef5 Use _split_longopt in heimdal. 2009-06-12 20:19:20 +03:00
Ville Skyttä
eea696d9cc Use _split_longopt in bluez-utils. 2009-06-12 20:18:09 +03:00