From 48dfba55b283120a534f0e5ed9c0f4ee694ad5df Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 28 Mar 2021 15:20:20 -0400 Subject: test: Add more tests for -H/-L and -type l --- tests/test_H_type_l.out | 2 ++ tests/test_L.out | 2 ++ tests/test_L_depth.out | 2 ++ tests/test_L_type_l.out | 1 + tests/test_L_xtype_l.out | 2 ++ tests/test_expr_flag_path.out | 1 + tests/test_expr_path_flag.out | 1 + tests/test_flag_expr_path.out | 1 + tests/test_follow.out | 2 ++ tests/test_path_expr_flag.out | 1 + tests/test_path_flag_expr.out | 1 + tests/test_printf_H.out | 1 + tests/test_printf_l_nonlink.out | 25 +++++++++++++------------ tests/test_type_l.out | 1 + tests/test_xtype_l.out | 1 + 15 files changed, 32 insertions(+), 12 deletions(-) create mode 100644 tests/test_H_type_l.out create mode 100644 tests/test_L_type_l.out create mode 100644 tests/test_type_l.out (limited to 'tests') diff --git a/tests/test_H_type_l.out b/tests/test_H_type_l.out new file mode 100644 index 0000000..e67f10b --- /dev/null +++ b/tests/test_H_type_l.out @@ -0,0 +1,2 @@ +links/skip/broken +links/skip/link diff --git a/tests/test_L.out b/tests/test_L.out index cf21a44..e24f4f7 100644 --- a/tests/test_L.out +++ b/tests/test_L.out @@ -7,9 +7,11 @@ links/notdir links/skip links/symlink links/deeply/nested +links/skip/broken links/skip/dir links/skip/file links/skip/link +links/deeply/nested/broken links/deeply/nested/dir links/deeply/nested/file links/deeply/nested/link diff --git a/tests/test_L_depth.out b/tests/test_L_depth.out index cf21a44..e24f4f7 100644 --- a/tests/test_L_depth.out +++ b/tests/test_L_depth.out @@ -7,9 +7,11 @@ links/notdir links/skip links/symlink links/deeply/nested +links/skip/broken links/skip/dir links/skip/file links/skip/link +links/deeply/nested/broken links/deeply/nested/dir links/deeply/nested/file links/deeply/nested/link diff --git a/tests/test_L_type_l.out b/tests/test_L_type_l.out new file mode 100644 index 0000000..725d398 --- /dev/null +++ b/tests/test_L_type_l.out @@ -0,0 +1 @@ +links/skip/broken diff --git a/tests/test_L_xtype_l.out b/tests/test_L_xtype_l.out index 1cb0e19..93cfc26 100644 --- a/tests/test_L_xtype_l.out +++ b/tests/test_L_xtype_l.out @@ -2,5 +2,7 @@ links/broken links/notdir links/skip links/symlink +links/skip/broken links/skip/link +links/deeply/nested/broken links/deeply/nested/link diff --git a/tests/test_expr_flag_path.out b/tests/test_expr_flag_path.out index 3112cd2..e67f10b 100644 --- a/tests/test_expr_flag_path.out +++ b/tests/test_expr_flag_path.out @@ -1 +1,2 @@ +links/skip/broken links/skip/link diff --git a/tests/test_expr_path_flag.out b/tests/test_expr_path_flag.out index 3112cd2..e67f10b 100644 --- a/tests/test_expr_path_flag.out +++ b/tests/test_expr_path_flag.out @@ -1 +1,2 @@ +links/skip/broken links/skip/link diff --git a/tests/test_flag_expr_path.out b/tests/test_flag_expr_path.out index 3112cd2..e67f10b 100644 --- a/tests/test_flag_expr_path.out +++ b/tests/test_flag_expr_path.out @@ -1 +1,2 @@ +links/skip/broken links/skip/link diff --git a/tests/test_follow.out b/tests/test_follow.out index cf21a44..e24f4f7 100644 --- a/tests/test_follow.out +++ b/tests/test_follow.out @@ -7,9 +7,11 @@ links/notdir links/skip links/symlink links/deeply/nested +links/skip/broken links/skip/dir links/skip/file links/skip/link +links/deeply/nested/broken links/deeply/nested/dir links/deeply/nested/file links/deeply/nested/link diff --git a/tests/test_path_expr_flag.out b/tests/test_path_expr_flag.out index 3112cd2..e67f10b 100644 --- a/tests/test_path_expr_flag.out +++ b/tests/test_path_expr_flag.out @@ -1 +1,2 @@ +links/skip/broken links/skip/link diff --git a/tests/test_path_flag_expr.out b/tests/test_path_flag_expr.out index 3112cd2..e67f10b 100644 --- a/tests/test_path_flag_expr.out +++ b/tests/test_path_flag_expr.out @@ -1 +1,2 @@ +links/skip/broken links/skip/link diff --git a/tests/test_printf_H.out b/tests/test_printf_H.out index 320c9e7..116b425 100644 --- a/tests/test_printf_H.out +++ b/tests/test_printf_H.out @@ -25,6 +25,7 @@ %p(links/deeply/nested) %d(2) %f(nested) %h(links/deeply) %H(links) %P(deeply/nested) %y(d) %p(basic/k/foo/bar) %d(3) %f(bar) %h(basic/k/foo) %H(basic) %P(k/foo/bar) %y(f) %p(basic/l/foo/bar) %d(3) %f(bar) %h(basic/l/foo) %H(basic) %P(l/foo/bar) %y(d) +%p(links/deeply/nested/broken) %d(3) %f(broken) %h(links/deeply/nested) %H(links) %P(deeply/nested/broken) %y(l) %p(links/deeply/nested/dir) %d(3) %f(dir) %h(links/deeply/nested) %H(links) %P(deeply/nested/dir) %y(d) %p(links/deeply/nested/file) %d(3) %f(file) %h(links/deeply/nested) %H(links) %P(deeply/nested/file) %y(f) %p(links/deeply/nested/link) %d(3) %f(link) %h(links/deeply/nested) %H(links) %P(deeply/nested/link) %y(l) diff --git a/tests/test_printf_l_nonlink.out b/tests/test_printf_l_nonlink.out index e356c24..66e2908 100644 --- a/tests/test_printf_l_nonlink.out +++ b/tests/test_printf_l_nonlink.out @@ -1,12 +1,13 @@ -| links -> | -| links/file -> | -| links/broken -> nowhere | -| links/deeply -> | -| links/symlink -> file | -| links/hardlink -> | -| links/skip -> deeply/nested | -| links/notdir -> symlink/file | -| links/deeply/nested -> | -| links/deeply/nested/dir -> | -| links/deeply/nested/file -> | -| links/deeply/nested/link -> file | +| links -> | +| links/file -> | +| links/broken -> nowhere | +| links/deeply -> | +| links/symlink -> file | +| links/hardlink -> | +| links/skip -> deeply/nested | +| links/notdir -> symlink/file | +| links/deeply/nested -> | +| links/deeply/nested/dir -> | +| links/deeply/nested/file -> | +| links/deeply/nested/link -> file | +| links/deeply/nested/broken -> nowhere | diff --git a/tests/test_type_l.out b/tests/test_type_l.out new file mode 100644 index 0000000..f2c8b19 --- /dev/null +++ b/tests/test_type_l.out @@ -0,0 +1 @@ +links/skip diff --git a/tests/test_xtype_l.out b/tests/test_xtype_l.out index 8b0a404..62d3ae4 100644 --- a/tests/test_xtype_l.out +++ b/tests/test_xtype_l.out @@ -1,2 +1,3 @@ links/broken links/notdir +links/deeply/nested/broken -- cgit v1.2.3