Commit graph

52 commits

Author SHA1 Message Date
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
Ray Speth
d910af2e0f Fixed python-diamond test that was failing because of an incorrect path 2012-02-22 00:17:46 +00:00
Ray Speth
de32aba15d All Debye-Huckel tests use a shared copy of the test executable 2012-02-22 00:17:12 +00:00
Ray Speth
01e63f004e All tests using TemperatureTable.h now use a shared copy 2012-02-22 00:16:48 +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
1bffc6e150 Fix include paths for tests and samples 2012-02-12 02:47:21 +00:00
Ray Speth
79c0f4afdc Added a script to simplify running coverage tests 2012-01-19 03:53:08 +00:00
Ray Speth
e887d2fbbc Eliminated "sortAlgoritms" from the tests in favor of std::sort 2012-01-18 03:42:57 +00:00
Ray Speth
85c34049b6 Added support for running single tests with SCons
Run the 'foo' test with 'scons test-foo'.
Also simplified the names for many tests.
2012-01-09 17:35:06 +00:00
Ray Speth
124f8b9f6b Tests now look for elements.xml in the source tree. 2011-12-20 03:06:35 +00:00
Ray Speth
d587c093de Clean up most artifacts of building the tests under Windows 2011-12-14 19:36:40 +00:00
Ray Speth
00fdf5d3f5 SCons now continues over failed tests and prints a summary at the end 2011-12-14 19:36:21 +00:00
Ray Speth
d2eba8e5e0 Fixed ck2cti tests to run under Windows 2011-12-14 19:36:17 +00:00
Ray Speth
b44ebe45a3 SCons now runs all of the Python regression tests 2011-12-14 19:36:12 +00:00
Ray Speth
c3f4972f52 Improvements to the SCons regression test handler
Refactored SCons testing code to handle tests using prebuilt binaries.
Now handles regression tests where the standard output is ignored.
Also, allows regression tests to ignore lines starting with specified
strings.
2011-12-14 19:36:03 +00:00
Ray Speth
be92c4cbc5 Added support for command line options for regression tests 2011-12-14 05:55:40 +00:00
Ray Speth
5c95d30807 Use relative tolerances for comparing csv file in regression tests
Each test can have a different threshold and tolerance, reducing the
need to recreate blessed output files in response to small numerical
changes.
2011-12-14 05:55:35 +00:00
Ray Speth
d7a384e25d Extended SCons testing to be able to handle multiple output files
Extra files to be compared are passed as a list of tuples of
(blessed_output, test_output) using the 'comparisons' keyword
argument.
2011-12-14 05:55:24 +00:00