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

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