| 1 |
#%Module |
| 2 |
if {[info exists env(TESTSUITE_USE_MODULEPATH)]} { |
| 3 |
switch -- $env(TESTSUITE_USE_MODULEPATH) { |
| 4 |
several_uses { |
| 5 |
module use /path/to/dir1 |
| 6 |
module use /path/to/dir2 |
| 7 |
} |
| 8 |
several_mixed_uses1 { |
| 9 |
module use /path/to/dir1 |
| 10 |
append-path MODULEPATH /path/to/dir2 |
| 11 |
} |
| 12 |
several_mixed_uses2 { |
| 13 |
prepend-path MODULEPATH /path/to/dir1 |
| 14 |
module use /path/to/dir2 |
| 15 |
} |
| 16 |
several_mixed_uses3 { |
| 17 |
append-path MODULEPATH /path/to/dir1 |
| 18 |
prepend-path MODULEPATH /path/to/dir2 |
| 19 |
} |
| 20 |
one_use_several_paths { |
| 21 |
module use /path/to/dir1 /path/to/dir2 |
| 22 |
} |
| 23 |
several_use_several_paths { |
| 24 |
module use /path/to/dir1 /path/to/dir2 |
| 25 |
module use /path/to/dir3 |
| 26 |
} |
| 27 |
one_use_several_same_paths { |
| 28 |
module use /path/to/dir1 /path/to/dir2 /path/to/dir1 |
| 29 |
} |
| 30 |
several_use_same_path { |
| 31 |
module use /path/to/dir1 /path/to/dir2 |
| 32 |
module use /path/to/dir1 |
| 33 |
} |
| 34 |
several_mixed_use_same_path { |
| 35 |
append-path MODULEPATH /path/to/dir1 |
| 36 |
module use /path/to/dir1 /path/to/dir2 |
| 37 |
} |
| 38 |
several_unuse { |
| 39 |
module unuse /path/to/dir1 |
| 40 |
module unuse /path/to/dir2 |
| 41 |
} |
| 42 |
use_then_unuse { |
| 43 |
module use /path/to/dir2 |
| 44 |
module unuse /path/to/dir2 |
| 45 |
} |
| 46 |
append_then_unuse { |
| 47 |
append-path MODULEPATH /path/to/dir2 |
| 48 |
module unuse /path/to/dir2 |
| 49 |
} |
| 50 |
use_then_remove { |
| 51 |
module use /path/to/dir2 |
| 52 |
remove-path MODULEPATH /path/to/dir2 |
| 53 |
} |
| 54 |
prepend_then_remove { |
| 55 |
prepend-path MODULEPATH /path/to/dir2 |
| 56 |
remove-path MODULEPATH /path/to/dir2 |
| 57 |
} |
| 58 |
unuse_then_use { |
| 59 |
module unuse /path/to/dir2 |
| 60 |
module use /path/to/dir2 |
| 61 |
} |
| 62 |
use_with_var_ref_and_setenv { |
| 63 |
setenv FOO_VAR_REF 3 |
| 64 |
module use $env(TESTSUITEDIR)/modulefiles.spider\$FOO_VAR_REF |
| 65 |
} |
| 66 |
use_with_var_ref_no_setenv { |
| 67 |
module use $env(TESTSUITEDIR)/modulefiles.spider\$FOO_VAR_REF |
| 68 |
} |
| 69 |
append_with_var_ref_and_setenv { |
| 70 |
setenv FOO_VAR_REF 3 |
| 71 |
append-path MODULEPATH $env(TESTSUITEDIR)/modulefiles.spider\$FOO_VAR_REF |
| 72 |
} |
| 73 |
use_rel_path { |
| 74 |
module use ..//../modulefiles.spider3 |
| 75 |
} |
| 76 |
prepend_rel_path { |
| 77 |
prepend-path MODULEPATH ../../../testsuite/modulefiles.spider3 |
| 78 |
} |
| 79 |
} |
| 80 |
} |