Commit Graph
121 Commits
Author SHA1 Message Date
Ray Speth 5427add944 Remove legacy Clib 2025-11-21 21:38:21 -05:00
Ingmar Schoegl 36bd072033 [clib] Remove 'generated' from CLib tests 2025-09-22 21:06:38 -04:00
Ray Speth b555dc46e0 [Test] Count pytest errors as failures in test tsummary 2025-06-24 21:17:27 -04:00
Ingmar Schoegl be39ece92e [SCons] Update CLib nomenclature
Rename clib_experimental->clib_generated and clib->clib_legacy.
2025-06-04 13:24:20 -05:00
Ingmar Schoegl 51c014cb7b [SCons/docs] Final cleanup 2025-06-04 13:24:20 -05:00
Ingmar Schoegl 8354469916 [clib] Shorten interfaces/clib path 2025-06-04 13:24:20 -05:00
Ingmar Schoegl 0430b80477 [SCons] Do not build both clibs 2025-06-04 13:24:20 -05:00
Ingmar Schoegl 751c408c0c [unittests] Update test-clib-experimental 2025-06-04 13:24:20 -05:00
Ingmar Schoegl f3dd336cb4 [unittests] Add googletests for clib_experimental 2025-01-22 22:47:30 -05:00
Ingmar Schoegl 18b6a67e7c [SCons] Replace from buildutils import * 2024-09-28 16:41:43 -05:00
Bryan Weber d85848d3a3 [SCons] Prefer 'y' and 'n' for Python config
Switch to prefer the shorter 'y' and 'n' strings to configure the Python
package, rather than 'full' and 'none'. Since we no longer need
'minimal' anymore, we can simplify this.
2024-07-30 10:01:59 -04:00
Ray Speth c260e7bcc1 [CI] Run Python tests in parallel 2024-06-05 10:11:23 -04:00
Ray Speth 43b1fffe14 [SCons] Add commands for building (but not running) tests 2024-06-05 10:11:23 -04:00
Ray Speth 0d362b7bfe [SCons] Avoid creating extra copy of data files in build/data 2024-04-11 08:57:01 -04:00
Ingmar Schoegl e9215e6600 [MATLAB-legacy] Remove MATLAB from build system 2024-03-28 09:27:10 -04:00
Ray Speth f97402b632 [SCons] Eliminate CT_HAS_PYTHON define from config.h
This speeds up some incremental builds when switching between configurations
with and without the Python module, as done during Conda packaging.
2023-06-27 10:31:50 -06:00
Ray Speth 43d2b184e3 [Test] Suppress most output from thermo consistency tests 2023-06-13 13:05:25 -06:00
Ray Speth f84e863268 [Test] Break out thermo consistency tests into a separate test set 2023-06-13 13:05:25 -06:00
Ingmar Schoegl 2617e20b11 [unittests] Implement gtest for 'test-oneD' 2023-03-06 18:02:07 -06:00
Ingmar Schoegl 1f16bf247e [unittest] Implement gtest for 'test-clib'
Unit tests cover 'clib' from within C++ googletest code
- port test-clib to google tests
- rename pre-existing version to test-clib-demo
- add tests indirectly probing SharedCabinet
- add tests for Solution access routines
- add tests for ctonedim
2023-03-06 18:02:07 -06:00
Ray Speth 1c5595e16c [SCons] Consolidate addition of build/lib to search path 2023-02-02 18:33:16 -06:00
Ray Speth 081f434cf6 [SCons] Link tests and samples to shared library on Windows 2023-02-02 18:33:16 -06:00
Ray Speth 5ae4847239 Introduce cantera_python shim and load only when needed
This eliminates the need to directly link the Cantera shared library
or Cantera applications to libpython.
2023-02-02 18:33:16 -06:00
Ray Speth 242a4fef1e Improve handling of dynamic library paths on Mac/Windows 2022-09-11 10:59:30 -04:00
Ray Speth fe82aafe38 Add C++ test for Python ExtensibleRate 2022-09-11 10:59:30 -04:00
Ray Speth c039a0dde9 [SCons] Refactor to eliminate runCythonTests.py 2022-08-11 07:19:17 -04:00
Ray Speth 72734b1edd [SCons] Move pytest check to common location 2022-08-11 07:19:17 -04:00
Ray Speth 47b9d670a6 [SCons] Extend coverage option to Python module 2022-08-11 07:19:17 -04:00
Ingmar Schoegl 6e3c7e8296 [UnitTests] Move Python test suite and update SCons build process 2022-08-06 15:11:53 -04:00
Ingmar Schoegl 994445a0b6 [SCons] Make unrecognized C compiler fatal and update formatting 2022-06-12 19:54:01 -04:00
Ingmar Schoegl e68c7de040 [SCons] Add custom FAILED logging level 2022-06-12 19:54:01 -04:00
Ray Speth 0a7b436683 [Doc] Eliminate 'i.e.' and 'e.g.' 2022-04-30 03:55:11 -04:00
Ray Speth 61c59bd15f [SCons] Provide better error message when pytest is missing 2022-03-29 22:42:02 -04:00
Ingmar Schoegl dfbbf8f13b [Samples] Move sample input file to sample/data folder
LiC6_electrodebulk.yaml was the only file in data/sample-data. Moving this file
to samples/data mimics the input file location for the jupyter repository.
2022-03-03 09:07:17 -05:00
Ingmar Schoegl 36cd3adca6 [SCons] Remove unittest specific code 2022-01-16 12:25:35 -05:00
Ray Speth b3f1a73663 [Test] Skip conversion tests if no Python package is being built
Converting between different mechanism formats require at least
the "minimal" Python package to be built.
2021-09-16 21:00:45 -04:00
Anthony Walker b920d62409 Adding a test for single reactor initialize fix.
I adapted the example ./interfaces/cython/cantera/test_reactor.py::test_equilibrium_HP to C++ and performed the reactor initialization with an arbitrary value to show that it no longer creates a segmentation fault and also still integrates successfully in a network post individual initialization. I added this to it's own folder called zeroD because I could not find C++ instances of Reactor tests elsewhere.
2021-06-26 12:19:26 -04:00
Ingmar Schoegl cdc57b0610 [SCons] Add verbose_tests flag 2021-06-14 12:33:49 -06:00
Ingmar Schoegl 548b2f1afe [CI] Hide longest test durations by default 2021-06-14 12:33:49 -06:00
Ray Speth 19f1593476 [Test] Add ability to skip slow GTest tests 2021-05-09 18:08:11 -04:00
Ray Speth 2ffde3b8f4 [Test] Add option to skip slow (Python) tests
Use to speed up CI coverage testing
2021-05-09 18:08:11 -04:00
Bryan Weber 27696feab8 Rename mglob function to multi_glob 2021-05-04 21:36:21 -04:00
Bryan Weber edf5e4cc77 Limit exported functions from buildutils
Each SConscript module imports what it needs from the stdlib.
2021-05-04 21:36:21 -04:00
Bryan Weber 83eacc021d Rename print_report and test_results to snake case 2021-05-04 21:36:21 -04:00
Ray Speth 4db9e2cfc2 [Test] Parse pytest results with SCons 2021-04-28 17:11:51 -04:00
Bryan W. Weber 8920063fc9 [Test/SCons] Add fast failure option for tests
Add fast_fail_tests option. If True, the first test failure aborts
running the test suite. Useful when debugging tests and multiple tests
are failing, this option allows them to be easily handled one-by-one.
2020-01-01 22:14:42 -05:00
Ray Speth 0f1da269fc [SCons] Simplify handling of PYTHONPATH in the test suite 2018-09-19 17:59:59 -04:00
Ray Speth d6da006e3e [SCons] Only build the Python package for Python 3.x 2018-09-19 17:59:59 -04:00
Ray Speth 677efd82d5 [Test/Matlab] Collect pass/fail data for individual tests 2018-07-30 11:25:27 -04:00
Ray Speth bdaabc0428 [Test/Matlab] Improve behavior when Matlab tests fail
Outright failures of the Matlab test suite which result in the test log file not
being written no longer cause SCons to abort. Instead, they are logged as a
major test failure, similar to the behavior of the Python test suite.
2018-07-30 11:25:27 -04:00