summaryrefslogtreecommitdiff
path: root/test/test-lib.bash
Commit message (Collapse)AuthorAge
* Unify Vagrant and Travis-CI testsAnish Athalye2020-01-03
| | | | | | | | | | 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.
* Add PyPI packageAnish Athalye2018-05-30
| | | | | This patch also makes the '-d' argument optional, with the base directory defaulting to the directory of the configuration file.
*-. Merge branches 'yaml' and 'basedir'Anish Athalye2018-05-29
|\ \
| | * Fix handling of base directoryAnish Athalye2018-05-24
| |/ |/| | | | | | | | | | | | | Prior to this patch, Dotbot was relying on running with the base directory being the current working directory. In practice, it was relying on the install shim to set up this context. It makes more sense sense to actually execute `chdir()` within Dotbot itself, rather than relying on the install shim to do so.
| * Point PyYAML dependency to official repositoryAnish Athalye2018-05-24
|/ | | | | | | | | | | | | | | | Previously, PyYAML was hosted on BitBucket, so we had a mirror of the repo on GitHub. Now, official hosting has moved to GitHub, so we can point to the official repository instead. Thanks to Marco A. Feliu <marco.feliu@nianet.org> for pointing this out. This patch also updates the install shim to update submodule URLs. To preserve the functionality of earlier Dotbot versions, we will need to maintain 'https://github.com/anishathalye/pyyaml'. Because old versions of the install shim used with new Dotbot versions will not update submodule URLs, we will need to keep the old repository in sync with the upstream repository as we upgrade PyYAML versions. This patch also upgrades the dependency to PyYAML 3.12.
* Fix bug in test harnessAnish Athalye2018-03-27
| | | | | | | | | | | | Because 'bin/dotbot' is a hybrid sh/Python script that finds the appropriate Python binary and then runs, the test code should not invoke it as an sh script when sh does not source the pyenv initialization script. The fix implemented in this patch is to directly run 'bin/dotbot' as a Python script using 'python', which when called from bash, will run with the correct Python version (because bash is set up to source the pyenv initialization script).
* Add Travis CI supportBenjamin Chrétien2016-01-16
| | | | | The test suite has been slightly modified to allow running tests without Vagrant on Travis.
* Use standard library JSON parser for JSON filesAnish Athalye2016-01-13
| | | | | | This patch reverts the changes to the README made in 57265f78b4e4f6ca67393f55b2b08f6f45a02ff1 and makes it so that Dotbot supports JSON files with tab characters.
* Add testing framework and testsAnish Athalye2015-05-05