Wildmeshing Toolkit
integration_test.cpp File Reference
#include <catch2/catch_test_macros.hpp>
#include <polysolve/Utils.hpp>
#include <wmtk/utils/Logger.hpp>
#include <wmtk/components/run_components.hpp>
#include <wmtk/utils/random_seed.hpp>
#include <filesystem>
#include <fstream>
#include <iostream>
Include dependency graph for integration_test.cpp:

Go to the source code of this file.

Macros

#define WMTK_INTEGRATION_BODY(NAME, DO_VALIDATION)
 
#define WMTK_INTEGRATION(NAME, DO_VALIDATION)
 

Typedefs

using json = nlohmann::json
 

Enumerations

enum  IntegrationTestResult { Success = 0 , Fail = 1 , InvalidInput = 2 }
 

Functions

 WMTK_INTEGRATION ("input", false)
 
 WMTK_INTEGRATION ("to_points", false)
 
 WMTK_INTEGRATION ("delaunay", false)
 
 WMTK_INTEGRATION ("insertion", false)
 
 WMTK_INTEGRATION ("insertion_open", false)
 
 WMTK_INTEGRATION ("multimesh", false)
 
 WMTK_INTEGRATION ("multimesh_boundary_2d", false)
 
 WMTK_INTEGRATION ("multimesh_boundary_3d", false)
 
 WMTK_INTEGRATION ("isotropic_remeshing", false)
 
 WMTK_INTEGRATION ("isotropic_remeshing_mm", false)
 
 WMTK_INTEGRATION ("disk_fan_mm", false)
 
 WMTK_INTEGRATION ("grid", false)
 
 WMTK_INTEGRATION ("wildmeshing_3d", false)
 
 TEST_CASE ("integration_benchmark", "[.][benchmark][integration]")
 

Macro Definition Documentation

◆ WMTK_INTEGRATION

#define WMTK_INTEGRATION (   NAME,
  DO_VALIDATION 
)
Value:
TEST_CASE(std::string("integration_") + NAME, tagsrun) \
WMTK_INTEGRATION_BODY(NAME, DO_VALIDATION)
TEST_CASE("integration_benchmark", "[.][benchmark][integration]")

Definition at line 212 of file integration_test.cpp.

◆ WMTK_INTEGRATION_BODY

#define WMTK_INTEGRATION_BODY (   NAME,
  DO_VALIDATION 
)
Value:
{ \
std::string path = std::string("unit_test/") + NAME + ".json"; \
bool compute_validation = DO_VALIDATION; \
wmtk::logger().info("Processing {}", NAME); \
auto flag = authenticate_json(WMTK_DATA_DIR "/" + path, compute_validation); \
REQUIRE(flag == IntegrationTestResult::Success); \
}
@ Success
spdlog::logger & logger()
Retrieves the current logger.
Definition: Logger.cpp:58

Definition at line 203 of file integration_test.cpp.

Typedef Documentation

◆ json

using json = nlohmann::json

Definition at line 16 of file integration_test.cpp.

Enumeration Type Documentation

◆ IntegrationTestResult

Enumerator
Success 
Fail 
InvalidInput 

Definition at line 19 of file integration_test.cpp.

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "integration_benchmark"  ,
""  [.][benchmark][integration] 
)

Definition at line 234 of file integration_test.cpp.

References wmtk::logger(), wmtk::pow(), and WMTK_INTEGRATION_BODY.

Here is the call graph for this function:

◆ WMTK_INTEGRATION() [1/13]

WMTK_INTEGRATION ( "delaunay"  ,
false   
)

◆ WMTK_INTEGRATION() [2/13]

WMTK_INTEGRATION ( "disk_fan_mm"  ,
false   
)

◆ WMTK_INTEGRATION() [3/13]

WMTK_INTEGRATION ( "grid"  ,
false   
)

◆ WMTK_INTEGRATION() [4/13]

WMTK_INTEGRATION ( "input"  ,
false   
)

◆ WMTK_INTEGRATION() [5/13]

WMTK_INTEGRATION ( "insertion"  ,
false   
)

◆ WMTK_INTEGRATION() [6/13]

WMTK_INTEGRATION ( "insertion_open"  ,
false   
)

◆ WMTK_INTEGRATION() [7/13]

WMTK_INTEGRATION ( "isotropic_remeshing"  ,
false   
)

◆ WMTK_INTEGRATION() [8/13]

WMTK_INTEGRATION ( "isotropic_remeshing_mm"  ,
false   
)

◆ WMTK_INTEGRATION() [9/13]

WMTK_INTEGRATION ( "multimesh"  ,
false   
)

◆ WMTK_INTEGRATION() [10/13]

WMTK_INTEGRATION ( "multimesh_boundary_2d"  ,
false   
)

◆ WMTK_INTEGRATION() [11/13]

WMTK_INTEGRATION ( "multimesh_boundary_3d"  ,
false   
)

◆ WMTK_INTEGRATION() [12/13]

WMTK_INTEGRATION ( "to_points"  ,
false   
)

◆ WMTK_INTEGRATION() [13/13]

WMTK_INTEGRATION ( "wildmeshing_3d"  ,
false   
)