-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest_main.cpp
90 lines (88 loc) · 1.97 KB
/
test_main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#include <iostream>
#include "test_linalg.h"
#include "test_aabb.h"
// #include "test_rigid_body.h"
#include "test_ray.h"
#include "test_random.h"
// #include "test_material.h"
#include "test_rotation.h"
#include "test_bvh.h"
#include "test_interp.h"
#include "test_rigid_transform.h"
#include "test_bazier.h"
#include "test_camera.h"
#include "test_cv_basic.h"
// #include "test_image_processing.h"
#include "test_bsp_tree.h"
#include "test_graph.h"
#include "test_grid_map.h"
#include "test_harris_corner.h"
#include "test_optical_flow.h"
#include "test_hamming_space.h"
#include "test_coordinate_system.h"
#include "test_lie_alg.h"
#include "test_lie_special_unitary.h"
#include "test_joint.h"
#include "test_dsp_fft.h"
#include "test_geometry_torus.h"
#include "test_transform_affine.h"
#include "test_metric_tree.h"
#include "test_dual_number.h"
#include "test_metric_string.h"
#include "test_model_lidar.h"
#include "test_simplex.h"
#define ENABLE_GLOBAL_CATCH 1
using namespace mxm;
int main(int argc, char const *argv[])
{
#if ENABLE_GLOBAL_CATCH
try
{
#endif
testAABB();
testRay();
testLinearAlgebra();
// testPixel();
testRotation();
testInterpolation();
// testRigidBody();
// testPrimitiveGeometry();
testRandom();
// testMaterial();
testBvh();
testRigidTransform();
testBazier();
testCamera();
// testImageProcessing();
testCvBasic();
testBspTree();
testGraph();
testGridMap();
testHarrisCorner();
testOpticalFlow01();
testHammingSpace();
testCoordinateSystem();
testLieSpecialOrthogonal();
testLieSpecialUnitary();
testLieSpecialEuclidean();
testJoint();
testDspFFT();
testGeometryTorus();
testAffineTransform();
testMetricTree();
testDualNumber();
testMetricString();
testModelLidar();
testSimplex();
#if ENABLE_GLOBAL_CATCH
}
catch(const std::exception& e)
{
std::cerr << e.what() << '\n';
std::cout << "Test failed!" << std::endl;
return -1;
}
#endif
std::cout << "done" << std::endl;
return 0;
}