mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
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.
31 lines
792 B
Plaintext
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
|