We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e6d82 commit 8b03fe8Copy full SHA for 8b03fe8
tests/lddtree_test
@@ -4,7 +4,9 @@
4
5
init_tests \
6
lddtree_usage \
7
- lddtree_version
+ lddtree_version \
8
+ lddtree_sh \
9
+ lddtree_sh_flat
10
11
lddtree_usage_body() {
12
atf_check -o match:"Usage:" lddtree.sh -h
@@ -16,3 +18,20 @@ lddtree_version_body() {
16
18
-o match:'lddtree-[0-9]*.[0-9]*' \
17
19
lddtree.sh -V
20
}
21
+
22
+# test without -R
23
+lddtree_sh_body() {
24
+ atf_check -s exit:0 \
25
+ -o match:'sh => /bin/sh \(interpreter .*\)' \
26
+ lddtree.sh /bin/sh
27
+}
28
29
+# test without -R, flat output
30
+# should only output lines prefixed with /
31
+lddtree_sh_flat_body() {
32
33
+ -o match:'/bin/sh' \
34
+ -o not-match:'\(interpreter .*\)' \
35
+ -o not-match:'^[^/]' \
36
+ lddtree.sh -l /bin/sh
37
0 commit comments