Skip to content

Testing and building distributions

dmiller edited this page Oct 19, 2010 · 2 revisions

Most of the tests that ship with Clojure(JVM) run. Those that don’t make sense on ClojureCLR have been edited out.

  1. Start Clojure.Main, execute (require '(clojure [test-clojure :as main])) followed by (main/run) and stand back.
  2. Alternatively, running Clojure.Main with the command-line args -e "(require '(clojure [test-clojure :as main])) (main/run)" should also do the trick (not tested).

Yet another alternative requires a Visual Studio Command Prompt Window. (or you can configure it in VS Tools). Change directory to where the .sln file is located and do:

MSBuild.exe build.proj /target:Test /p:Configuration="Debug 3.5" /p:Platform="Any CPU"

Configuration can be any of

  • “Debug 3.5”
  • “Release 3.5”
  • “Debug 4.0”
  • “Release 4.0”

Target can be any of:

  • Build — just build the designated configuration
  • Test — build and run the clojure test suite. This includes compiling various genclass and protocols needed for the testing.
  • Dist — build and copy to the dist\ folder the necessary files to run ClojureCLR (not including the test_clojure files)
Clone this wiki locally