| 1 |
############################################################################## |
| 2 |
# Modules Revision 3.0 |
| 3 |
# Providing a flexible user environment |
| 4 |
# |
| 5 |
# File: modules.00-init/%M% |
| 6 |
# Revision: %I% |
| 7 |
# First Edition: 95/12/06 |
| 8 |
# Last Mod.: %U%, %G% |
| 9 |
# |
| 10 |
# Authors: Jens Hamisch, [email protected] |
| 11 |
# |
| 12 |
# Description: Testuite testsequence |
| 13 |
# Command: |
| 14 |
# Sub-Command: |
| 15 |
# |
| 16 |
# Comment: %C{ |
| 17 |
# Set up the MODULEPATH for the testsuite |
| 18 |
# }C% |
| 19 |
# |
| 20 |
############################################################################## |
| 21 |
|
| 22 |
if [info exists env(TESTSUITEDIR)] { |
| 23 |
set modpath "$env(TESTSUITEDIR)/modulefiles" |
| 24 |
set modpathre [regsub -all "\(\[.+?\]\)" $modpath {\\\1}] |
| 25 |
setenv_path_var MODULEPATH $modpath |
| 26 |
|
| 27 |
set reldmodpath "./[file tail $env(TESTSUITEDIR)]/modulefiles" |
| 28 |
set relddmodpath "../[file tail [pwd]]/[file tail $env(TESTSUITEDIR)]/modulefiles" |
| 29 |
} else { |
| 30 |
send_user "\n\n\nFATAL: Please set the TESTSUITEDIR env var first\n\n\n" |
| 31 |
exit |
| 32 |
} |
| 33 |
|