aboutsummaryrefslogtreecommitdiff
path: root/testsuite/dirname
diff options
context:
space:
mode:
authorGravatar Matt Kraai <kraai@debian.org>2001-10-30 23:11:20 +0000
committerGravatar Matt Kraai <kraai@debian.org>2001-10-30 23:11:20 +0000
commit3889078dbe09a9d85b359e9c0c0c225e0bbea343 (patch)
treee258582c0f14f06750e480e2c244260e79860fd0 /testsuite/dirname
parent999623e9736d21177d1f437679b334e0347a6e0f (diff)
downloadbusybox-3889078dbe09a9d85b359e9c0c0c225e0bbea343.tar.gz
busybox-3889078dbe09a9d85b359e9c0c0c225e0bbea343.tar.bz2
Merge test suite.
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) = .