diff options
Diffstat (limited to 'tests/02_symlink_add_remove.sh')
-rwxr-xr-x | tests/02_symlink_add_remove.sh | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/tests/02_symlink_add_remove.sh b/tests/02_symlink_add_remove.sh index b3280c2..e4b81a9 100755 --- a/tests/02_symlink_add_remove.sh +++ b/tests/02_symlink_add_remove.sh @@ -1,7 +1,7 @@ #!/bin/bash -TEST_ID="01" -TEST_NAME="Simple symlink diff" +TEST_ID="03" +TEST_NAME="Symlink add/remove" CREATE=`pwd`/$1 DEPLOY=`pwd`/$2 @@ -14,18 +14,19 @@ TEST_TOOLS=$3 # This test checks that normal files content and metadata are function setup { - ln -s /foo $ORIGIN/a && \ - ln -s /bar $TARGET/a && \ - chown -h :cdrom $TARGET/a + ln -s /foo $ORIGIN/remove && \ + ln -s /bar $TARGET/add && \ + chown -h :cdrom $TARGET/add } # check_same_mtime FILE_A FILE_B function check_results { - test -L $ORIGIN/a && \ - check_symlink $ORIGIN/a "/bar" && \ - check_group $ORIGIN/a cdrom && \ - check_same_mtime $ORIGIN/a $ORIGIN/a + test -L $ORIGIN/add && \ + test ! -L $ORIGIN/remove && \ + check_symlink $ORIGIN/add "/bar" && \ + check_same_mtime $ORIGIN/add $TARGET/add && \ + check_same_uidgid $ORIGIN/add $TARGET/add } ############################################# |