1
0
Fork 0
mirror of synced 2024-11-04 16:28:56 -05:00
dotbot/test/tests/link-canonicalize.bash

21 lines
420 B
Bash
Raw Normal View History

2020-01-03 16:07:44 -05:00
test_description='linking canonicalizes path by default'
. '../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
- link:
~/.f:
path: f
EOF
${DOTBOT_EXEC} -c dotfiles-symlink/${INSTALL_CONF}
'
test_expect_success 'test' '
2020-12-18 14:34:28 -05:00
[ "$(readlink ~/.f | cut -d/ -f5-)" = "dotfiles/f" ]
2020-01-03 16:07:44 -05:00
'