2018-05-24 10:30:24 -04:00
|
|
|
test_description='install shim works'
|
|
|
|
. '../test-lib.bash'
|
|
|
|
|
|
|
|
test_expect_success 'setup' '
|
|
|
|
cd ${DOTFILES}
|
|
|
|
git init
|
2020-01-03 15:20:00 -05:00
|
|
|
git submodule add ${BASEDIR} dotbot
|
2018-05-24 10:30:24 -04:00
|
|
|
cp ./dotbot/tools/git-submodule/install .
|
|
|
|
echo "pear" > ${DOTFILES}/foo
|
|
|
|
'
|
|
|
|
|
|
|
|
test_expect_success 'run' '
|
|
|
|
cat > ${DOTFILES}/install.conf.yaml <<EOF
|
|
|
|
- link:
|
|
|
|
~/.foo: foo
|
|
|
|
EOF
|
|
|
|
${DOTFILES}/install
|
|
|
|
'
|
|
|
|
|
|
|
|
test_expect_success 'test' '
|
|
|
|
grep "pear" ~/.foo
|
|
|
|
'
|