← Commit list

ae4bd34e6

Denys Vlasenko
Denys Vlasenko
2016-10-02
SUCCESS Duration: 197s

Subject

hush testsuite: add glob_dir.tests

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/hush_test/hush-glob/bash_brace1.tests+1 -1
@@ -4,7 +4,7 @@ v='*brace1.t*'; echo $v
# ...but not brace expanded:
v='*{b,b}race1.t*'; echo $v
-# whereas direct brces are expanded:
+# whereas direct braces are expanded:
echo *{b,b}race1.t*
echo Done: $?
shell/hush_test/hush-glob/glob_dir.right+19 -0
@@ -0,0 +1,19 @@
+dirtest/z.tmp
+dirtest/z.tmp
+dirtest/z.tmp
+dirtest/z.tmp
+dirtest/z.tmp
+dirtest/z.tmp
+dirtest/z.tmp
+dirtest/z.tmp
+dirtest/z.tmp
+
+*/z.tmp
+*/z.*
+*/?.*
+*/z*p
+d*r*e*t/z*p
+*\/z.tmp
+*/z.*
+*/z*p
+d*r*e*t/z*p
shell/hush_test/hush-glob/glob_dir.tests+25 -0
@@ -0,0 +1,25 @@
+mkdir dirtest
+ >dirtest/z.tmp
+
+echo */z.tmp
+echo */z.*
+echo */?.*
+echo */z*p
+echo d*r*e*t/z*p
+echo *"/z.t"mp
+echo */z"."*
+echo *"/z"*"p"
+echo "d"*r*e*t"/"z*p
+echo
+echo \*/z.tmp
+echo "*"/z.*
+echo */"?".*
+echo */z"*p"
+echo d*r*e\*t/z*p
+echo *"\\/z.t"mp
+echo */z".*"
+echo *"/z"\*"p"
+echo "d*"r*e*t"/"z*p
+
+rm dirtest/z.tmp
+rmdir dirtest