testsuite: Add bunch of simple shadow util test cases.
This commit is contained in:
parent
c3bddc49e0
commit
fabbec105c
1
test/completion/chage.exp
Normal file
1
test/completion/chage.exp
Normal file
@ -0,0 +1 @@
|
|||||||
|
assert_source_completions chage
|
1
test/completion/chpasswd.exp
Normal file
1
test/completion/chpasswd.exp
Normal file
@ -0,0 +1 @@
|
|||||||
|
assert_source_completions chpasswd
|
1
test/completion/faillog.exp
Normal file
1
test/completion/faillog.exp
Normal file
@ -0,0 +1 @@
|
|||||||
|
assert_source_completions faillog
|
1
test/completion/gpasswd.exp
Normal file
1
test/completion/gpasswd.exp
Normal file
@ -0,0 +1 @@
|
|||||||
|
assert_source_completions gpasswd
|
1
test/completion/lastlog.exp
Normal file
1
test/completion/lastlog.exp
Normal file
@ -0,0 +1 @@
|
|||||||
|
assert_source_completions lastlog
|
1
test/completion/newusers.exp
Normal file
1
test/completion/newusers.exp
Normal file
@ -0,0 +1 @@
|
|||||||
|
assert_source_completions newusers
|
1
test/completion/vipw.exp
Normal file
1
test/completion/vipw.exp
Normal file
@ -0,0 +1 @@
|
|||||||
|
assert_source_completions vipw
|
20
test/lib/completions/chage.exp
Normal file
20
test/lib/completions/chage.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "chage "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
20
test/lib/completions/chpasswd.exp
Normal file
20
test/lib/completions/chpasswd.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "chpasswd -"
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
20
test/lib/completions/faillog.exp
Normal file
20
test/lib/completions/faillog.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "faillog -"
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
20
test/lib/completions/gpasswd.exp
Normal file
20
test/lib/completions/gpasswd.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "gpasswd "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
20
test/lib/completions/lastlog.exp
Normal file
20
test/lib/completions/lastlog.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "lastlog -"
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
20
test/lib/completions/newusers.exp
Normal file
20
test/lib/completions/newusers.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "newusers "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
20
test/lib/completions/vipw.exp
Normal file
20
test/lib/completions/vipw.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "vipw -"
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
Loading…
x
Reference in New Issue
Block a user