1950 Commits

Author SHA1 Message Date
Ville Skyttä
97e3778cb2 Code cleanups, indentation and line wrapping fixes, comment improvements. 2009-11-28 12:47:48 +02:00
Ville Skyttä
c948a3d411 Reuse "esc" more in scp escaping. 2009-11-28 12:47:48 +02:00
Ville Skyttä
3a44188d52 Fix scp completion for paths containing other backslash escaped chars besides spaces. 2009-11-28 12:47:48 +02:00
Ville Skyttä
ff0f741dcf Fix completion of remote scp filenames with spaces.
Backslash escaping adds 3 backslashes, of which we want to remove 2,
not 4 when unescaping.
2009-11-28 12:47:48 +02:00
David Paleino
3191d14a55 Wrap lines 2009-11-28 11:06:11 +01:00
David Paleino
ea2a5d2aed Fix errors in the asciidoc ([[]] indicates a template in asciidoc) 2009-11-28 11:05:36 +01:00
Ville Skyttä
487088e1d2 Weed out duplicate known hosts files to check.
https://bugzilla.redhat.com/show_bug.cgi?id=541423#c4
2009-11-26 23:49:32 +02:00
Ville Skyttä
76de7c2984 Fix handling of known hosts files starting with ~.
https://bugzilla.redhat.com/show_bug.cgi?id=541423#c3

Done by adding the eval back.  The only thing that this breaks AFAIK
is handling of known hosts filenames that have more than one
consecutive space in them, but I couldn't figure out how to get both
to work and IMO support for files starting with ~ is much more
important.
2009-11-26 23:30:04 +02:00
Ville Skyttä
6f921d563b Fix reading rest of user/global known hosts files when the first one is not readable.
https://bugzilla.redhat.com/show_bug.cgi?id=541423#c2

As a side effect, this simplifies things somewhat and grabs user and
global known hosts filenames from config files with one command
instead of doing one for each.
2009-11-26 21:59:12 +02:00
Freddy Vulto
a9717be57b (testsuite) Moved location of making-list-unique
Moved making-expected-list-unique out of `match_items()' & `get_hosts()'
into `assert_complete()' because the former are low level functions and
items need not necessarily be unique.  They only need to be unique when
we're actually testing *completions*.
2009-11-25 22:31:29 +01:00
Freddy Vulto
8c94bf6944 (testsuite) Fix superfluous `&&' in get_hosts_avahi() 2009-11-25 21:47:58 +01:00
Ville Skyttä
032483036f Avoid extended globbing in case labels per current style guidelines. 2009-11-23 20:16:30 +02:00
Ville Skyttä
b424bfe37b Use [[ ]] when appropriate per current style guidelines. 2009-11-23 20:08:52 +02:00
Ville Skyttä
29baa6b720 Fix modprobe -r completion when a path to modprobe is specified. 2009-11-23 17:32:48 +02:00
Ville Skyttä
ef025a78ab Try to install/test arch completion only for the mailman one, not coreutils/util-linux-ng. 2009-11-23 00:29:16 +02:00
Freddy Vulto
4230265870 Fix completion of filenames containing colon.
This fixes the auto tests for `finger' and `ssh' on machines where an IPv6 host
"::1" is mentioned in /etc/hosts.
Added helper function __ltrim_colon_completions.

To run the tests:

    ./runCompletion finger.exp ssh.exp
2009-11-22 22:22:35 +01:00
David Paleino
8f42adfa8d Style policy: don't use fancy globbing in case labels 2009-11-22 11:43:26 +01:00
Freddy Vulto
1eb6c14ac1 fix typo in undoing cpio globbing 2009-11-22 09:30:22 +01:00
David Paleino
87fbdc9c18 contrib/cpio: don't use globbing, as per new team policy 2009-11-22 08:33:00 +01:00
David Paleino
14e373d3f1 Remove generated HTML documentation, add it to gitignore 2009-11-22 08:30:16 +01:00
David Paleino
9a8fb49fe4 contrib/cpio: added missing completions for -?, --help, --license, --usage, --version and (-p) --to-stdout (Debian: #557436) 2009-11-22 08:22:58 +01:00
David Paleino
29f4b10890 Added colordiff completion, same as diff 2009-11-21 14:38:41 +01:00
Freddy Vulto
75969454c0 (testsuite) Make expected lists unique 2009-11-21 10:18:54 +01:00
Ville Skyttä
08c51bccbd Add style guide items for case label globbing and [[ ]] vs [ ]. 2009-11-20 22:54:44 +02:00
Freddy Vulto
2a506ec3f7 (testsuite) Set TERM=dummy only for non-cron
Err, TERM=linux also causes errors when tests are run via cron.
Reset TERM=dummy.
Workaround is to do a CRON=running from within the cron job and only set
TERM=dummy when not run via cron.
2009-11-18 23:45:16 +01:00
Ville Skyttä
2888874fa9 Testsuite: don't use pidof to check if avahi-daemon is running, cf. commit bb8912b06ff09f8fed253e7e5b14916e38a48733. 2009-11-18 23:33:06 +02:00
Freddy Vulto
1bb351e227 (testsuite) Set TERM=linux
The TERM=dummy setting causes backspaces (^H) to appear in stdout when running
from cron.  Changing to TERM=linux should fix the ^H's in stdout AND the bug of
`meta_on' or `meta_off' escape sequences in stdout, caused by a bug in
supposedly libreadline5:

http://old.nabble.com/-PATCH-:-fix-libreadline5-linked-applications-sending-meta_on-or-meta_off-to-stdout-td25557585.html

Steps to reproduce output of ^H with TERM=dummy:

    $ batch
    warning: commands will be executed using /bin/sh
    at> ./runUnit _known_hosts_real.exp --debug < /dev/tty40
    at> ^D

NOTE: You need to connect a terminal (< /dev/tty..) to the test suite
      when running from cron.  See also doc/testing.txt, "Running tests via
      cron".
2009-11-15 21:51:46 +01:00
Ville Skyttä
571e2fb7e1 Testsuite: avoid readline escape junk at beginning of line.
See e.g. http://bugs.gentoo.org/246091
2009-11-10 20:45:59 +02:00
Freddy Vulto
8a80987373 (testsuite) Improved removing cword from cmd
- Refactored code to new function `_remove_cword_from_cmd()'
- Added `cword' parameter to `assert_complete()' and `assert_complete_dir()':

    @param string $cword  (optional) Last argument of $cmd which is an
        argument-to-complete and to be replaced with the longest common
        prefix of $expected.  If empty string (default), `assert_complete'
        autodetects if the last argument is an argument-to-complete by
        checking if $cmd doesn't end with whitespace.  Specifying `cword'
        is only necessary if this autodetection fails, e.g.  when the last
        whitespace is escaped or quoted, e.g. "finger foo\ " or
        "finger 'foo "
2009-11-07 09:57:11 +01:00
Freddy Vulto
573844daa2 (testsuite) Test lftpget only if available 2009-11-07 09:28:14 +01:00
Ville Skyttä
36eb06af6b Extract CD/DVD completion from k3b into general functions, use them in mplayer. 2009-11-04 23:12:44 +02:00
Ville Skyttä
db7d2833df Indentation/linewrap fixes. 2009-11-04 00:24:28 +02:00
Ville Skyttä
41c675e749 sed usage portability fixes: avoid semicolon separated statements in one -e. 2009-11-04 00:16:06 +02:00
Ville Skyttä
ef46331012 Fix service argument completion. 2009-11-03 23:36:01 +02:00
Ville Skyttä
5b54c41de5 Fix javadoc, lvm, and mkinitrd (_count_args) local variable leaks. 2009-11-03 22:49:14 +02:00
Ville Skyttä
1ff30048fa Add trivial test cases for abook, lftpget, and wtf. 2009-11-03 22:47:35 +02:00
Ville Skyttä
c820944d2e Be stricter when finding long options in _longopt. 2009-11-03 22:28:10 +02:00
Ville Skyttä
93060b4133 Add k3b completion. 2009-11-03 22:24:41 +02:00
Ville Skyttä
a58062400d Note POSIX spec. 2009-11-03 22:14:44 +02:00
Ville Skyttä
4790b1a0c6 sed usage portability fixes: avoid \+ 2009-11-03 22:04:46 +02:00
Ville Skyttä
a17b2dbc73 Don't assume that apt-get, dpkg-deb, and dpkg-reconfigure are available. 2009-11-03 21:58:22 +02:00
Ville Skyttä
ac43cd55cb Indentation fixes. 2009-11-03 20:14:46 +02:00
Freddy Vulto
36bdc2ecad (testsuite) Updated doc "Running tests via cron" 2009-11-02 19:56:55 +01:00
Freddy Vulto
79cffa2d79 (testsuite) Make `configure' test pass 2009-11-02 19:42:03 +01:00
Ville Skyttä
ac644578e0 More compgen -W instead of embedding user input in sed/awk/grep fixes. 2009-11-01 21:01:18 +02:00
Ville Skyttä
3725168d8a Combine dcop and qdbus completions into the latter, they're the same. 2009-11-01 20:52:04 +02:00
Ville Skyttä
a6b227992e Drop unused compstr variable. 2009-11-01 20:45:59 +02:00
Ville Skyttä
6394f47a7c Add basic dir option argument completion for configure. 2009-11-01 20:41:57 +02:00
Freddy Vulto
988026a67e Merge branch 'fvu' 2009-11-01 10:09:18 +01:00
Freddy Vulto
6925ad5081 Mutt fixes
- Added support for `-F configfile'.  This enables using a specially
  crafted muttrc for automated testing.
- Centralized call to _get_cword
- Used _get_pword
- Specified non-wordbreak characters to _get_cword() & _get_pword() for
  bash-4.
- Added automated tests for -f and -A
- Fixed test suite's assert_complete() (test/library.exp) to drop only
  the last element
2009-11-01 10:04:06 +01:00