diff --git a/tests/meson.build b/tests/meson.build index 162daab..3896f24 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -7,6 +7,7 @@ subdir('dobj') subdir('const') subdir('opatIO') subdir('meshIO') +subdir('poly') # Subdirectories for sandbox tests subdir('dobj_sandbox') diff --git a/tests/poly/meson.build b/tests/poly/meson.build new file mode 100644 index 0000000..81c3b62 --- /dev/null +++ b/tests/poly/meson.build @@ -0,0 +1,20 @@ +# Test files for const +test_sources = [ + 'polyTest.cpp', +] + +foreach test_file : test_sources + exe_name = test_file.split('.')[0] + message('Building test: ' + exe_name) + + # Create an executable target for each test + test_exe = executable( + exe_name, + test_file, + dependencies: [gtest_dep, polysolver_dep], + install_rpath: '@loader_path/../../src' # Ensure runtime library path resolves correctly + ) + + # Add the executable as a test + test(exe_name, test_exe) +endforeach diff --git a/tests/poly/polyTest.cpp b/tests/poly/polyTest.cpp new file mode 100644 index 0000000..250913d --- /dev/null +++ b/tests/poly/polyTest.cpp @@ -0,0 +1,9 @@ +#include + +#include "polySolver.h" + +class polyTest : public ::testing::Test {}; + +TEST_F(polyTest, DefaultConstructor) { + EXPECT_NO_THROW(PolySolver(1, 1)); +} \ No newline at end of file