mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
Translate module name to currently interpreted module name when name correspond to the last part this interpreted module only if translation is enabled (was previously done in all cases). Translation is enabled when usage of symbolic modulefile names are allowed, which means it is enabled from 'module-version', 'module-alias' and 'module-info version' and 'module-info symbols'. Add non-reg tests in 020-load and 030-display of 80-deep suite to check that.
35 lines
871 B
Plaintext
35 lines
871 B
Plaintext
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: modload/dir2/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2017/04/10
|
|
# 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 a pre-requisite module holding the same name
|
|
# as the sub-directory of the requiring module
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
module-whatis "modload/dir2/1.0"
|
|
conflict modload
|
|
|
|
module load dir2/1.0
|
|
|
|
setenv TEST "modload/dir2/1.0"
|
|
setenv TESTS [module-info symbols modload/dir2/1.0]
|