Debian Codegraph @

src/ImathTest/main.cpp

raw
1 //
2 // SPDX-License-Identifier: BSD-3-Clause
3 // Copyright Contributors to the OpenEXR Project.
4 //
5
6 #ifdef NDEBUG
7 # undef NDEBUG
8 #endif
9
10 #include "testArithmetic.h"
11 #include "testBitPatterns.h"
12 #include "testClassification.h"
13 #include "testError.h"
14 #include "testFunction.h"
15 #include "testLimits.h"
16 #include "testSize.h"
17 #include "testToFloat.h"
18 #include "testBox.h"
19 #include "testBoxAlgo.h"
20 #include "testColor.h"
21 #include "testExtractEuler.h"
22 #include "testExtractSHRT.h"
23 #include "testFrustum.h"
24 #include "testFrustumTest.h"
25 #include "testFun.h"
26 #include "testInterop.h"
27 #include "testNoInterop.h"
28 #include "testInterval.h"
29 #include "testInvert.h"
30 #include "testJacobiEigenSolver.h"
31 #include "testLineAlgo.h"
32 #include "testMatrix.h"
33 #include "testMiscMatrixAlgo.h"
34 #include "testProcrustes.h"
35 #include "testQuat.h"
36 #include "testQuatSetRotation.h"
37 #include "testQuatSlerp.h"
38 #include "testRandom.h"
39 #include "testRoots.h"
40 #include "testShear.h"
41 #include "testTinySVD.h"
42 #include "testVec.h"
43
44 #include <iostream>
45 #include <string.h>
46
47 #define TEST(x) \
48 if (argc < 2 || !strcmp (argv[1], #x)) \
49 x();
50
51 int
52 main (int argc, char* argv[])
53 {
54 // NB: If you add a test here, make sure to enumerate it in the
55 // CMakeLists.txt so it runs as part of the test suite
56 TEST (testToFloat);
57 TEST (testSize);
58 TEST (testArithmetic);
59 TEST (testNormalizedConversionError);
60 TEST (testDenormalizedConversionError);
61 TEST (testRoundingError);
62 TEST (testBitPatterns);
63 TEST (testClassification);
64 TEST (testLimits);
65 TEST (testHalfLimits);
66 TEST (testFunction);
67 TEST (testVec);
68 TEST (testColor);
69 TEST (testShear);
70 TEST (testMatrix);
71 TEST (testMiscMatrixAlgo);
72 TEST (testRoots);
73 TEST (testFun);
74 TEST (testInvert);
75 TEST (testInterval);
76 TEST (testFrustum);
77 TEST (testRandom);
78 TEST (testExtractEuler);
79 TEST (testExtractSHRT);
80 TEST (testQuat);
81 TEST (testQuatSetRotation);
82 TEST (testQuatSlerp);
83 TEST (testLineAlgo);
84 TEST (testBoxAlgo);
85 TEST (testBox);
86 TEST (testProcrustes);
87 TEST (testTinySVD);
88 TEST (testJacobiEigenSolver);
89 TEST (testFrustumTest);
90 TEST (testInterop);
91 TEST (testNoInterop);
92 // NB: If you add a test here, make sure to enumerate it in the
93 // CMakeLists.txt so it runs as part of the test suite
94
95 return 0;
96 }