mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
ts: add tests for "update" sub-command
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
This commit is contained in:
@@ -51,6 +51,7 @@ testouterr_cmd "ALL" "unload" "ERR" "${bad_arg1}unload${bad_arg2}\n$err_typehelp
|
||||
# that every supported shells respond correctly to error raise
|
||||
|
||||
testall_cmd "sh" "reload foo" "ERR" "${bad_arg1}reload${bad_arg2}\n$err_typehelp" 1
|
||||
testall_cmd "sh" "update foo" "ERR" "${bad_arg1}reload${bad_arg2}\n$err_typehelp" 1
|
||||
testouterr_cmd "sh" "source" "ERR" "${bad_arg1}source${bad_arg2}\n$err_typehelp"
|
||||
testouterr_cmd "sh" "switch" "ERR" "${bad_arg1}switch${bad_arg2}\n$err_typehelp"
|
||||
testouterr_cmd "sh" "switch foo1 bar foo2" "ERR" "${bad_arg1}switch${bad_arg2}\n$err_typehelp"
|
||||
|
||||
@@ -129,6 +129,7 @@ testouterr_cmd "sh" "purge" $ansun "purge"
|
||||
|
||||
# test reloading
|
||||
testouterr_cmd "sh" "reload" $ans "reload\nreload"
|
||||
testouterr_cmd "sh" "update" $ans "reload\nreload"
|
||||
|
||||
# Clean up the just changed environment
|
||||
unsetenv_loaded_module
|
||||
|
||||
@@ -130,6 +130,7 @@ testouterr_cmd "sh" "purge" $ansun "purge"
|
||||
|
||||
# test reloading
|
||||
testouterr_cmd "sh" "reload" $ans "reload\nreload"
|
||||
testouterr_cmd "sh" "update" $ans "reload\nreload"
|
||||
|
||||
# Clean up the just changed environment
|
||||
unsetenv_loaded_module
|
||||
|
||||
@@ -47,11 +47,13 @@ setenv_loaded_module $module $modulefile
|
||||
#
|
||||
|
||||
test_cmd "sh" "reload" $ans
|
||||
test_cmd "sh" "update" $ans
|
||||
|
||||
skip_if_quick_mode
|
||||
|
||||
# command nickname tests
|
||||
test_cmd "sh" "rel" $ans
|
||||
test_cmd "sh" "up" $ans
|
||||
|
||||
|
||||
# setup LOADEDMODULES/_LMFILES_ with an empty element
|
||||
|
||||
Reference in New Issue
Block a user