diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2010-01-09 11:44:36 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2010-01-09 12:24:19 +0200 |
commit | 66f5c11ab7894125039fc366c80d651f06587c43 (patch) | |
tree | 0bf7822907171cf5987c6d3368108f32ae88889a /test | |
parent | 90736110f1344f2d6385a3e304debb13b084e4fd (diff) | |
download | bash-completion-66f5c11ab7894125039fc366c80d651f06587c43.tar.gz |
(testsuite) Add simple rpm completion tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/completion/rpm.exp | 3 | ||||
-rw-r--r-- | test/lib/completions/rpm.exp | 37 |
2 files changed, 40 insertions, 0 deletions
diff --git a/test/completion/rpm.exp b/test/completion/rpm.exp new file mode 100644 index 00000000..c1ebf5ef --- /dev/null +++ b/test/completion/rpm.exp @@ -0,0 +1,3 @@ +if {[assert_bash_type rpm]} { + source "lib/completions/rpm.exp" +}; # if diff --git a/test/lib/completions/rpm.exp b/test/lib/completions/rpm.exp new file mode 100644 index 00000000..dffce93b --- /dev/null +++ b/test/lib/completions/rpm.exp @@ -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 |