summaryrefslogtreecommitdiff
path: root/test/tests/link-glob-ambiguous.bash
blob: 97d42cdcf1435d0cdff39b951ee23d43a3a95522 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
test_description='link glob ambiguous'
. '../test-lib.bash'

test_expect_success 'setup' '
mkdir ${DOTFILES}/bin
'

test_expect_failure 'run 1' '
run_dotbot <<EOF
- link:
    ~/bin/:
        path: bin
        glob: true
EOF
'

test_expect_failure 'test 1' '
test -d ~/bin
'

test_expect_failure 'run 2' '
run_dotbot <<EOF
- link:
    ~/bin/:
        path: bin/
        glob: true
EOF
'

test_expect_failure 'test 2' '
test -d ~/bin
'

test_expect_success 'run 3' '
run_dotbot <<EOF
- link:
    ~/bin:
        path: bin
        glob: true
EOF
'

test_expect_success 'test 3' '
test -d ~/bin
'