summaryrefslogtreecommitdiff
path: root/test/lib
Commit message (Collapse)AuthorAgeFilesLines
* (mount) Handle escapes in LABEL= lines from fstab.Crestez Dan Leonard2010-02-151-1/+7
|
* (mount) Split __linux_fstab_unescape function. Deal with \ at the end of ↵Crestez Dan Leonard2010-02-091-0/+17
| | | | strings.
* (mount) Make mount work properly with ' in fstabCrestez Dan Leonard2010-02-091-0/+6
|
* (mount) Make it clear that $' strings are not supportedCrestez Dan Leonard2010-02-091-5/+4
|
* (mount) Cleanup mount tests and test-fstab; fix obvious errors.Crestez Dan Leonard2010-02-091-2/+9
|
* (testsuite) mount.exp: Create a mount-line completion which reads from a ↵Crestez Dan Leonard2010-02-041-2/+48
| | | | file instead of global fstab.
* (testsuite) Fix chown test "crash" if root user/group is N/A (Alioth: 312306).Leonard Crestez2010-02-011-4/+8
|
* (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-301-0/+20
|
* Merge branch 'fvu'Freddy Vulto2010-01-292-52/+195
|\
| * Fix _usergroup, cpio and chown completionsFreddy Vulto2010-01-292-52/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-281-12/+4
| |
* | (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-241-2/+18
| | | | | "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-241-0/+33
|
* (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-191-0/+20
|
* (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) 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-141-0/+26
|
* (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-091-0/+37
|
* (testsuite) Fix ypmatch test case.Ville Skyttä2010-01-061-1/+1
| | | | Completion is done for ypmatch's 2nd arg only at the moment.
* Hook up openssl tests, do env modification checks.Ville Skyttä2010-01-031-0/+2
|
* (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-312-10/+36
|\ | | | | | | git+ssh://git.debian.org/git/bash-completion/bash-completion
| * Add rtcwake completion.Ville Skyttä2009-12-301-0/+20
| |
| * (testsuite) Delete directory fixtures/_filedir/a\bFreddy Vulto2009-12-301-10/+16
| | | | | | | | | | | | | | 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)
* | remove individual authorship notices, I'm already present in the AUTHORS fileGuillaume Rousse2009-12-301-1/+1
| |
* | 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-291-0/+20
|
* Add cvsps completion.Ville Skyttä2009-12-281-0/+20
|
* (testsuite) _vncviewer_bootstrap getting unset is expected, don't fail on it.Ville Skyttä2009-12-261-1/+3
|
* Fixed `quote_readline'.Freddy Vulto2009-12-241-0/+5
| | | | | | | | | | This fixes completing filenames containing single quote (') on bash-4. Also added emulation of `-o filenames' to _filedir. Added tests for _filedir. Fixed array assignment within __reassemble_comp_words_by_ref().
* (testsuite) Added function `assert_bash_list_dir'Freddy Vulto2009-12-241-4/+15
|
* Protect grep invocations from user aliases (Alioth: 312143).Ville Skyttä2009-12-152-2/+2
|
* Comment spelling fixes.Ville Skyttä2009-12-101-7/+7
|
* Fixed completing perl modules containing colonsFreddy Vulto2009-12-091-0/+18
| | | | | | | | | | | | | | | | The solution for bash-4 is to remove the colon from COMP_WORDBREAKS: COMP_WORDBREAKS=${COMP_WORDBREAKS//:} The workaround for bash-3, or bash-4 with a colon in COMP_WORDBREAKS, is to call: __ltrim_colon_completions "$cur" after completions have been put in COMPREPLY. See also: E13) Why does filename completion misbehave if a colon appears in the filename? - Bash FAQ, http://tiswww.case.edu/php/chet/bash/FAQ