From 8b3b9aa1bdbd3a1d721873e4359f650ff52427e5 Mon Sep 17 00:00:00 2001 From: Isaac Dunham Date: Sun, 1 Jun 2014 17:47:19 -0500 Subject: The tests for link and du are attached. --- scripts/test/link.test | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/test/link.test (limited to 'scripts/test/link.test') diff --git a/scripts/test/link.test b/scripts/test/link.test new file mode 100755 index 00000000..3bfdc1f1 --- /dev/null +++ b/scripts/test/link.test @@ -0,0 +1,8 @@ +#!/bin/bash + +[ -e testing.sh ] && . testing.sh + +echo "" >foo +testing "link has same inode" "link foo bar && stat -c '%DI%i bar'" "stat -c '%DI%i' foo" "" "" +testing "link fails on non-existent file" "link foo/foo baz || echo GOOD" "GOOD\n" "" "" +rm -f foo bar -- cgit v1.2.3