Testing ClojureScript

101 views
Skip to first unread message

Timothy Baldridge

unread,
Jul 30, 2012, 7:25:49 AM7/30/12
to clo...@googlegroups.com
I'm trying to run the tests for ClojureScirpt under Ubuntu 12.04. I installed libmozjs, set the spidermonkey_home variable then ran script/test and got this:


tim@tim-desktop:~/clojurescript$ script/test
V8_HOME not set, skipping V8 tests
Testing with SpiderMonkey
Error: unrecognized flag -m
Try --help for options

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
ReferenceError: print is not defined
    at Object.<anonymous> (/home/tim/clojurescript/out/core-advanced-test.js:349:506)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:32)
    at Function._load (module.js:308:12)
    at Array.0 (module.js:479:10)
    at EventEmitter._tickCallback (node.js:192:41)
JSC_HOME not set, skipping JavaScriptCore tests
Tested with $[ran+1] out of 3 possible js targets
tim@tim-desktop:~/clojurescript$ cat script/test


What's the best way to run tests under Ubuntu?

Thanks,

Timothy

David Nolen

unread,
Jul 30, 2012, 8:05:35 AM7/30/12
to clo...@googlegroups.com
Looks like Node.js is being aliased as SpiderMonkey. That won't work. I suggest installing V8 from source. I'll update the ClojureScript Github wiki with instructions for testing latest JavaScriptCore and SpiderMonkey.

David
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
Reply all
Reply to author
Forward
0 new messages