testsuite: Add basic tests for portsnap and freebsd-update
This commit is contained in:
parent
5ff5a4e0f8
commit
602d18853c
1
test/completion/freebsd-update.exp
Normal file
1
test/completion/freebsd-update.exp
Normal file
@ -0,0 +1 @@
|
|||||||
|
assert_source_completions freebsd-update
|
1
test/completion/portsnap.exp
Normal file
1
test/completion/portsnap.exp
Normal file
@ -0,0 +1 @@
|
|||||||
|
assert_source_completions portsnap
|
18
test/lib/completions/freebsd-update.exp
Normal file
18
test/lib/completions/freebsd-update.exp
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "freebsd-update "
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
18
test/lib/completions/portsnap.exp
Normal file
18
test/lib/completions/portsnap.exp
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "portsnap "
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
Loading…
x
Reference in New Issue
Block a user