1
0
Fork 0
mirror of synced 2024-11-12 19:58:57 -05:00

Added test to check ordered config

This commit is contained in:
Brian Knobbs 2015-06-14 19:46:31 -04:00
parent a3bc61c97d
commit 57dde3bf99

View 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
'