19 lines
316 B
Bash
19 lines
316 B
Bash
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
|
|
'
|