6d24613b0b
This patch makes the tests (including the test driver) run entirely inside Vagrant, which avoids calling the very slow `vagrant` driver many times for running the tests. On my machine, `./test` runs in 22 seconds, down from hundreds of seconds prior to this patch. This also has the nice side effect of matching how the Travis CI tests were run, so there's no need for a separate `test_travis` anymore.
22 lines
396 B
Bash
22 lines
396 B
Bash
test_description='install shim works'
|
|
. '../test-lib.bash'
|
|
|
|
test_expect_success 'setup' '
|
|
cd ${DOTFILES}
|
|
git init
|
|
git submodule add ${BASEDIR} dotbot
|
|
cp ./dotbot/tools/git-submodule/install .
|
|
echo "pear" > ${DOTFILES}/foo
|
|
'
|
|
|
|
test_expect_success 'run' '
|
|
cat > ${DOTFILES}/install.conf.yaml <<EOF
|
|
- link:
|
|
~/.foo: foo
|
|
EOF
|
|
${DOTFILES}/install
|
|
'
|
|
|
|
test_expect_success 'test' '
|
|
grep "pear" ~/.foo
|
|
'
|