mirror of
https://github.com/envmodules/modules.git
synced 2026-06-18 00:06:53 +08:00
Introduce 'is-saved' modulefile command to check, following the same spirit than 'is-loaded', if any of the passed collections exists. Document new command in modulefile.4 and test it with a 320-is-saved tests in 50-cmds suite. Acknowledgment: this development has been made and funded within the framework of the PRACE Fifth Implementation Phase (PRACE-5IP) project (http://www.prace-ri.eu/). PRACE-5IP receives funding from the EU's Horizon 2020 research and innovation programme (2014-2020) under grant agreement no. 730913.
35 lines
927 B
Plaintext
35 lines
927 B
Plaintext
#%Module1.0
|
|
|
|
##############################################################################
|
|
# Modules Revision 3.0
|
|
# Providing a flexible user environment
|
|
#
|
|
# File: info/%M%
|
|
# Revision: %I%
|
|
# First Edition: 2017/11/27
|
|
# Last Mod.: %U%, %G%
|
|
#
|
|
# Authors: Xavier Delaruelle, xavier.delaruelle@cea.fr
|
|
#
|
|
# Description: Testuite modulefile
|
|
# Command:
|
|
# Sub-Command: setenv, is-saved
|
|
#
|
|
# Invocation: load @M@/@V@
|
|
# Result: %R{
|
|
# }R%
|
|
# Comment: %C{
|
|
# The 'is-saved' modulefile command retrieves whether
|
|
# the given collection exists or not
|
|
# }C%
|
|
#
|
|
##############################################################################
|
|
|
|
setenv testsuite1 "[is-saved]"
|
|
setenv testsuite2 "[is-saved foo]"
|
|
setenv testsuite3 "[is-saved foo bar]"
|
|
setenv testsuite4 "[is-saved foo coll1]"
|
|
setenv testsuite5 "[is-saved coll1 bar]"
|
|
setenv testsuite6 "[is-saved coll2 coll1]"
|
|
setenv testsuite7 "[is-saved coll4]"
|