File: 1

package info (click to toggle)
modules 5.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,036 kB
  • sloc: exp: 79,659; sh: 6,142; tcl: 5,900; makefile: 1,492; ansic: 474; python: 265; csh: 202; perl: 47; ruby: 44; lisp: 13
file content (80 lines) | stat: -rw-r--r-- 2,593 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#%Module
if {[info exists env(TESTSUITE_USE_MODULEPATH)]} {
    switch -- $env(TESTSUITE_USE_MODULEPATH) {
        several_uses {
            module use /path/to/dir1
            module use /path/to/dir2
        }
        several_mixed_uses1 {
            module use /path/to/dir1
            append-path MODULEPATH /path/to/dir2
        }
        several_mixed_uses2 {
            prepend-path MODULEPATH /path/to/dir1
            module use /path/to/dir2
        }
        several_mixed_uses3 {
            append-path MODULEPATH /path/to/dir1
            prepend-path MODULEPATH /path/to/dir2
        }
        one_use_several_paths {
            module use /path/to/dir1 /path/to/dir2
        }
        several_use_several_paths {
            module use /path/to/dir1 /path/to/dir2
            module use /path/to/dir3
        }
        one_use_several_same_paths {
            module use /path/to/dir1 /path/to/dir2 /path/to/dir1
        }
        several_use_same_path {
            module use /path/to/dir1 /path/to/dir2
            module use /path/to/dir1
        }
        several_mixed_use_same_path {
            append-path MODULEPATH /path/to/dir1
            module use /path/to/dir1 /path/to/dir2
        }
        several_unuse {
            module unuse /path/to/dir1
            module unuse /path/to/dir2
        }
        use_then_unuse {
            module use /path/to/dir2
            module unuse /path/to/dir2
        }
        append_then_unuse {
            append-path MODULEPATH /path/to/dir2
            module unuse /path/to/dir2
        }
        use_then_remove {
            module use /path/to/dir2
            remove-path MODULEPATH /path/to/dir2
        }
        prepend_then_remove {
            prepend-path MODULEPATH /path/to/dir2
            remove-path MODULEPATH /path/to/dir2
        }
        unuse_then_use {
            module unuse /path/to/dir2
            module use /path/to/dir2
        }
        use_with_var_ref_and_setenv {
            setenv FOO_VAR_REF 3
            module use $env(TESTSUITEDIR)/modulefiles.spider\$FOO_VAR_REF
        }
        use_with_var_ref_no_setenv {
            module use $env(TESTSUITEDIR)/modulefiles.spider\$FOO_VAR_REF
        }
        append_with_var_ref_and_setenv {
            setenv FOO_VAR_REF 3
            append-path MODULEPATH $env(TESTSUITEDIR)/modulefiles.spider\$FOO_VAR_REF
        }
        use_rel_path {
            module use ..//../modulefiles.spider3
        }
        prepend_rel_path {
            prepend-path MODULEPATH ../../../testsuite/modulefiles.spider3
        }
    }
}