testsuite: Improve rpm2tgz tests

This commit is contained in:
Igor Murzov 2011-06-05 16:14:39 +04:00
parent dbd8670cf4
commit 59cee8c139

View File

@ -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