testsuite: Add basic test cases for deprecated completions
This commit is contained in:
parent
e201d1be7e
commit
3e0637128f
1
test/completion/hwclock.exp
Normal file
1
test/completion/hwclock.exp
Normal file
@ -0,0 +1 @@
|
||||
assert_source_completions hwclock
|
1
test/completion/ionice.exp
Normal file
1
test/completion/ionice.exp
Normal file
@ -0,0 +1 @@
|
||||
assert_source_completions ionice
|
1
test/completion/mock.exp
Normal file
1
test/completion/mock.exp
Normal file
@ -0,0 +1 @@
|
||||
assert_source_completions mock
|
1
test/completion/nmcli.exp
Normal file
1
test/completion/nmcli.exp
Normal file
@ -0,0 +1 @@
|
||||
assert_source_completions nmcli
|
1
test/completion/repomanage.exp
Normal file
1
test/completion/repomanage.exp
Normal file
@ -0,0 +1 @@
|
||||
assert_source_completions repomanage
|
1
test/completion/rtcwake.exp
Normal file
1
test/completion/rtcwake.exp
Normal file
@ -0,0 +1 @@
|
||||
assert_source_completions rtcwake
|
1
test/completion/udevadm.exp
Normal file
1
test/completion/udevadm.exp
Normal file
@ -0,0 +1 @@
|
||||
assert_source_completions udevadm
|
18
test/lib/completions/hwclock.exp
Normal file
18
test/lib/completions/hwclock.exp
Normal file
@ -0,0 +1,18 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "hwclock -"
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
18
test/lib/completions/ionice.exp
Normal file
18
test/lib/completions/ionice.exp
Normal file
@ -0,0 +1,18 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "ionice -"
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
18
test/lib/completions/mock.exp
Normal file
18
test/lib/completions/mock.exp
Normal file
@ -0,0 +1,18 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mock "
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
18
test/lib/completions/nmcli.exp
Normal file
18
test/lib/completions/nmcli.exp
Normal file
@ -0,0 +1,18 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "nmcli "
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
18
test/lib/completions/repomanage.exp
Normal file
18
test/lib/completions/repomanage.exp
Normal file
@ -0,0 +1,18 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "repomanage "
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
18
test/lib/completions/rtcwake.exp
Normal file
18
test/lib/completions/rtcwake.exp
Normal file
@ -0,0 +1,18 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "rtcwake "
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
18
test/lib/completions/udevadm.exp
Normal file
18
test/lib/completions/udevadm.exp
Normal file
@ -0,0 +1,18 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "udevadm "
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
Loading…
x
Reference in New Issue
Block a user