Skip to content

Commit

Permalink
-updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamchatka-volcano committed Jan 14, 2024
1 parent 79ee73c commit 6dbfbda
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- uses: actions/checkout@v3

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=ON -DENABLE_EXAMPLES=ON -DFIGCONE_USE_NAMEOF=${{ matrix.use_nameof }} -DCMAKE_CXX_FLAGS="${{ matrix.config.flags }}"
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=ON -DENABLE_TESTS_CPP20=ON -DENABLE_TESTS_STATIC_REFL=ON -DENABLE_EXAMPLES=ON -DFIGCONE_USE_NAMEOF=${{ matrix.use_nameof }} -DCMAKE_CXX_FLAGS="${{ matrix.config.flags }}"

- name: Build
run: cmake --build ${{github.workspace}}/build --config Release
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ if (FIGCONE_USE_ALL OR FIGCONE_USE_JSON OR FIGCONE_USE_YAML OR FIGCONE_USE_TOML
)
endif ()

SealLake_OptionalBuildSteps(tests tests_cpp20 examples)
SealLake_OptionalBuildSteps(tests tests_cpp20 tests_static_refl examples)
17 changes: 10 additions & 7 deletions tests_cpp20/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
project(test_figcone_cpp20)

set(SRC
test_node_cpp20.cpp
test_param_cpp20.cpp
test_paramlist_cpp20.cpp
test_nodelist_cpp20.cpp
test_copynodelist_cpp20.cpp
test_dict_cpp20.cpp
)
../tests/test_param.cpp
../tests/test_node.cpp
../tests/test_nameformat.cpp
../tests/test_nodelist.cpp
../tests/test_copynodelist.cpp
../tests/test_paramlist.cpp
../tests/test_dict.cpp
../tests/test_postprocessor.cpp
../tests/test_unregisteredfieldhandler.cpp
../tests/test_defaultunregisteredfieldhandler.cpp)

SealLake_GoogleTest(
SOURCES ${SRC}
Expand Down
19 changes: 19 additions & 0 deletions tests_static_refl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
project(test_figcone_static_refl)

set(SRC
test_node_cpp20.cpp
test_param_cpp20.cpp
test_paramlist_cpp20.cpp
test_nodelist_cpp20.cpp
test_copynodelist_cpp20.cpp
test_dict_cpp20.cpp
)

SealLake_GoogleTest(
SOURCES ${SRC}
COMPILE_FEATURES cxx_std_20
PROPERTIES
CXX_EXTENSIONS OFF
LIBRARIES
figcone::figcone
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6dbfbda

Please sign in to comment.