mirror of
https://github.com/envmodules/modules.git
synced 2026-06-10 00:56:30 +08:00
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.
28 lines
632 B
Plaintext
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
|