summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* (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
|
* Add cvsps completion.Ville Skyttä2009-12-282-0/+23
|
* (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-2415-0/+682
| | | | | | | | | | 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 shell script `run'Freddy Vulto2009-12-241-0/+31
| | | | | | | | | | | This allows tab-completion of test scripts to run, e.g.: $ ./run unit/comp<TAB> $ ./run unit/compgen.exp Instead of the old way: $ ./runUnit compgen.exp
* (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
|
* (testsuite) Unset COMP_ variables at setup()Freddy Vulto2009-12-122-10/+5
| | | | | | | | | | | | | | | | | | | | The COMP_ settings of the last test of _count_args() were falling through to the first test of _get_cword(), causing it to fail. Unset COMP_ variables within the unit tests setup & teardown. Fixed last test at `_count_args.exp' by solving conflicting settings of COMP_CWORD and COMP_POINT. Steps to reproduce the problem: $ ./runUnit _count_args.exp _get_cword.exp ... Running ./unit/_count_args.exp ... Running ./unit/_get_cword.exp ... ERROR Unexpected output from bash command "_get_cword should run without errors": bash: $index: substring expression < 0 ...
* (testsuite) Fix commentFreddy Vulto2009-12-121-1/+1
|
* Add some unit tests for _count_args.Ville Skyttä2009-12-111-0/+70
|
* Comment spelling fixes.Ville Skyttä2009-12-101-7/+7
|
* Fix __reassemble_comp_words_by_ref()Freddy Vulto2009-12-101-0/+13
| | | | | | | | | | | | | | If a word is made up of multiple word separator characters: $ a b::<TAB> # CWORDS are: a, b, and :: (correct) __reassemble_comp_words_by_ref() couldn't handle this. It assumed CWORDS were: $ a b::<TAB> # CWORDS: a, b, : and : (but they're not) Added test case for this. To run the automated tests: ./runUnit _get_cword.exp