File tree Expand file tree Collapse file tree 8 files changed +844
-0
lines changed
Expand file tree Collapse file tree 8 files changed +844
-0
lines changed Original file line number Diff line number Diff line change @@ -81,3 +81,14 @@ if {[info exists env(TESTSUITE_CONFLICT_UNLOAD)]} {
8181 }
8282 }
8383}
84+
85+ if {[info exists env(TESTSUITE_PROVIDE)]} {
86+ switch -- $env(TESTSUITE_PROVIDE) {
87+ duplicate_with_ext_same_alias {
88+ module-alias foo provide/1
89+ }
90+ duplicate_with_ext_diff_alias {
91+ module-alias foo bar/1
92+ }
93+ }
94+ }
Original file line number Diff line number Diff line change @@ -58,3 +58,13 @@ if {[info exists env(TESTSUITE_LOADABLE_DEPRE)]} {
5858 }
5959 }
6060}
61+ if {[info exists env(TESTSUITE_PROVIDE)]} {
62+ switch -- $env(TESTSUITE_PROVIDE) {
63+ duplicate_with_ext {
64+ provide foo/1
65+ }
66+ duplicate_with_ext_family {
67+ family foo
68+ }
69+ }
70+ }
Original file line number Diff line number Diff line change 1+ #%Module
2+ if {[info exists env(TESTSUITE_PROVIDE)]} {
3+ switch -- $env(TESTSUITE_PROVIDE) {
4+ duplicate_with_ext_same_version {
5+ module-version provide/1 foo
6+ }
7+ duplicate_with_ext_diff_version {
8+ module-version provide/2 foo
9+ }
10+ }
11+ }
Original file line number Diff line number Diff line change 1+ #%Module
2+ if {[info exists env(TESTSUITE_PROVIDE)]} {
3+ module-whatis [module-info name]
4+ switch -- $env(TESTSUITE_PROVIDE) {
5+ single {
6+ provide foo/1
7+ }
8+ multiple {
9+ provide foo/1 bar/1
10+ provide baz/1 qux/1 quux/1
11+ }
12+ err_arg {
13+ provide
14+ }
15+ variant {
16+ provide foo/1 var=val1
17+ }
18+ duplicate {
19+ provide foo/1 foo/1
20+ }
21+ duplicate2 {
22+ provide foo/1 bar/1
23+ provide qux/1 foo/1
24+ }
25+ duplicate_with_ext {
26+ provide foo/1
27+ }
28+ duplicate_with_ext_module {
29+ provide bar/1
30+ }
31+ duplicate_with_family {
32+ family foo
33+ provide foo
34+ }
35+ duplicate_with_family2 {
36+ provide foo
37+ family foo
38+ }
39+ duplicate_with_ext_family {
40+ provide foo
41+ }
42+ duplicate_with_alias {
43+ module-alias foo provide/1
44+ provide foo
45+ }
46+ duplicate_with_alias2 {
47+ provide foo
48+ module-alias foo provide/1
49+ }
50+ duplicate_with_ext_same_alias - duplicate_with_ext_diff_alias {
51+ provide foo
52+ }
53+ duplicate_with_version {
54+ module-version provide/1 foo
55+ provide provide/foo
56+ }
57+ duplicate_with_version2 {
58+ provide provide/foo
59+ module-version provide/1 foo
60+ }
61+ duplicate_with_ext_same_version - duplicate_with_ext_diff_version {
62+ provide provide/foo
63+ }
64+ extensions {
65+ extensions foo/1 bar/1
66+ extensions baz/1 qux/1 quux/1
67+ }
68+ }
69+ }
Original file line number Diff line number Diff line change 1+ #%Module
Original file line number Diff line number Diff line change 1+ #%Module
Original file line number Diff line number Diff line change @@ -12,3 +12,20 @@ if {[info exists env(TESTSUITE_REQUIRE_VIA)]} {
1212 }
1313 }
1414}
15+ if {[info exists env(TESTSUITE_PROVIDE)]} {
16+ switch -- $env(TESTSUITE_PROVIDE) {
17+ duplicate_with_ext {
18+ prereq foo/1
19+ }
20+ duplicate_with_ext_module {
21+ prereq bar/1
22+ }
23+ duplicate_with_ext_family - duplicate_with_ext_same_alias -\
24+ duplicate_with_ext_diff_alias {
25+ prereq foo
26+ }
27+ duplicate_with_ext_same_version - duplicate_with_ext_diff_version {
28+ prereq provide/foo
29+ }
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments