| 1 |
############################################################################## |
| 2 |
# Modules Revision 3.0 |
| 3 |
# Providing a flexible user environment |
| 4 |
# |
| 5 |
# File: modules.90-avail/%M% |
| 6 |
# Revision: %I% |
| 7 |
# First Edition: 2019/05/15 |
| 8 |
# Last Mod.: %U%, %G% |
| 9 |
# |
| 10 |
# Authors: Xavier Delaruelle, [email protected] |
| 11 |
# |
| 12 |
# Description: Testuite testsequence |
| 13 |
# Command: avail |
| 14 |
# Modulefiles: |
| 15 |
# Sub-Command: |
| 16 |
# |
| 17 |
# Comment: %C{ |
| 18 |
# Check the module 'avail' command when MODULEPATH variable |
| 19 |
# hold duplicate path entries |
| 20 |
# }C% |
| 21 |
# |
| 22 |
############################################################################## |
| 23 |
|
| 24 |
# set MODULEPATH with multiple entries all pointing to the same directory |
| 25 |
setenv_path_var MODULEPATH $modpath:$modpath:$modpath/test/.. |
| 26 |
|
| 27 |
# single entry should be reported |
| 28 |
testouterr_cmd sh {avail -t help/2.0} OK "$modpath:\nhelp/2.0" |
| 29 |
testouterr_cmd sh use OK "Search path for module files (in search order):\n $modpath" |
| 30 |
|
| 31 |
# |
| 32 |
# Cleanup |
| 33 |
# |
| 34 |
|
| 35 |
reset_test_env |