testsuite: add basic tests for pkgtools
This commit is contained in:
parent
2fb0a3a9f6
commit
f21f6e080b
1
test/completion/installpkg.exp
Normal file
1
test/completion/installpkg.exp
Normal file
@ -0,0 +1 @@
|
||||
assert_source_completions installpkg
|
1
test/completion/makepkg.exp
Normal file
1
test/completion/makepkg.exp
Normal file
@ -0,0 +1 @@
|
||||
assert_source_completions makepkg
|
1
test/completion/pkgtool.exp
Normal file
1
test/completion/pkgtool.exp
Normal file
@ -0,0 +1 @@
|
||||
assert_source_completions pkgtool
|
1
test/completion/upgradepkg.exp
Normal file
1
test/completion/upgradepkg.exp
Normal file
@ -0,0 +1 @@
|
||||
assert_source_completions upgradepkg
|
20
test/lib/completions/installpkg.exp
Normal file
20
test/lib/completions/installpkg.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "installpkg -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/makepkg.exp
Normal file
20
test/lib/completions/makepkg.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "makepkg -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/pkgtool.exp
Normal file
20
test/lib/completions/pkgtool.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "pkgtool -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -11,7 +11,7 @@ proc teardown {} {
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "removepkg "
|
||||
assert_complete_any "removepkg -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
20
test/lib/completions/upgradepkg.exp
Normal file
20
test/lib/completions/upgradepkg.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "upgradepkg -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
Loading…
x
Reference in New Issue
Block a user