Ray Speth
30bf2c806f
[Scons/Test] Allow test suite to continue if gtest crashes
...
If a gtest program crashes, register that as a single test failure.
Previously, the entire test suite would be aborted because the
attempt to open the test results file (gtest-foo.xml) would fail.
2014-03-05 03:25:19 +00:00
Ray Speth
16927ae538
[SCons] Workaround for SCons bug under Cygwin
...
See SCons Issue 2911.
http://scons.tigris.org/issues/show_bug.cgi?id=2911
2014-02-20 03:01:05 +00:00
Ray Speth
43360663c2
[SCons/Test] Include GTest unit tests individually in test result summary
2014-02-06 22:59:10 +00:00
Ray Speth
6a9fee8805
[Test] Register premature termination of Python tests as a failure
2014-01-30 00:47:58 +00:00
Ray Speth
ff9584105b
Do implicit CTI to XML conversions without generating .xml files
...
When instantiating a phase from a .cti file, do the conversion in memory,
without writing the XML representation to disk. This eliminates the unrequrested
XML files that Cantera normally generates, and also avoids errors when running
Cantera from a directory where the user does not have write permissons.
2014-01-30 00:47:37 +00:00
Ray Speth
1ff7bc2f3b
[SCons] Remove check for <tr1/tuple>
...
Updated gtest version makes this special case unnecessary.
2014-01-21 17:22:09 +00:00
Ray Speth
d3422e70dd
[SCons] Fix count of skipped tests
...
Exclude the partial tests of the Cython module which are included in the full
test.
2014-01-11 00:20:21 +00:00
Ray Speth
e31eb0ccf0
[SCons] Include Python unit tests individually in test result summary
2014-01-09 23:12:32 +00:00
Ray Speth
a8d8f3f0ca
[SCons] Check for <tr1/tuple>
...
This header is used by GTest. If not present, define 'GTEST_USE_OWN_TR1_TUPLE'
to use an alternative version. Fixes a compilation error on OS X.
2014-01-08 17:10:34 +00:00
Ray Speth
8a8926849f
[SCons] Fix running the Python 3 test suite
2013-12-20 19:21:41 +00:00
Ray Speth
ddd82bd3c1
[SCons] Refactor Python test preparation
2013-12-18 17:45:35 +00:00
Ray Speth
7e64056082
[SCons] Add options to run subsets of the Python test suite
...
New test targets are automatically generated from the test_foo.py
scripts, with the new targets named like 'cython2-test-foo'.
2013-12-18 17:45:30 +00:00
Ray Speth
e7e5d739a1
[Test] Fix some issues with PYTHONPATH
2013-12-09 01:36:03 +00:00
Ray Speth
b5e540c903
[Python] Remove the legacy Python module
2013-12-09 01:35:08 +00:00
Ray Speth
b280af2af1
[SCons] Fix PYTHONPATH used by test suite
...
This was broken by changes made in r2535.
2013-12-09 01:34:11 +00:00
Harry Moffat
cfa4493b51
Worked on fixing errors in the code that caused problems with downstream code.
...
Took out single_species compilation option
took out some deprecated warnings
Fixed an error in copy constructors for thermo.
Still an error with PYTHONPATH and the test suite
-- more to come.
2013-09-02 00:58:28 +00:00
Ray Speth
a616d4f55f
[Test] Fix dependencies so Cython tests run after rebuilding
2013-07-16 22:09:53 +00:00
Ray Speth
8e7e81570a
[SCons] Always re-run explicitly named tests
2013-01-11 22:56:40 +00:00
Ray Speth
04fb86b1ea
Added a new SCons configuration variable 'warning_flags'
...
This allows use of more extensive warning settings for the code that's actually
part of Cantera without generating excessive warnings on code automatically
generated code (e.g. f2c) or code that isn't part of Cantera proper (e.g. gtest,
libexecstream).
2012-11-14 21:07:03 +00:00
Ray Speth
f82c6e50c7
SCons runs the unit tests for the Cython module
2012-09-06 19:58:32 +00:00
Ray Speth
021f66c755
Merge bug fixes from the 2.0 maintenance branch
2012-08-15 15:36:34 +00:00
Ray Speth
c092bbaede
Fixed the order of include and library directories when compiling
...
Include directories in the Cantera source tree should be listed first so that
they take precedence over headers from other installed copies of Cantera that
might end up on the include search path. This was potentially a problem when
Cantera was installed in the same location (e.g. /usr/local) as one of its
dependencies (e.g. Sundials).
The same logic applies to directories on the library link path.
2012-08-10 21:03:06 +00:00
Ray Speth
bcb79d9cd3
Convert .cti files in data/inputs to .xml as part of the buld process
...
The full set of .cti and .xml files to be installed is placed in build/data (for
use by the test suite) and copied to the CANTERA_DATA folder on installation.
2012-08-02 15:47:45 +00:00
Ray Speth
0e21bfd0e0
Introduced a test suite for Chemkin-format mechanism conversions
2012-07-26 20:49:01 +00:00
Ray Speth
d645eaf418
Aggregate all test results into the summary printed after 'scons test'
...
In addition, if any of the Python, Matlab, or gtest tests fail, the test
process will not be aborted. SCons will still exit with a non-zero status.
2012-05-31 14:58:07 +00:00
Ray Speth
ea589078f5
Added tests for pure fluid equations of state
...
The tests include basic consistency requirements as well as
comparisons to reference data where possible.
2012-05-07 18:20:11 +00:00
Ray Speth
e99bd87586
Fixed SCons aliases for Python and Matlab unit tests
2012-04-12 21:35:32 +00:00
Ray Speth
16390cc547
All tests now run using "scons test"
...
The "newtest" target has been removed. Python and Matlab unit tests
can be run with "scons test-python" and "scons test-matlab",
respectively.
2012-04-12 15:28:33 +00:00
Ray Speth
64ccd58680
Added a kinetics test suite with tests for P-log reactions
...
Added a sample mechanism file containing P-log and Chebyshev reactions.
2012-03-30 23:47:58 +00:00
Ray Speth
9be5c325f1
Added a Python reactor network test
2012-03-30 23:46:19 +00:00
Ray Speth
9124b361dc
Added a few basic thermo tests to the Matlab unit tests
2012-03-23 22:16:28 +00:00
Ray Speth
9dc9ddc1bc
Fixed removal of the Matlab unit test output file
2012-03-15 22:48:59 +00:00
Ray Speth
bac65b26a1
Added machinery for unit testing of the Matlab toolbox
...
Unit tests are written using the Matlab xUnit Test Framework
2012-03-13 17:32:10 +00:00
Ray Speth
b5fdb92146
Python tests now have SCons dependency on the Python extension
...
This means that running a Python test will cause the Python extension
to be built, and that changes in the source will cause the Python tests
to rerun.
2012-03-09 22:59:04 +00:00
Ray Speth
4534819d1d
Fixed running the Python unit tests when building with the Intel compiler
2012-03-07 00:52:00 +00:00
Ray Speth
8150f49c2c
Simplified adding SCons build and install targets
2012-03-05 20:45:20 +00:00
Ray Speth
d60c06127b
Added tests for some methods of the Python Solution class
2012-02-27 18:13:53 +00:00
Ray Speth
b0ccecf4e4
Added machinery for running Python unit tests
2012-02-27 18:12:42 +00:00
Ray Speth
99d951ceb8
Cantera now produces a single library for linking C++ applications
2012-02-13 17:24:34 +00:00
Ray Speth
38f6ebd76b
Added unit tests for the NasaPoly1 class
2012-02-01 23:35:01 +00:00