ts: add tests for "update" sub-command

Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
This commit is contained in:
Xavier Delaruelle
2025-05-09 14:10:37 +02:00
parent 8383924000
commit a0885eec84
4 changed files with 5 additions and 0 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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