mirror of
https://github.com/envmodules/modules.git
synced 2026-06-10 00:56:30 +08:00
Make 'is-loaded' modulefile command callable from a modulerc interpretation. Restore this way the behavior of compatibility version. Update diff doc and add some specific non-regression tests in 20/060 and 50/380. Fixes #207
34 lines
916 B
Plaintext
34 lines
916 B
Plaintext
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: etc/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2017/06/30
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
|
|
#
|
|
# Description: Module RC file
|
|
#
|
|
# Comment: %C{
|
|
# Valid global module RC file for the testsuite
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
module-alias sym_foo loc_rc2/foo
|
|
module-version sym_foo special2
|
|
|
|
module-virtual virt_bar ../modulefiles/loc_rcv1/.common
|
|
module-alias sym_bar virt_bar
|
|
module-version sym_bar special3
|
|
|
|
# check resolution of [module-info command] in a global rc
|
|
module-alias sym_bar_[module-info command] virt_bar
|
|
|
|
# check resolution of [is-loaded mod] in a global rc
|
|
module-alias sym_bar_[is-loaded loc_rc2] virt_bar
|