summaryrefslogtreecommitdiff
path: root/test/tests/clean-missing.bash
blob: dc6c84c11f0db70937e86337159a797bbaea0a6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
test_description='clean deletes links to missing files'
. '../test-lib.bash'

test_expect_success 'setup' '
touch ${DOTFILES}/f &&
ln -s ${DOTFILES}/f ~/.f &&
ln -s ${DOTFILES}/g ~/.g
'

test_expect_success 'run' '
run_dotbot <<EOF
- clean: ["~"]
EOF
'

test_expect_success 'test' '
test -f ~/.f &&
! test -h ~/.g
'