Added test to check ordered config
This commit is contained in:
parent
a3bc61c97d
commit
57dde3bf99
1 changed files with 26 additions and 0 deletions
26
test/tests/config-ordered.bash
Normal file
26
test/tests/config-ordered.bash
Normal file
|
@ -0,0 +1,26 @@
|
|||
test_description='config loaded in order'
|
||||
. '../test-lib.bash'
|
||||
|
||||
test_expect_success 'setup' '
|
||||
mkdir ${DOTFILES}/a &&
|
||||
mkdir ${DOTFILES}/b &&
|
||||
mkdir ${DOTFILES}/c
|
||||
echo "orange" > ${DOTFILES}/d
|
||||
'
|
||||
|
||||
test_expect_success 'run' '
|
||||
run_dotbot <<EOF
|
||||
- link:
|
||||
~/.a: a
|
||||
~/.a/b: b
|
||||
~/.a/b/c: c
|
||||
~/.a/b/c/d: d
|
||||
EOF
|
||||
'
|
||||
|
||||
test_expect_success 'test' '
|
||||
test -d ~/.a &&
|
||||
test -d ~/.a/b &&
|
||||
test -d ~/.a/b/c &&
|
||||
grep "orange" ~/.a/b/c/d
|
||||
'
|
Loading…
Reference in a new issue