Skip to content

Commit bacf75e

Browse files
committed
ts: add tests where tags are updated on loaded mods
1 parent c7bd1b1 commit bacf75e

File tree

4 files changed

+389
-2
lines changed

4 files changed

+389
-2
lines changed

testsuite/modulefiles.3/foo/1.0

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
#%Module
22
module-whatis [module-info name]
3+
4+
if {[info exists env(TESTSUITE_TAG_OPT)]} {
5+
switch -- $env(TESTSUITE_TAG_OPT) {
6+
prtag12 {
7+
prereq --tag=keep-loaded:foo tag/8.0
8+
}
9+
}
10+
}

testsuite/modulefiles.3/tag/8.0

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,29 @@ if {[info exists env(TESTSUITE_TAG_OPT)]} {
115115
loadanytag1 {
116116
module load-any [email protected] bar=val1 foo/1.0 --tag foo
117117
}
118+
prtag9 {
119+
depends-on --tag=foo foo/1.0
120+
}
121+
prtag10 {
122+
prereq --tag hidden-loaded:foo foo/1.0 bar/1.0
123+
}
124+
switchtag1 {
125+
module switch --tag=foo bar/1.0 foo/1.0
126+
}
127+
switchtag2 {
128+
module switch --tag=foo:hidden-loaded bar/1.0 foo/1.0
129+
}
130+
loadtag5 {
131+
module load --tag=bar:foo:keep-loaded foo/1.0 bar/1.0
132+
}
133+
loadtag6 {
134+
module load --tag=bar:keep-loaded:auto-loaded foo/1.0
135+
}
136+
prtag11 {
137+
prereq --tag=auto-loaded:keep-loaded:foo foo/1.0
138+
}
139+
prtag12 {
140+
prereq --tag=keep-loaded:foo foo/1.0
141+
}
118142
}
119143
}

0 commit comments

Comments
 (0)