| 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: 2022/12/22 |
| 8 |
# Last Mod.: %U%, %G% |
| 9 |
# |
| 10 |
# Authors: Xavier Delaruelle, [email protected] |
| 11 |
# |
| 12 |
# Description: Testuite testsequence |
| 13 |
# Command: |
| 14 |
# Modulefiles: |
| 15 |
# Sub-Command: |
| 16 |
# |
| 17 |
# Comment: %C{ |
| 18 |
# Build cache for testsuite modulepaths |
| 19 |
# }C% |
| 20 |
# |
| 21 |
############################################################################## |
| 22 |
|
| 23 |
if {[info exists env(TESTSUITE_ENABLE_MODULECACHE)]} { |
| 24 |
foreach mp [glob $env(TESTSUITEDIR)/modulefiles*] { |
| 25 |
if {[string first { } $mp] == -1} { |
| 26 |
send_user "\tBuilding cachefile $mp\n" |
| 27 |
testouterr_cmd sh "cachebuild $mp" OK [msg_create $mp/.modulecache] |
| 28 |
} |
| 29 |
} |
| 30 |
setenv_var MODULES_CACHE_BUFFER_BYTES 1000000 |
| 31 |
} |