test(tests): added test suite
The test suite is extensive. Note that LLMs were used to aid in the development of the test suite. All LLM generated code was manually reviewed.
This commit is contained in:
36
tests/utils/meson.build
Normal file
36
tests/utils/meson.build
Normal file
@@ -0,0 +1,36 @@
|
||||
dependency_test_sources = files(
|
||||
'dependencies/ownership.cpp',
|
||||
'dependencies/context.cpp',
|
||||
'dependencies/preparation.cpp',
|
||||
'dependencies/snapshots.cpp',
|
||||
'dependencies/rejection.cpp',
|
||||
'dependencies/mixed_errors.cpp',
|
||||
'dependencies/reachability.cpp',
|
||||
'dependencies/observers.cpp',
|
||||
)
|
||||
|
||||
# The dependency machinery must remain usable without linking MFEM or SERiF.
|
||||
serif_dependency_tests = executable(
|
||||
'serif_dependency_tests',
|
||||
dependency_test_sources,
|
||||
include_directories: include_dir,
|
||||
dependencies: [catch2_dep, magic_enum_dep, nameof_dep],
|
||||
)
|
||||
test('serif_dependency_tests', serif_dependency_tests, suite: 'unit', timeout: 30)
|
||||
|
||||
radial_test_sources = files(
|
||||
'laneemden/solution.cpp',
|
||||
'laneemden/formatting.cpp',
|
||||
'laneemden/scaling.cpp',
|
||||
'projection/radial.cpp',
|
||||
'projection/nonconforming.cpp',
|
||||
)
|
||||
|
||||
serif_radial_tests = executable(
|
||||
'serif_radial_tests',
|
||||
radial_test_sources,
|
||||
dependencies: [serif_dep, catch2_dep, stroid_dep],
|
||||
include_directories: include_directories('../include'),
|
||||
build_rpath: mfem_runtime_prefix == '' ? '' : mfem_runtime_prefix / 'lib',
|
||||
)
|
||||
test('serif_radial_tests', serif_radial_tests, suite: 'unit', timeout: 60)
|
||||
Reference in New Issue
Block a user