diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-02 15:20:57 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-02 15:20:57 +0200 |
commit | ae4bd34e6bc54cb6b9277f2ec231892517ed1c68 (patch) | |
tree | 1454f75d428fcccc17128e65b575acf2d87421e8 /shell | |
parent | 8e2c9cc2fcfe23625e1c5845f99dfc93e022fc9b (diff) | |
download | busybox-w32-ae4bd34e6bc54cb6b9277f2ec231892517ed1c68.tar.gz busybox-w32-ae4bd34e6bc54cb6b9277f2ec231892517ed1c68.tar.bz2 busybox-w32-ae4bd34e6bc54cb6b9277f2ec231892517ed1c68.zip |
hush testsuite: add glob_dir.tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rwxr-xr-x | shell/hush_test/hush-glob/bash_brace1.tests | 2 | ||||
-rw-r--r-- | shell/hush_test/hush-glob/glob_dir.right | 19 | ||||
-rwxr-xr-x | shell/hush_test/hush-glob/glob_dir.tests | 25 |
3 files changed, 45 insertions, 1 deletions
diff --git a/shell/hush_test/hush-glob/bash_brace1.tests b/shell/hush_test/hush-glob/bash_brace1.tests index eb2f0e974..eae2e2a84 100755 --- a/shell/hush_test/hush-glob/bash_brace1.tests +++ b/shell/hush_test/hush-glob/bash_brace1.tests | |||
@@ -4,7 +4,7 @@ v='*brace1.t*'; echo $v | |||
4 | # ...but not brace expanded: | 4 | # ...but not brace expanded: |
5 | v='*{b,b}race1.t*'; echo $v | 5 | v='*{b,b}race1.t*'; echo $v |
6 | 6 | ||
7 | # whereas direct brces are expanded: | 7 | # whereas direct braces are expanded: |
8 | echo *{b,b}race1.t* | 8 | echo *{b,b}race1.t* |
9 | 9 | ||
10 | echo Done: $? | 10 | echo Done: $? |
diff --git a/shell/hush_test/hush-glob/glob_dir.right b/shell/hush_test/hush-glob/glob_dir.right new file mode 100644 index 000000000..aa90514d5 --- /dev/null +++ b/shell/hush_test/hush-glob/glob_dir.right | |||
@@ -0,0 +1,19 @@ | |||
1 | dirtest/z.tmp | ||
2 | dirtest/z.tmp | ||
3 | dirtest/z.tmp | ||
4 | dirtest/z.tmp | ||
5 | dirtest/z.tmp | ||
6 | dirtest/z.tmp | ||
7 | dirtest/z.tmp | ||
8 | dirtest/z.tmp | ||
9 | dirtest/z.tmp | ||
10 | |||
11 | */z.tmp | ||
12 | */z.* | ||
13 | */?.* | ||
14 | */z*p | ||
15 | d*r*e*t/z*p | ||
16 | *\/z.tmp | ||
17 | */z.* | ||
18 | */z*p | ||
19 | d*r*e*t/z*p | ||
diff --git a/shell/hush_test/hush-glob/glob_dir.tests b/shell/hush_test/hush-glob/glob_dir.tests new file mode 100755 index 000000000..dc4c4fdb5 --- /dev/null +++ b/shell/hush_test/hush-glob/glob_dir.tests | |||
@@ -0,0 +1,25 @@ | |||
1 | mkdir dirtest | ||
2 | >dirtest/z.tmp | ||
3 | |||
4 | echo */z.tmp | ||
5 | echo */z.* | ||
6 | echo */?.* | ||
7 | echo */z*p | ||
8 | echo d*r*e*t/z*p | ||
9 | echo *"/z.t"mp | ||
10 | echo */z"."* | ||
11 | echo *"/z"*"p" | ||
12 | echo "d"*r*e*t"/"z*p | ||
13 | echo | ||
14 | echo \*/z.tmp | ||
15 | echo "*"/z.* | ||
16 | echo */"?".* | ||
17 | echo */z"*p" | ||
18 | echo d*r*e\*t/z*p | ||
19 | echo *"\\/z.t"mp | ||
20 | echo */z".*" | ||
21 | echo *"/z"\*"p" | ||
22 | echo "d*"r*e*t"/"z*p | ||
23 | |||
24 | rm dirtest/z.tmp | ||
25 | rmdir dirtest | ||