| 1 |
############################################################################## |
| 2 |
# Modules Revision 3.2 |
| 3 |
# Providing a flexible user environment |
| 4 |
# |
| 5 |
# First Edition: 2017/04/16 |
| 6 |
# |
| 7 |
# Authors: Xavier Delaruelle, [email protected] |
| 8 |
# |
| 9 |
# Description: Deep modulefile directories - whatis |
| 10 |
# |
| 11 |
############################################################################## |
| 12 |
|
| 13 |
set header "$modlin $modpathre $modlin" |
| 14 |
|
| 15 |
|
| 16 |
testouterr_cmd_re "csh" "whatis $ialias1" "OK" "$header\n $oalias1: $oalias1" |
| 17 |
testouterr_cmd_re "csh" "whatis $ialias2" "OK" "$header\n $oalias2: $oalias2" |
| 18 |
testouterr_cmd_re "csh" "whatis $ialias3" "OK" "$header\n $oalias3: $oalias3" |
| 19 |
|
| 20 |
skip_if_quick_mode |
| 21 |
|
| 22 |
testouterr_cmd_re "csh" "whatis $isym1" "OK" "$header\n $osym1: $osym1" |
| 23 |
testouterr_cmd_re "csh" "whatis $isym2" "OK" "$header\n $osym2: $osym2" |
| 24 |
|
| 25 |
testouterr_cmd_re "csh" "whatis $ivirt1" "OK" "$header\n $ovirt1: $ovirt1" |
| 26 |
testouterr_cmd_re "csh" "whatis $ivirt2" "OK" "$header\n $ovirt2: $ovirt2" |
| 27 |
testouterr_cmd_re "csh" "whatis $ivirt3" "OK" "$header\n $ovirt3: $ovirt3" |
| 28 |
testouterr_cmd_re "csh" "whatis $ivirt4" "OK" "$header\n\\s*$ivirt4/1.0: $ivirt4/1.0\n\\s*$ovirt4: $ovirt4" |
| 29 |
testouterr_cmd_re "csh" "whatis $ivirt5" "OK" "$header\n\\s*$ovirt5: $ovirt5\\s*$ovirt4: $ovirt4" |
| 30 |
testouterr_cmd_re "csh" "whatis $ivirt6" "OK" "$header\n\\s*$ovirt6: $ovirt6" |
| 31 |
testouterr_cmd_re "csh" "whatis $ivirt7" "OK" "$header\n\\s*$ovirt5: $ovirt5\\s*$ovirt6: $ovirt6\\s*$ovirt7: $ovirt7" |
| 32 |
testouterr_cmd_re "csh" "whatis $ivirt8" "OK" "$header\n\\s*$ovirt5: $ovirt5\\s*$ovirt6: $ovirt6\\s*$ovirt8: $ovirt8" |
| 33 |
|
| 34 |
testouterr_cmd_re "csh" "whatis $idalias0" "OK" "$header\n $odalias0: $odalias0" |
| 35 |
testouterr_cmd_re "csh" "whatis $idalias1" "OK" "$header\n $odalias1: $odalias1" |
| 36 |
|
| 37 |
testouterr_cmd_re "csh" "whatis $ibadvers0" "OK" "$header\n $obadvers1: $obadvers1\n $obadvers0: $obadvers0" |
| 38 |
testouterr_cmd_re "csh" "whatis $ibadvers1" "OK" "$header\n $obadvers1: $obadvers1" |
| 39 |
|
| 40 |
testouterr_cmd_re "csh" "whatis modulerc/foo" "OK" "$header\n\\s*modulerc/dir2/1.0/rc1: modulerc/dir2/1.0/rc1\n\\s*modulerc/dir2/1.0/rc2: modulerc/dir2/1.0/rc2\n\\s*modulerc/dir2/2.0: modulerc/dir2/2.0\n\\s*modulerc/dir2/3.0: modulerc/dir2/3.0" |
| 41 |
|
| 42 |
reset_test_env |