bjnortier/shapesmith — Issue #2: errors running tests: ./rebar eunit ct skip_deps=true
Author: stepheneb
Created: 2011-10-27 19:43:45+00:00
State: open

I use the [homebrew](http://mxcl.github.com/homebrew/) package manager on Mac OS X 10.6.8

Right now installing riak and json_spirit with homebrew need extra steps (see below). When these are resolved installing the dependencies (apart from oce) shoul look like this:

$ brew install ftgl json_spirit riak

For now I first installed ftgl

$ brew install ftgl

Then I created a recipe for json_spirit -- however it's not yet merged into homebrew -- see pull request: [JSON Spirit v4.04](https://github.com/mxcl/homebrew/pull/8326)

If you have hombrew installed you can install using that recipe like this:

$ brew install https://raw.github.com/stepheneb/homebrew/1ba101eb9fa23635a8e875fc1b24e228996193f6/Library/Formula/json_spirit.rb

There was also an issue installing riak with homebrew because the erlang formula was updated to R14B04, but the Riak make is looking for version R14B0 2 or 3: https://github.com/mxcl/homebrew/issues/8269

So again I installed riak like this:

$ brew install https://raw.github.com/adamv/homebrew/8019abfb62a25d2916355999f2ce4d70ba23b31b/Library/Formula/riak.rb

Building and installing oce v0.4.0 seem to work ok:

$ git clone https://github.com/tpaviot/oce.git oce-git
$ cd oce-git/
$ git checkout -b 0.4.0 OCE-0.4.0
$ mkdir build
$ cd build/
$ cmake ..
$ make -j4
$ make install/strip

riak seems to be working:

$ ulimit -n 1024
$ riak start
$ curl -v http://127.0.0.1:8098/riak/test
* About to connect() to 127.0.0.1 port 8098 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8098 (#0)
> GET /riak/test HTTP/1.1
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8r zlib/1.2.3
> Host: 127.0.0.1:8098
> Accept: */*
>
< HTTP/1.1 200 OK
< Vary: Accept-Encoding
< Server: MochiWeb/1.1 WebMachine/1.9.0 (participate in the frantic)
< Date: Thu, 27 Oct 2011 19:25:48 GMT
< Content-Type: application/json
< Content-Length: 422
<
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
{"props":{"name":"test","allow_mult":false,"basic_quorum":false,"big_vclock":50,"chash_keyfun":{"mod":"riak_core_util","fun":"chash_std_keyfun"},"dw":"quorum","last_write_wins":false,"linkfun":{"mod":"riak_kv_wm_link_walker","fun":"mapreduce_linkfun"},"n_val":3,"notfound_ok":true,"old_vclock":86400,"postcommit":[],"pr":0,"precommit":[],"pw":0,"r":"quorum","rw":"quorum","small_vclock":10,"w":"quorum","young_vclock":20}}

However when I run the tests in the node directory I'm getting errors:

$ ./rebar eunit ct skip_deps=true
==> node (eunit)
All 82 tests passed.
==> node (ct)
Showing log
--- Test run on 2011/10/27 15:25:59 ---

Common Test v1.5.5 starting (cwd is /Users/stephen/dev/javascript/webgl/shapesmith-git/node)

Common Test: Running make in test directories...

CWD set to: "/Users/stephen/dev/javascript/webgl/shapesmith-git/node/logs/ct_run.test@dhcp170.concord.org.2011-10-27_15.25.59"

TEST INFO: 1 test(s), 12 case(s) in 5 suite(s)

Testing shapesmith-git.node: Starting test, 12 test cases
** Found 0 name clashes in code paths
opening log file: "priv/log/access.log.2011_10_27_19"
INFO: [node_worker_server] {'EXIT',<0.256.0>,shutdown}
INFO: [node_worker_server] {'EXIT',<0.256.0>,shutdown}
node_worker_server:terminate(shutdown)

=INFO REPORT==== 27-Oct-2011::15:26:00 ===
application: node
exited: stopped
type: temporary

- - - - - - - - - - - - - - - - - - - - - - - - - -
node_document_resource_SUITE:save_simple failed on line 51
Reason: {badmatch,{error,{validation,{struct,[{<<"miss"...>>,<<...>>...}
- - - - - - - - - - - - - - - - - - - - - - - - - -

Testing shapesmith-git.node: *** FAILED *** test case 3 of 12
INFO: [node_worker_server] {'EXIT',<0.298.0>,shutdown}
INFO: [node_worker_server] {'EXIT',<0.298.0>,shutdown}
node_worker_server:terminate(shutdown)
node_worker_server:terminate(shutdown)

=INFO REPORT==== 27-Oct-2011::15:26:00 ===
application: node
exited: stopped
type: temporary

- - - - - - - - - - - - - - - - - - - - - - - - - -
node_geom_resource_SUITE:create_update failed on line 43
Reason: {badmatch,{ok,{{"HTTP/1.1",400,"Bad Request"},
[{"date"...}
- - - - - - - - - - - - - - - - - - - - - - - - - -

Testing shapesmith-git.node: *** FAILED *** test case 4 of 12

- - - - - - - - - - - - - - - - - - - - - - - - - -
node_geom_resource_SUITE:nested_geoms failed on line 60
Reason: {badmatch,{ok,{{"HTTP/1.1",400,"Bad Request"},
[{"date"...}
- - - - - - - - - - - - - - - - - - - - - - - - - -

Testing shapesmith-git.node: *** FAILED *** test case 5 of 12

- - - - - - - - - - - - - - - - - - - - - - - - - -
node_geom_resource_SUITE:validation_create failed on line 119
Reason: {badmatch,{struct,[{<<"validation">>,{struct,[{<<...>>,...}]...}
- - - - - - - - - - - - - - - - - - - - - - - - - -

Testing shapesmith-git.node: *** FAILED *** test case 6 of 12

- - - - - - - - - - - - - - - - - - - - - - - - - -
node_geom_resource_SUITE:validation_update failed on line 128
Reason: {badmatch,{ok,{{"HTTP/1.1",400,"Bad Request"},
[{"date"...}
- - - - - - - - - - - - - - - - - - - - - - - - - -

Testing shapesmith-git.node: *** FAILED *** test case 7 of 12
INFO: [node_worker_server] {'EXIT',<0.342.0>,shutdown}
INFO: [node_worker_server] {'EXIT',<0.342.0>,shutdown}
node_worker_server:terminate(shutdown)
node_worker_server:terminate(shutdown)

=INFO REPORT==== 27-Oct-2011::15:26:00 ===
application: node
exited: stopped
type: temporary

=INFO REPORT==== 27-Oct-2011::15:26:00 ===
application: inets
exited: stopped
type: temporary

- - - - - - - - - - - - - - - - - - - - - - - - - -
node_master_SUITE:create_simple failed on line 49
Reason: {badmatch,{error,{validation,{struct,[{<<"miss"...>>,<<...>>...}
- - - - - - - - - - - - - - - - - - - - - - - - - -

INFO: [node_worker_server] {'EXIT',<0.412.0>,shutdown}
INFO: [node_worker_server] {'EXIT',<0.412.0>,shutdown}
node_worker_server:terminate(shutdown)
node_worker_server:terminate(shutdown)

=INFO REPORT==== 27-Oct-2011::15:26:00 ===
application: node
exited: stopped
type: temporary
Testing shapesmith-git.node: *** FAILED *** test case 8 of 12

- - - - - - - - - - - - - - - - - - - - - - - - - -
node_master_SUITE:create_boolean failed on line 73
Reason: {badmatch,{error,{validation,{struct,[{<<"miss"...>>,<<...>>...}
- - - - - - - - - - - - - - - - - - - - - - - - - -

INFO: [node_worker_server] {'EXIT',<0.443.0>,shutdown}
INFO: [node_worker_server] {'EXIT',<0.443.0>,shutdown}
node_worker_server:terminate(shutdown)
node_worker_server:terminate(shutdown)

=INFO REPORT==== 27-Oct-2011::15:26:00 ===
application: node
exited: stopped
type: temporary
Testing shapesmith-git.node: *** FAILED *** test case 9 of 12
INFO: [node_worker_server] {'EXIT',<0.474.0>,shutdown}
INFO: [node_worker_server] {'EXIT',<0.474.0>,shutdown}
node_worker_server:terminate(shutdown)
node_worker_server:terminate(shutdown)

=INFO REPORT==== 27-Oct-2011::15:26:00 ===
application: node
exited: stopped
type: temporary

- - - - - - - - - - - - - - - - - - - - - - - - - -
node_master_SUITE:parallel_workers failed on line 96
Reason: {badmatch,{error,{validation,{struct,[{<<"miss"...>>,<<...>>...}
- - - - - - - - - - - - - - - - - - - - - - - - - -

INFO: [node_worker_server] {'EXIT',<0.505.0>,shutdown}
INFO: [node_worker_server] {'EXIT',<0.505.0>,shutdown}
node_worker_server:terminate(shutdown)
node_worker_server:terminate(shutdown)

=INFO REPORT==== 27-Oct-2011::15:26:00 ===
application: node
exited: stopped
type: temporary
Testing shapesmith-git.node: *** FAILED *** test case 11 of 12

- - - - - - - - - - - - - - - - - - - - - - - - - -
node_mesh_resource_SUITE:simple failed on line 42
Reason: {badmatch,{error,{validation,{struct,[{<<"miss"...>>,<<...>>...}
- - - - - - - - - - - - - - - - - - - - - - - - - -

Testing shapesmith-git.node: *** FAILED *** test case 12 of 12
INFO: [node_worker_server] {'EXIT',<0.550.0>,shutdown}
INFO: [node_worker_server] {'EXIT',<0.550.0>,shutdown}
node_worker_server:terminate(shutdown)
node_worker_server:terminate(shutdown)

=INFO REPORT==== 27-Oct-2011::15:26:00 ===
application: node
exited: stopped
type: temporary
Testing shapesmith-git.node: TEST COMPLETE, 3 ok, 9 failed of 12 test cases

Updating /Users/stephen/dev/javascript/webgl/shapesmith-git/node/logs/index.html... done
Updating /Users/stephen/dev/javascript/webgl/shapesmith-git/node/logs/all_runs.html... done

ERROR: One or more tests failed