aboutsummaryrefslogtreecommitdiff
path: root/scripts/test/link.test
blob: 3bfdc1f1f0f1d871ff95f69e66542f5c3219b3ee (plain)
1
2
3
4
5
6
7
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