GitHub user chewbranca opened a pull request:
https://github.com/apache/couchdb/pull/266
1963 eunit bigcouch
This adds a rebar plugin to bootstrap to tmp test environment with data
folders and the relevant ini files. To run this right now you'll need to `cp
src/couch/priv/couchjs bin/couchjs` until we figure out how to handle that
properly.
One issue with the setup_eunit command is that the rebar templates require
all variables to be defined in order to overwrite them. So I've set default
destinations of `/tmp`, which I'm not convinced is great. The test suite won't
run, but it will create the files and folders in there. One hacky solution
would be to use `/somelongdirectorythatdoesntexist` that will cause rebar to
explode, but I'm not a huge fan of that approach.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/couchdb 1963-eunit-bigcouch
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb/pull/266.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #266
----
commit 0955cc946d064772aa4c0148bd28519c01dd0631
Author: Russell Branca <[email protected]>
Date: 2014-08-29T19:32:52Z
Add setup_eunit rebar command
This adds a rebar plugin that introduces the setup_eunit function to
bootstrap the test ini files necessary to run the eunit test suite. It
grabs the ini template files from rel/overlay/*.ini primarily to be
able to set an absolute path for data directories and the prefix based
on the location of the CouchDB source directory.
commit 3b2c3f52e9df903469ca0d7610b3e12d43108b70
Author: Russell Branca <[email protected]>
Date: 2014-08-29T19:33:49Z
Set the BUILDDIR environment variable for use in eunit tests
commit 63703d7e43d2d45531834edc2d844eb9685d6c96
Author: Russell Branca <[email protected]>
Date: 2014-08-29T19:34:43Z
Disable problematic tests
commit c7cf437e1845ceecde9eb0652963e0c145ad67e3
Author: Russell Branca <[email protected]>
Date: 2014-08-29T19:45:42Z
TMP: use 1963-eunit-bigcouch branches
commit 36bd96a3b33616b9d332273b9f978aba5b5c243d
Author: Russell Branca <[email protected]>
Date: 2014-08-29T20:45:54Z
TMP: enable verbose eunit output
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---