Add GTest unit test infrastructure - #5
Merged
Merged
Conversation
- CMakeLists: GTest via FetchContent, NUMSIM_BUILD_TESTS option, tmech dependency - tests/test_property_graph: execution order, update, commit, wiring, factory - tests/test_materials: linear elasticity (linearity, symmetry, bulk modulus), scalar weight, curing (disabled - needs history API) - tests/test_damage: elastic/damage regime, stress softening, tangent checker (disabled - needs debugging) - 14 tests pass, 3 disabled pending fixes
- save_state/load_state on material_context for binary checkpoint/restart - get()/get_mutable() now handle history properties (returns new_value) - GitHub Actions CI workflow (ubuntu-24.04, g++-14, GTest) - Fix restore_state to use exclude set in numerical_diff_checker - Enable curing simulation test (was blocked by history property access) - Update README with JSON config, testing, serialization docs - numsim-core FetchContent points to main (PR #2 merged) - Prefix CMake options with NUMSIM_ to avoid conflicts
…ong results in GTest binary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CuringSimulation.ConvergesToFullCure— needs history property initial value APITangentCheckerTest.*— passes in standalone build but fails in GTest binary (needs debugging)Dependencies
Test plan
cmake -B build -DNUMSIM_BUILD_TESTS=ON -DCMAKE_CXX_COMPILER=g++-14 && cmake --build build && cd build && ctest