Skip to content

Commit

Permalink
Add test for symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
gaul committed Oct 24, 2015
1 parent 4252fab commit 86f95b0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/integration-test-main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,22 @@ function test_special_characters {
ls 'specialµ' 2>&1 | grep -q 'No such file or directory'
}

function test_symlink {
echo "Testing symlinks ..."

rm -f $TEST_TEXT_FILE
rm -f $ALT_TEST_TEXT_FILE
echo foo > $TEST_TEXT_FILE

ln -s $TEST_TEXT_FILE $ALT_TEST_TEXT_FILE
cmp $TEST_TEXT_FILE $ALT_TEST_TEXT_FILE

rm -f $TEST_TEXT_FILE

[ -L $ALT_TEST_TEXT_FILE ]
[ ! -f $ALT_TEST_TEXT_FILE ]
}

function test_extended_attributes {
command -v setfattr >/dev/null 2>&1 || \
{ echo "Skipping extended attribute tests" ; return; }
Expand Down Expand Up @@ -360,6 +376,7 @@ function run_all_tests {
# TODO: test disabled until S3Proxy 1.5.0 is released
#test_multipart_copy
test_special_characters
test_symlink
test_extended_attributes
}

Expand Down

0 comments on commit 86f95b0

Please sign in to comment.