diff options
Diffstat (limited to 'test/tests/link-no-canonicalize.bash')
-rw-r--r-- | test/tests/link-no-canonicalize.bash | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/tests/link-no-canonicalize.bash b/test/tests/link-no-canonicalize.bash new file mode 100644 index 0000000..f9ccb99 --- /dev/null +++ b/test/tests/link-no-canonicalize.bash @@ -0,0 +1,23 @@ +test_description='linking path canonicalization can be disabled' +. '../test-lib.bash' + +test_expect_success 'setup' ' +echo "apple" > ${DOTFILES}/f && +ln -s dotfiles dotfiles-symlink +' + +test_expect_success 'run' ' +cat > "${DOTFILES}/${INSTALL_CONF}" <<EOF +- defaults: + link: + canonicalize-path: false +- link: + ~/.f: + path: f +EOF +${DOTBOT_EXEC} -c ./dotfiles-symlink/${INSTALL_CONF} +' + +test_expect_success 'test' ' +[ "$(readlink ~/.f | cut -d/ -f4-)" = "dotfiles-symlink/f" ] +' |