(testsuite) Add simple rpm completion tests.

This commit is contained in:
Ville Skyttä 2010-01-09 11:44:36 +02:00
parent 90736110f1
commit 66f5c11ab7
2 changed files with 40 additions and 0 deletions

3
test/completion/rpm.exp Normal file
View File

@ -0,0 +1,3 @@
if {[assert_bash_type rpm]} {
source "lib/completions/rpm.exp"
}; # if

View File

@ -0,0 +1,37 @@
proc setup {} {
save_env
}; # setup()
proc teardown {} {
assert_env_unmodified
}; # teardown()
set _old_match_max [match_max]
match_max 100000
setup
assert_complete_any "rpm "
sync_after_int
assert_complete_any "rpm -q "
sync_after_int
assert_complete_any "rpm --eval %"
sync_after_int
teardown
match_max $_old_match_max