6925ad5081
- 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
34 lines
474 B
Plaintext
34 lines
474 B
Plaintext
proc setup {} {
|
|
save_env
|
|
}; # setup()
|
|
|
|
|
|
proc teardown {} {
|
|
assert_env_unmodified {/OLDPWD=/d}
|
|
}; # teardown()
|
|
|
|
|
|
setup
|
|
|
|
|
|
assert_complete_any "mutt -"
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
set test "mutt should complete mailboxes"
|
|
set expected {foo/ bar/ muttrc}
|
|
assert_complete_dir $expected "mutt -F muttrc -f =" fixtures/mutt
|
|
|
|
|
|
set test "mutt should complete aliases"
|
|
set expected {a1 a2}
|
|
assert_complete_dir $expected "mutt -F muttrc -A " fixtures/mutt
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
teardown
|