/* * Copyright (c) 2016-2016 Irlan Robson http://www.irlan.net * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include TestEntry g_tests[] = { { "Quickhull Test", &QuickhullTest::Create }, { "Cluster Test", &Cluster::Create }, { "Distance Test", &Distance::Create }, { "Capsule Collision", &CapsuleCollision::Create }, { "Capsule and Hull Collision (1)", &CapsuleAndHullCollision1::Create }, { "Capsule and Hull Collision (2)", &CapsuleAndHullCollision2::Create }, { "Hull Collision (1)", &HullAndHull::Create }, { "Hull Collision (2)", &HullAndHull2::Create }, { "Capsule and Hull Contact (1)", &CapsuleAndHullContact1::Create }, { "Mesh Contact Test", &MeshContactTest::Create }, { "Linear Motion", &LinearMotion::Create }, { "Angular Motion", &AngularMotion::Create }, { "Gyroscopic Motion", &GyroMotion::Create }, { "Compound Body", &CompoundBody::Create }, { "Quadric Shapes", &QuadricShapes::Create }, { "Springs", &Spring::Create }, { "Weld Test", &WeldTest::Create }, { "Cone Test", &ConeTest::Create }, { "Hinge Motor", &HingeMotor::Create }, { "Hinge Chain", &HingeChain::Create }, { "Ragdoll", &Ragdoll::Create }, { "Newton's Cradle", &NewtonCradle::Create }, { "Sphere Stack", &SphereStack::Create }, { "Capsule Stack", &CapsuleStack::Create }, { "Box Stack", &BoxStack::Create }, { "Sheet Stack", &SheetStack::Create }, { "Shape Stack", &ShapeStack::Create }, { "Jenga", &Jenga::Create }, { "Box Pyramid", &Pyramid::Create }, { "Box Pyramid Rows", &Pyramids::Create }, { "Ray Cast", &RayCast::Create }, { "Sensor Test", &SensorTest::Create }, { "Point & Click", &PointClick::Create }, { "Body Types", &BodyTypes::Create }, { "Varying Friction", &VaryingFriction::Create }, { "Varying Restitution", &VaryingRestitution::Create }, { "Tumbler", &Tumbler::Create }, { "Initial Overlap", &InitialOverlap::Create }, { "Single Pendulum", &SinglePendulum::Create }, { "Multiple Pendulum", &MultiplePendulum::Create }, { "Cloth", &Cloth::Create }, { "Spring Cloth", &SpringCloth::Create }, { "Spring Cloth Collision", &SpringClothCollision::Create }, { "Tension Mapping", &TensionMapping::Create }, { "Rope", &Rope::Create }, { "Mass-Spring System", &MassSpring::Create }, { "Shift Center", &ShiftCenter::Create }, { NULL, NULL } }; // static u32 TestCount() { u32 count = 0; while (g_tests[count].create != NULL) { ++count; } return count; } // Count the tests u32 g_testCount = TestCount();