testsuite: add basic tests for pkgtools

This commit is contained in:
Igor Murzov 2011-05-21 17:19:21 +04:00 committed by Igor Murzov
parent 2fb0a3a9f6
commit f21f6e080b
9 changed files with 85 additions and 1 deletions

View File

@ -0,0 +1 @@
assert_source_completions installpkg

View File

@ -0,0 +1 @@
assert_source_completions makepkg

View File

@ -0,0 +1 @@
assert_source_completions pkgtool

View File

@ -0,0 +1 @@
assert_source_completions upgradepkg

View File

@ -0,0 +1,20 @@
proc setup {} {
save_env
}
proc teardown {} {
assert_env_unmodified
}
setup
assert_complete_any "installpkg -"
sync_after_int
teardown

View File

@ -0,0 +1,20 @@
proc setup {} {
save_env
}
proc teardown {} {
assert_env_unmodified
}
setup
assert_complete_any "makepkg -"
sync_after_int
teardown

View File

@ -0,0 +1,20 @@
proc setup {} {
save_env
}
proc teardown {} {
assert_env_unmodified
}
setup
assert_complete_any "pkgtool -"
sync_after_int
teardown

View File

@ -11,7 +11,7 @@ proc teardown {} {
setup
assert_complete_any "removepkg "
assert_complete_any "removepkg -"
sync_after_int

View File

@ -0,0 +1,20 @@
proc setup {} {
save_env
}
proc teardown {} {
assert_env_unmodified
}
setup
assert_complete_any "upgradepkg -"
sync_after_int
teardown