Files
modules/testsuite/modules.00-init/070-command.exp
Xavier Delaruelle 78ccc9e8f5 testsuite: refactor ALL shell tests
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.
2017-08-02 17:27:45 +02:00

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