ianhinder / Kranc

A Mathematica package for generating code for solving time dependent partial differential equations
http://kranccode.org
GNU General Public License v2.0
28 stars 10 forks source link

TestTensorTools.nb should be scriptable #86

Closed eschnett closed 11 years ago

eschnett commented 11 years ago

There should be a *.m version of this script, returning false or true.

ianhinder commented 11 years ago

Fixed in b9280913eee47678930b6682319bd045136d3793. The test is now a script rather than a notebook, and can be run using

  cd Kranc/Tests
  ./TestTensorTools.m

The exit code will be 0 on success and 1 on failure (any tests failed). Any Mathematica messages generated during execution will lead to an immediate abort and failure. Running the script as above assumes that you have the MathematicaScript executable (new in Mathematica 8) on your path.