Skip to content

Commit a0885ee

Browse files
committed
ts: add tests for "update" sub-command
Signed-off-by: Xavier Delaruelle <[email protected]>
1 parent 8383924 commit a0885ee

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

testsuite/modules.00-init/071-args.exp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ testouterr_cmd "ALL" "unload" "ERR" "${bad_arg1}unload${bad_arg2}\n$err_typehelp
5151
# that every supported shells respond correctly to error raise
5252

5353
testall_cmd "sh" "reload foo" "ERR" "${bad_arg1}reload${bad_arg2}\n$err_typehelp" 1
54+
testall_cmd "sh" "update foo" "ERR" "${bad_arg1}reload${bad_arg2}\n$err_typehelp" 1
5455
testouterr_cmd "sh" "source" "ERR" "${bad_arg1}source${bad_arg2}\n$err_typehelp"
5556
testouterr_cmd "sh" "switch" "ERR" "${bad_arg1}switch${bad_arg2}\n$err_typehelp"
5657
testouterr_cmd "sh" "switch foo1 bar foo2" "ERR" "${bad_arg1}switch${bad_arg2}\n$err_typehelp"

testsuite/modules.50-cmds/282-info-command.exp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ testouterr_cmd "sh" "purge" $ansun "purge"
129129

130130
# test reloading
131131
testouterr_cmd "sh" "reload" $ans "reload\nreload"
132+
testouterr_cmd "sh" "update" $ans "reload\nreload"
132133

133134
# Clean up the just changed environment
134135
unsetenv_loaded_module

testsuite/modules.50-cmds/283-info-command-exp.exp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ testouterr_cmd "sh" "purge" $ansun "purge"
130130

131131
# test reloading
132132
testouterr_cmd "sh" "reload" $ans "reload\nreload"
133+
testouterr_cmd "sh" "update" $ans "reload\nreload"
133134

134135
# Clean up the just changed environment
135136
unsetenv_loaded_module

testsuite/modules.70-maint/180-reload.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ setenv_loaded_module $module $modulefile
4747
#
4848

4949
test_cmd "sh" "reload" $ans
50+
test_cmd "sh" "update" $ans
5051

5152
skip_if_quick_mode
5253

5354
# command nickname tests
5455
test_cmd "sh" "rel" $ans
56+
test_cmd "sh" "up" $ans
5557

5658

5759
# setup LOADEDMODULES/_LMFILES_ with an empty element

0 commit comments

Comments
 (0)