Debian Codegraph @

testsuite/modules.70-maint/155-is-used.exp

raw
1 ##############################################################################
2 # Modules Revision 3.0
3 # Providing a flexible user environment
4 #
5 # File: modules.70-maint/%M%
6 # Revision: %I%
7 # First Edition: 2017/11/28
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Xavier Delaruelle, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: is-used
14 # Modulefiles:
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Test 'is-used' module command
19 # }C%
20 #
21 ##############################################################################
22
23 #
24 # The tests
25 #
26
27 testouterr_cmd "ALL" "is-used foo" "ERR" ""
28 testouterr_cmd "ALL" "is-used foo $modpath" "OK" ""
29 testouterr_cmd "sh" "is-used" "OK" ""
30
31 skip_if_quick_mode
32
33 # empty modulepath
34 unsetenv_path_var MODULEPATH
35
36 testouterr_cmd "sh" "is-used" "ERR" ""
37
38 # modulepath with empty dir element
39 setenv_path_var MODULEPATH {} {}
40
41 testouterr_cmd "sh" "is-used" "ERR" ""
42
43
44 #
45 # Cleanup
46 #
47
48 reset_test_env