(testsuite) Add simple rpm completion tests.
This commit is contained in:
parent
90736110f1
commit
66f5c11ab7
3
test/completion/rpm.exp
Normal file
3
test/completion/rpm.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type rpm]} {
|
||||
source "lib/completions/rpm.exp"
|
||||
}; # if
|
37
test/lib/completions/rpm.exp
Normal file
37
test/lib/completions/rpm.exp
Normal 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
|
Loading…
x
Reference in New Issue
Block a user