summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Use find_unique_completion_pair in chown testCrestez Dan Leonard2010-02-031-20/+15
|
* Add a find_unique_completion_pair proc.Crestez Dan Leonard2010-02-032-0/+104
| | | | | Given a list of items this proc finds a (part, full) pair so that when completing from $part $full will be the only option.
* (testsuite) Fix chown test "crash" if root user/group is N/A (Alioth: 312306).Leonard Crestez2010-02-011-4/+8
|
* (testsuite) Fix assert_bash_type perldoc > perlFreddy Vulto2010-01-311-1/+1
| | | | | | Make `assert_bash_type' reflect bash-side where `have perl' is checked, and not perldoc, to determine whether `perldoc' completion should be installed.
* (testsuite) Sync fmt test with other longopt only tests.Ville Skyttä2010-01-301-1/+3
|
* (testsuite) Don't fail long option tests if command has no long options.Ville Skyttä2010-01-3019-21/+59
| | | | | | | | Many basic commands do not have long options on non-GNU systems, mark such tests as unsupported (if the command doesn't respond to --help) instead of failing. Implemented with the new $failcmd parameter to assert_exec().
* (testsuite) Add java -jar test.Ville Skyttä2010-01-301-0/+6
|
* (testsuite) Add some java classpath tests.Ville Skyttä2010-01-307-0/+22
|
* Merge branch 'fvu'Freddy Vulto2010-01-293-52/+198
|\
| * Fix _usergroup, cpio and chown completionsFreddy Vulto2010-01-293-52/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve test suite. Thanks to Leonard Crestez (Alioth: #311396, Debian: #511788). `assert_complete' is improved. It proved difficult to tell tcl to ignore backslash escapes, e.g. the `\b' is no BACKSPACE but a literal `b'. The added function `split_words_bash' should to the trick now. Added function `assert_no_complete' which can also be reached by calling `assert_complete' with an empty `expected' argument: assert_complete "" qwerty
* | (testsuite) Add missing assert_env_unmodified tests.Ville Skyttä2010-01-283-0/+6
| |
* | (testsuite) Always look for command availability before testing completion.Ville Skyttä2010-01-2852-63/+157
| |
* | (testsuite) Include shopt states in saved environment.Ville Skyttä2010-01-281-2/+2
|/
* (testsuite) Use kern instead of fs to test sysctl completion.Ville Skyttä2010-01-241-1/+3
| | | | | FreeBSD does not have fs.* (has vfs.* instead). Linux has kernel.*, FreeBSD kern.*.
* (testsuite) Use File::Path instead of HTML::Parser to test perldoc.Ville Skyttä2010-01-241-4/+4
| | | | HTML::Parser is not a "core" Perl module.
* (testsuite) Add cvs roots completion test.Ville Skyttä2010-01-241-1/+17
|
* (testsuite) Fix cvsps non-option completion test, add test for options.Ville Skyttä2010-01-242-2/+20
| | | | | "cvsps " completion failed when there was nothing in ~/.cvspass, create a fixture for generic cvs use containing one, and use it.
* Fix NFS mounts completion (Alioth: #312285).Leonard Crestez2010-01-243-0/+48
|
* (testsuite) Fixed finger testFreddy Vulto2010-01-242-10/+23
| | | | | | | | Added test suite function `get_known_hosts' which calls bash's `_known_hosts_real'. Also the `finger' test "Tab should complete partial hostname" now skips hosts starting with character in COMP_WORDBREAKS leaving that to test for another test case. See also: https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312220&group_id=100114
* (testsuite) Add basic tests for make.Ville Skyttä2010-01-192-0/+23
|
* (testsuite) Enable cvs test.Ville Skyttä2010-01-191-0/+3
|
* (testsuite) Enable gzip and bzip2 tests.Ville Skyttä2010-01-182-0/+6
|
* (testsuite) Add check for awk with POSIX character classes.Ville Skyttä2010-01-171-1/+4
|
* (testsuite) Don't fail dcop test if a DCOP server is not running.Ville Skyttä2010-01-161-1/+3
|
* Weed out look completions not starting with current word.Ville Skyttä2010-01-161-1/+3
| | | | | | | | Some versions of the default word list for look may return non-completable entries (e.g. due to sort order mismatch -- dictionary vs non-dictionary one, case sensitivity etc -- between sort order in default word list and look's defaults). As a side effect, fixes also the test case when a lot of words are returned.
* (testsuite) cd to correct top level dir first in runLint.Ville Skyttä2010-01-161-0/+3
|
* (testsuite) It's not the empty alternative that's unportable with sed, it's \|.Ville Skyttä2010-01-161-2/+2
|
* (testsuite) Add simple "lint" script for finding common issues.Ville Skyttä2010-01-161-0/+34
| | | | | Currently flags one potential awk issue in wireless-tools, but that should be a non-issue because wireless-tools is a Linux thing.
* (testsuite) Check rpm -q completion against actual installed packages.Ville Skyttä2010-01-161-12/+4
| | | | | | | While at it, drop --eval completion test because I couldn't get it to work with assert_complete (probably because I couldn't escape the command properly here, see --eval|-E completion in contrib/rpm), and no longer needed match_max fiddling.
* (testsuite) Allow possibly leading whitespace in match_items() chunks > 1.Ville Skyttä2010-01-161-1/+2
| | | | Thanks to Freddy Vulto.
* Add ipv6calc completion.Adrian Friedli2010-01-142-0/+29
|
* (testsuite) assert_exec() default test title grammar fix.Ville Skyttä2010-01-141-1/+1
|
* (testsuite) Escape more regexp metacharacters.Ville Skyttä2010-01-091-3/+3
|
* (testsuite) Add simple rpm completion tests.Ville Skyttä2010-01-092-0/+40
|
* (testsuite) Fix ypmatch test case.Ville Skyttä2010-01-061-1/+1
| | | | Completion is done for ypmatch's 2nd arg only at the moment.
* (testsuite) FreeBSD and Solaris sed compatibility fixes.Ville Skyttä2010-01-032-4/+6
| | | | | | The linefeed between the final "d" and "}" seems to be significant for these versions of sed. And they are quite anal about comments, so move them outside of the sed statement here.
* Hook up openssl tests, do env modification checks.Ville Skyttä2010-01-032-0/+5
|
* (testsuite) Indentation fixes.Ville Skyttä2010-01-031-11/+11
|
* (testsuite) Remove some obsolete comments.Ville Skyttä2010-01-031-3/+0
|
* (testsuite) Make diff_env() compatible with Solaris sed.Ville Skyttä2010-01-031-6/+10
| | | | It appears to tolerate comments only at beginning of line.
* Merge branch 'master' of ↵Guillaume Rousse2009-12-316-23/+99
|\ | | | | | | git+ssh://git.debian.org/git/bash-completion/bash-completion
| * Fix __reassemble_comp_words_by_ref()Freddy Vulto2009-12-311-0/+18
| | | | | | | | | | Completing "a b " returned cur=b instead of cur=nothing if a wordbreak character was specified.
| * Add rtcwake completion.Ville Skyttä2009-12-302-0/+23
| |
| * (testsuite) Delete directory fixtures/_filedir/a\bFreddy Vulto2009-12-303-23/+45
| | | | | | | | | | | | | | Directories `a\b' and `a*b' are now created run-time on a non-Cygwin/Windows system only. Tests concerning these directories will also be run only on a non-Cygwin/Windows system. (Alioth #312191)
| * Fix __reassemble_comp_words_by_ref()Freddy Vulto2009-12-301-0/+13
| | | | | | | | | | | | | | | | | | On bash-3, completing a b c: with COMP_WORDBREAKS -= : would result in the current word being bc: (Alioth #312190) Added unit test, run via: ./run unit/_get_cword.exp
* | remove individual authorship notices, I'm already present in the AUTHORS fileGuillaume Rousse2009-12-301-1/+1
| |
* | add support for test suiteGuillaume Rousse2009-12-291-0/+9
| |
* | set BASH_COMPLETION_COMPAT_DIR to BASH_COMPLETION_DIR, to avoid sourcing ↵Guillaume Rousse2009-12-291-0/+1
| | | | | | | | actual /etc/completion.d directory before tests
* | ensure HOME is changed before running test, to avoid polluting known_hosts ↵Guillaume Rousse2009-12-291-0/+1
|/ | | | result with tester environment
* Add xsltproc completion (Alioth: #311843).Raphaël Droz2009-12-292-0/+23
|