diff options
Diffstat (limited to 'testsuite/dirname')
-rw-r--r-- | testsuite/dirname/dirname-handles-absolute-path | 1 | ||||
-rw-r--r-- | testsuite/dirname/dirname-handles-empty-path | 1 | ||||
-rw-r--r-- | testsuite/dirname/dirname-handles-multiple-slashes | 1 | ||||
-rw-r--r-- | testsuite/dirname/dirname-handles-relative-path | 1 | ||||
-rw-r--r-- | testsuite/dirname/dirname-handles-root | 1 | ||||
-rw-r--r-- | testsuite/dirname/dirname-handles-single-component | 1 |
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 0000000..ca1a51b --- /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 0000000..04134a5 --- /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 0000000..286f253 --- /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 0000000..ffe4ab4 --- /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 0000000..6bd62b8 --- /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 0000000..24f9ae1 --- /dev/null +++ b/testsuite/dirname/dirname-handles-single-component @@ -0,0 +1 @@ +test $(busybox dirname foo) = . |