Skip to content

Commit

Permalink
Add apf::smoothCAPAnisoSizes compilation test
Browse files Browse the repository at this point in the history
- Add compilation test to check that the compile definition worked.

Signed-off-by: Aiden Woodruff <[email protected]>
  • Loading branch information
bobpaw committed Sep 22, 2024
1 parent 91bbfe9 commit ecc2e72
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ endif()
if(ENABLE_CAPSTONE)
util_exe_func(capVol capVol.cc)
target_include_directories(capVol PRIVATE "${PROJECT_SOURCE_DIR}/capstone_clis")
if(HAVE_CAPSTONE_SIZINGMETRICTOOL)
util_exe_func(cap_smooth cap_smooth.cc)
endif()
endif()

# send all the newly added utility executable targets
Expand Down
8 changes: 8 additions & 0 deletions test/cap_smooth.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <pcu_util.h>
#include <apfCAP.h>

int main (void) {
PCU_ALWAYS_ASSERT(apf::has_smoothCAPAnisoSizes());
// FIXME: Test apf::smoothCAPAnisoSizes.
return 0;
}
3 changes: 3 additions & 0 deletions test/testing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -895,4 +895,7 @@ if(ENABLE_CAPSTONE)
mpi_test(capVolWing 1 ./capVol -vg 2 ${MESHES}/cap/wing_surf_only.cre)
mpi_test(capVolCube 1 ./capVol -vg 3 ${MESHES}/cap/cube_surf_only.cre)
mpi_test(capVolCyl2 1 ./capVol -vg 4 ${MESHES}/cap/cyl_surf_only.cre)
if(HAVE_CAPSTONE_SIZINGMETRICTOOL)
mpi_test(cap_smooth 1 ./cap_smooth)
endif()
endif()

0 comments on commit ecc2e72

Please sign in to comment.