Files
modules/testsuite/modulefiles/module/meta
Xavier Delaruelle 3b3880054c Reverse load command mod list on unload mode
When mode is set to unload, 'module load' commands in modulefile are
interpreted as 'module unload' commands. To guaranty correct behavior
regarding requirements, the module list passed to the load command is
reversed to get and unload of the modulefiles in the reverse order than
load.

This is the same behavior than applied on purge or restore commands,
where loaded module list is reversed to be unloaded.

Add non-regression tests in 150-module of 50-cmds suite to check load
and unload of meta-module works correctly over time.
2017-04-17 21:30:12 +02:00

28 lines
632 B
Plaintext

#%Module1.0
##############################################################################
# Modules Revision 3.0
# Providing a flexible user environment
#
# File: module/%M%
# Revision: %I%
# First Edition: 2017/04/17
# Last Mod.: %U%, %G%
#
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
#
# Description: Testuite modulefile
# Command:
# Sub-Command:
#
# Invocation:
# Result: %R{
# }R%
# Comment: %C{
# Test the correct load, unload of meta-module
# }C%
#
##############################################################################
module load setenv trace prereq/module