Skip to content

Commit 1ac6bd2

Browse files
committed
ts: test source-sh --ignore option
1 parent 0d53ae7 commit 1ac6bd2

File tree

3 files changed

+565
-0
lines changed

3 files changed

+565
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#%Module
2+
if {[info exists env(TESTSUITE_SOURCE_SH)]} {
3+
switch -- $env(TESTSUITE_SOURCE_SH) {
4+
ignore_bad1 {
5+
source-sh --ignore alias
6+
}
7+
ignore_bad2 {
8+
source-sh --ignore
9+
}
10+
ignore_bad3 {
11+
source-sh --ignore bash testsuite/example/sh-to-mod.sh arg1
12+
}
13+
ignore_bad4 {
14+
source-sh --ignore {foo} bash testsuite/example/sh-to-mod.sh arg1
15+
}
16+
ignore_bad5 {
17+
source-sh --ignore alias:foo bash testsuite/example/sh-to-mod.sh arg1
18+
}
19+
ignore_bad6 {
20+
source-sh --ignore foo:bar bash testsuite/example/sh-to-mod.sh arg1
21+
}
22+
ignore_bad7 {
23+
source-sh --ignore {alias function} bash testsuite/example/sh-to-mod.sh arg1
24+
}
25+
ignore_bad8 {
26+
source-sh --foo bash testsuite/example/sh-to-mod.sh arg1
27+
}
28+
ignore_bad9 {
29+
source-sh --ignore alias bash
30+
}
31+
ignore_pos1 {
32+
source-sh bash --ignore envvar:chdir testsuite/example/sh-to-mod.sh
33+
}
34+
ignore_pos2 {
35+
source-sh bash testsuite/example/sh-to-mod.sh --ignore complete
36+
}
37+
ignore_empty1 {
38+
source-sh --ignore {} bash testsuite/example/sh-to-mod.sh arg1
39+
}
40+
ignore1 {
41+
source-sh --ignore alias bash testsuite/example/sh-to-mod.sh
42+
}
43+
ignore2 {
44+
source-sh --ignore alias:function bash testsuite/example/sh-to-mod.sh arg1
45+
}
46+
ignore3 {
47+
source-sh --ignore envvar:chdir bash testsuite/example/sh-to-mod.sh
48+
}
49+
ignore4 {
50+
source-sh --ignore complete bash testsuite/example/sh-to-mod.sh
51+
}
52+
ignore5 {
53+
source-sh --ignore alias:envvar:function:complete bash testsuite/example/sh-to-mod.sh
54+
}
55+
ignore6 {
56+
source-sh --ignore chdir:alias:envvar:function:complete bash testsuite/example/sh-to-mod.sh
57+
}
58+
}
59+
}
60+
module-whatis [module-info name]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#%Module
2+
module-whatis [module-info name]

0 commit comments

Comments
 (0)