Commit graph

69 commits

Author SHA1 Message Date
Ray Speth
30d1d5ea99 [Test] Move "ChemEquil_gri_matrix" to GTest suite
This also modifies the test to explicitly test each of the equilibrium solvers,
so that failures in any one solver aren't hidden by the fact that a different
solver works for a particular initial condition.
2015-06-17 14:38:11 -04:00
Ray Speth
c2344377ac [Test] Move "ChemEquil_red1" to GTest suite
The old version of this test didn't actually check any meaninful results. The
ChemEquil and VCS solvers are both able to solve this problem, but the
MultiPhase solver currently fails. Also, the BasisOptimize function may fail
depending on the order that the elements are specified in the input file.
2015-06-16 16:16:21 -04:00
Ray Speth
e34b2739b2 [Test] Move "negATest" to GTest suite 2015-06-16 16:16:21 -04:00
Ray Speth
7f847c3877 [SCons] Miscellaneous cleanup of SConstruct/SConscript files 2015-06-13 23:29:58 -04:00
Ray Speth
044235c065 [SCons] Remove unnecessary uses of pjoin 2014-10-08 16:54:49 +00:00
Ray Speth
0db18ad0b1 [SCons/Test] Re-run tests if shared library changes 2014-10-08 16:54:39 +00:00
Ray Speth
1a5f75dd2d [Test] Use Cantera shared library for tests, when possible
On Linux systems, link tests against the Cantera shared library, rather than the
static library to reduce the size of the compiled test suite. This saves over 1
GB of disk space when compiling with debug symbols enabled, and also reduces the
run time of the test suite.

This does not work on Windows, where the shared library only exports the Cantera
C interface.
2014-10-01 17:52:21 +00:00
Ray Speth
4544fd3392 [Test] Build tests with optimization disabled
Compiling the tests takes longer than running them, so it actually saves time to
compile the tests with optimizations disabled.
2014-10-01 17:52:18 +00:00
Ray Speth
53102e8d70 [Test] Convert 'fracCoeff' test to GTest 2014-09-26 13:45:06 +00:00
Ray Speth
337c573958 [Test] Move NASA9poly test to GTest test suite 2014-09-24 23:18:01 +00:00
Ray Speth
169e6f1c11 [SCons] Remove outdated references to ct2ctml.log 2014-07-30 16:59:09 +00:00
Ray Speth
040958a5f5 Add some deprecation warnings 2014-07-10 22:34:33 +00:00
Ray Speth
fb588d873b Remove deprecated / unfinished 'spectra' classes 2014-05-30 19:23:37 +00:00
Harry Moffat
675df76b1c Fixed a long standing problem with the combination of storred XML files and duplicator functions.
Now the complete XML file is storred within the ThermPhase object starting with the root node.
This is needed for later processing of kinetics and transport mechanisms when the ThermoPhase
file is duplicated and the original file is deleted.

xml() is now a const function, and still returns the same pointer.
setXMLdata() is a new function will stores the xml data.
2014-05-20 19:02:20 +00:00
Ray Speth
7fff65cecd Remove previously-deprecated 'PrintCtrl' and 'LogPrintCtrl' classes. 2014-05-08 23:01:32 +00:00
Ray Speth
338a54f101 [SCons] Simplify implementation of changes in r2810
Use the correct platform-independent path separator instead of assuming that it
is ':'.

Determine the PYTHONPATH variable in a single place for each Python version.
2014-03-17 02:05:09 +00:00
Harry Moffat
39651964a7 Added back Statmech and PecosTransport.
Rarefied gas dynamics is an import application area for Sandia, and
    it represents a potentially important development direction for Cantera.
    These classes provide inroads into that area.
2014-03-15 02:57:00 +00:00
Harry Moffat
3d5aa42e77 Fixed the LD_LIBRARY_PATH and PYTHONPATH specifications for scons's test suite on multiuser linux boxes.
The user's environmental variables are now passed down to the tests. Previously they had been ignored.
All of the python tests (minimal and full) had been failing for over a year or so for any installations which actually use the
LD_LIBRARY_PATH and PYTHONPATH environmental variables, which pretty much consists of all multiuser linux
machines.
2014-03-14 23:56:55 +00:00
Ray Speth
2fb9ff630d Remove abandoned StatMech and PecosTransport classes 2014-03-13 21:35:11 +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
1215f05da7 [Kinetics] Remove deprecated GRI30 class
Resolves Issue 134.
2013-12-14 00:17:54 +00:00
Ray Speth
3541a8d0bb [Test] Skip tests which require ctml_writer when python_package=none 2013-12-09 01:36:27 +00:00
Ray Speth
72515dcc99 [Test] Eliminate text-based comparison of XML files
The order of XML attributes within a node has no meaning, and is not
consistent when the attributes are represented as a Python dict, as in
ctml_writer.py. As a result, comparing the text representation of the
XML generates spurious errors when the order changes.
2013-12-09 01:36:24 +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
02112c7cde [Test] Fix test failures due deprecation warnings 2013-05-31 15:56:32 +00:00
Ray Speth
43b8b7f35c [Test] Updated blessed output files for some tests
These are tests where the output changed as a result of correcting discontinuous
thermo.
2013-04-24 21:48:07 +00:00
Ray Speth
ca24ed8adf [Test] Disabled CpJump test
Since the jump in Cp is eliminated by the adjustments to the polynomial
coefficients, this test is not meaningful.
2013-04-24 21:47:59 +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
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
8849b2cd0c Fixed path used for CANTERA_DATA when running regression tests 2012-08-08 22:18:19 +00:00
Ray Speth
38a2495fa3 Added the dustyGasTransport test from the extendedCxxTestSuite 2012-08-02 15:48:58 +00:00
Ray Speth
bf2a6f2d51 Added the simpleTransport test from the extendedCxxTestSuite 2012-08-02 15:48:51 +00:00
Ray Speth
39f1c15c8a Added the stoichSolidKinetics test from the extendedCXXTestSuite 2012-08-02 15:48:43 +00:00
Ray Speth
85070e1d30 Added the LatticeSolid_LiSi test from the extendedCXXTestSuite 2012-08-02 15:48:36 +00:00
Ray Speth
9801b03a50 Moved nasa9_reader test to Python 2012-07-26 20:49:26 +00:00
Ray Speth
13e188381d Moved ck2cti tests to the Python test suite 2012-07-26 20:49:18 +00:00
Ray Speth
b988a3f3ab Added 'PecosTransport' to the SCons regression test suite 2012-07-18 17:37:21 +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
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
8150f49c2c Simplified adding SCons build and install targets 2012-03-05 20:45:20 +00:00
Ray Speth
b07ca01a54 Made surfSolver test more reliable with different compilers
Compare only the 'results.txt' file instead of what's printed
to stdout, which contains numerical residuals that tend to change.
2012-02-27 18:15:35 +00:00
Ray Speth
9d0d2ae7ef Fixed a bug where test-clean would delete things it shouldn't 2012-02-27 18:12:37 +00:00
Ray Speth
f7a4e3de64 diamondSurf and min_python/diamond tests now use the same code 2012-02-23 21:25:27 +00:00
Ray Speth
9bcc42b758 Fixed PYTHONPATH when running tests 2012-02-23 21:25:09 +00:00
Ray Speth
35007e0fc9 Combined negATest and min_python/negATest to use the same code 2012-02-23 21:25:03 +00:00