mirror of
https://github.com/envmodules/modules.git
synced 2026-06-18 00:06:53 +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.
33 lines
814 B
Plaintext
33 lines
814 B
Plaintext
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: 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 "dir2/3.0"
|
|
conflict dir2
|
|
setenv TESTD "dir2/3.0"
|
|
setenv TESTDS [module-info symbols dir2/3.0]
|
|
|