mirror of
https://github.com/envmodules/modules.git
synced 2026-06-10 00:56:30 +08:00
Adapt test* procedure to call test for each supported shell when test_shell argument is set to 'ALL'. Transform all tests set for all shells with a common output to use this new 'ALL' test_shell argument.
47 lines
1005 B
Plaintext
47 lines
1005 B
Plaintext
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: modules.00-init/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2016/08/20
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
|
|
#
|
|
# Description: Testuite testsequence
|
|
# Command:
|
|
# Sub-Command:
|
|
#
|
|
# Comment: %C{
|
|
# Check command line commands with a bad command name.
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
#
|
|
# The following answers are to be expected in this testcase ...
|
|
#
|
|
|
|
set bad_arg "$error_msgs: Invalid command 'foobar'"
|
|
set type_help "Try 'module --help' for more information."
|
|
|
|
|
|
#
|
|
# The tests
|
|
#
|
|
|
|
if { $verbose > 0 } {
|
|
send_user "\tChecking command line commands ...\n"
|
|
}
|
|
|
|
# invalid command leads to error code
|
|
testouterr_cmd "ALL" "foobar" "ERR" "$bad_arg\n$type_help"
|
|
|
|
#
|
|
# Clean up variables used in this test case
|
|
#
|
|
|
|
unset bad_arg
|
|
unset type_help
|