From 385510fd05c5c89e265e9dec478cf7be6f2ff50f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 2 Jan 2017 21:27:13 -0700 Subject: tests: Add a test for -inum --- tests.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index 444112d..06d319f 100755 --- a/tests.sh +++ b/tests.sh @@ -780,9 +780,16 @@ function test_0126() { bfs_diff basic/g -depth -print -name h -quit } +function test_0127() { + [ "$BSD" -o "$GNU" ] || return 0 + + local inode="$(ls -id basic/k/foo/bar | cut -f1 -d' ')" + bfs_diff basic -inum "$inode" +} + result=0 -for i in {1..126}; do +for i in {1..127}; do test="test_$(printf '%04d' $i)" if [ -t 1 ]; then -- cgit v1.2.3