summaryrefslogtreecommitdiff
path: root/test/tests/shim.bash
blob: ddacae34786a2358181562720420ef220f01da1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
test_description='install shim works'
. '../test-lib.bash'

test_expect_success 'setup' '
cd ${DOTFILES}
git init
git submodule add ${BASEDIR} dotbot
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
'