summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-13 13:13:51 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-13 13:13:51 -0500
commita54c9309c3291a960fcbcbc9e6407330a9edd044 (patch)
treee9856b49a15deb4b47c03540cfc3208704472876 /tests.sh
parent55fb616348d114a1451ab6cf502a3768d6284e9a (diff)
downloadbfs-a54c9309c3291a960fcbcbc9e6407330a9edd044.tar.xz
Implement -xtype.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index 128c63c..046fddd 100755
--- a/tests.sh
+++ b/tests.sh
@@ -183,7 +183,23 @@ function test_0028() {
find_diff "$links" -samefile "$links/a"
}
-for i in {1..28}; do
+function test_0029() {
+ find_diff "$links" -xtype l
+}
+
+function test_0030() {
+ find_diff "$links" -xtype f
+}
+
+function test_0031() {
+ find_diff -L "$links" -xtype l 2>/dev/null
+}
+
+function test_0032() {
+ find_diff -L "$links" -xtype f 2>/dev/null
+}
+
+for i in {1..32}; do
test="test_$(printf '%04d' $i)"
"$test" "$dir"
status=$?