aboutsummaryrefslogtreecommitdiff
path: root/testsuite/dirname
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/dirname')
-rw-r--r--testsuite/dirname/dirname-handles-absolute-path1
-rw-r--r--testsuite/dirname/dirname-handles-empty-path1
-rw-r--r--testsuite/dirname/dirname-handles-multiple-slashes1
-rw-r--r--testsuite/dirname/dirname-handles-relative-path1
-rw-r--r--testsuite/dirname/dirname-handles-root1
-rw-r--r--testsuite/dirname/dirname-handles-single-component1
6 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/dirname/dirname-handles-absolute-path b/testsuite/dirname/dirname-handles-absolute-path
new file mode 100644
index 000000000..ca1a51b3a
--- /dev/null
+++ b/testsuite/dirname/dirname-handles-absolute-path
@@ -0,0 +1 @@
+test $(busybox dirname /foo/bar/baz) = /foo/bar
diff --git a/testsuite/dirname/dirname-handles-empty-path b/testsuite/dirname/dirname-handles-empty-path
new file mode 100644
index 000000000..04134a58f
--- /dev/null
+++ b/testsuite/dirname/dirname-handles-empty-path
@@ -0,0 +1 @@
+test $(busybox dirname '') = .
diff --git a/testsuite/dirname/dirname-handles-multiple-slashes b/testsuite/dirname/dirname-handles-multiple-slashes
new file mode 100644
index 000000000..286f25361
--- /dev/null
+++ b/testsuite/dirname/dirname-handles-multiple-slashes
@@ -0,0 +1 @@
+test $(busybox dirname foo/bar///baz) = foo/bar
diff --git a/testsuite/dirname/dirname-handles-relative-path b/testsuite/dirname/dirname-handles-relative-path
new file mode 100644
index 000000000..ffe4ab459
--- /dev/null
+++ b/testsuite/dirname/dirname-handles-relative-path
@@ -0,0 +1 @@
+test $(busybox dirname foo/bar/baz) = foo/bar
diff --git a/testsuite/dirname/dirname-handles-root b/testsuite/dirname/dirname-handles-root
new file mode 100644
index 000000000..6bd62b8a1
--- /dev/null
+++ b/testsuite/dirname/dirname-handles-root
@@ -0,0 +1 @@
+test $(busybox dirname /) = /
diff --git a/testsuite/dirname/dirname-handles-single-component b/testsuite/dirname/dirname-handles-single-component
new file mode 100644
index 000000000..24f9ae163
--- /dev/null
+++ b/testsuite/dirname/dirname-handles-single-component
@@ -0,0 +1 @@
+test $(busybox dirname foo) = .