Files
modules/testsuite/modulefiles.deep/modalias/dir1/1.0
Xavier Delaruelle 2304331122 Optimize getPathToModule when solved alias is upper-mod
Improve getPathToModule procedure to be able to solve any-kind of module
aliases within a single call rather than restarting new searches when
solved aliases are on the upper part (elt1/) of a current search
(elt1/elt2/) sharing same module root.

Add isSameModuleRoot procedure on the way to be able to check two
modules share the same base name.

Add non-regression tests in 020-load and 030-display of 80-deep suite to
guaranty that sub or upper aliases are correctly found.
2017-04-17 15:16:14 +02:00

31 lines
792 B
Plaintext

#%Module1.0
##############################################################################
# Modules Revision 3.0
# Providing a flexible user environment
#
# File: modalias/dir1/%M%
# Revision: %I%
# First Edition: 2017/04/16
# Last Mod.: %U%, %G%
#
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
#
# Description: Testuite modulefile
# Command:
# Sub-Command:
#
# Invocation:
# Result: %R{
# }R%
# Comment: %C{
# Test alias is correctly resolved when it points to a modulefile
# in a different directory of the deep module
# }C%
#
##############################################################################
module-whatis "modalias/dir1/1.0"
conflict modalias
setenv TEST modalias/dir1/1.0