Skip to content

Commit 2ad90ec

Browse files
committed
ts: test tag extra specifier with modfile definitions
Signed-off-by: Xavier Delaruelle <[email protected]>
1 parent f539334 commit 2ad90ec

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

testsuite/modulefiles.4/extra/1.0

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,5 +330,11 @@ if {[info exists env(TESTSUITE_EXTRA)]} {
330330
setenv TESTSUITE_EXTRA_INREF ir2
331331
append-path MODULEPATH /path/to/d\$TESTSUITE_EXTRA_INREF
332332
}
333+
tag5 {
334+
module-tag xtfoo [module-info name]
335+
}
336+
tag6 {
337+
add-property name xtfoo
338+
}
333339
}
334340
}

testsuite/modules.51-scan/044-extra_spec-tag.exp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,18 @@ set tserr {extra/1.0 <xtfoo>}
9797
testouterr_cmd sh {avail -t extra tag:xtfoo} OK $tserr
9898

9999

100+
setenv_var TESTSUITE_EXTRA tag5
101+
102+
# tag defined in modulefiles are not found currently
103+
testouterr_cmd sh {avail -t extra tag:xtfoo} OK {}
104+
105+
106+
setenv_var TESTSUITE_EXTRA tag6
107+
108+
# tag defined in modulefiles are not found currently
109+
testouterr_cmd sh {avail -t extra tag:xtfoo} OK {}
110+
111+
100112
#
101113
# Cleanup
102114
#

0 commit comments

Comments
 (0)