[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-349-ga0834d3
Igor Murzov
e-mail at date.by
Sun Jun 5 21:13:48 UTC 2011
The following commit has been merged in the master branch:
commit 59cee8c139aacb43e9f1bfa8258b551ed7de8c83
Author: Igor Murzov <e-mail at date.by>
Date: Sun Jun 5 16:14:39 2011 +0400
testsuite: Improve rpm2tgz tests
diff --git a/test/lib/completions/rpm2tgz.exp b/test/lib/completions/rpm2tgz.exp
index a6d08b9..eb59798 100644
--- a/test/lib/completions/rpm2tgz.exp
+++ b/test/lib/completions/rpm2tgz.exp
@@ -4,7 +4,7 @@ proc setup {} {
proc teardown {} {
- assert_env_unmodified
+ assert_env_unmodified {/OLDPWD=/d}
}
@@ -17,4 +17,15 @@ assert_complete_any "rpm2tgz -"
sync_after_int
+set test "should complete *.rpm files and dirs"
+set dir $::srcdir/fixtures/slackware/home
+set files [split [exec bash -c "cd $dir && find . -mindepth 1 -maxdepth 1 \
+ \\( -type d -printf '%P/\\n' \\) -o \
+ \\( -type f -name '*.rpm' -printf '%P\\n' \\)"] "\n"]
+assert_complete_dir $files "rpm2tgz " $dir $test
+
+
+sync_after_int
+
+
teardown
--
bash-completion
More information about the Bash-completion-commits
mailing list