Blame ImathTest/main.cpp

Packit 8dc392
///////////////////////////////////////////////////////////////////////////
Packit 8dc392
//
Packit 8dc392
// Copyright (c) 2002, Industrial Light & Magic, a division of Lucas
Packit 8dc392
// Digital Ltd. LLC
Packit 8dc392
// 
Packit 8dc392
// All rights reserved.
Packit 8dc392
// 
Packit 8dc392
// Redistribution and use in source and binary forms, with or without
Packit 8dc392
// modification, are permitted provided that the following conditions are
Packit 8dc392
// met:
Packit 8dc392
// *       Redistributions of source code must retain the above copyright
Packit 8dc392
// notice, this list of conditions and the following disclaimer.
Packit 8dc392
// *       Redistributions in binary form must reproduce the above
Packit 8dc392
// copyright notice, this list of conditions and the following disclaimer
Packit 8dc392
// in the documentation and/or other materials provided with the
Packit 8dc392
// distribution.
Packit 8dc392
// *       Neither the name of Industrial Light & Magic nor the names of
Packit 8dc392
// its contributors may be used to endorse or promote products derived
Packit 8dc392
// from this software without specific prior written permission. 
Packit 8dc392
// 
Packit 8dc392
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Packit 8dc392
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Packit 8dc392
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Packit 8dc392
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Packit 8dc392
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Packit 8dc392
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Packit 8dc392
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Packit 8dc392
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Packit 8dc392
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Packit 8dc392
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Packit 8dc392
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit 8dc392
//
Packit 8dc392
///////////////////////////////////////////////////////////////////////////
Packit 8dc392
Packit 8dc392
Packit 8dc392
Packit 8dc392
#include <testVec.h>
Packit 8dc392
#include <testRoots.h>
Packit 8dc392
#include <testFun.h>
Packit 8dc392
#include <testInvert.h>
Packit 8dc392
#include <testFrustum.h>
Packit 8dc392
#include <testRandom.h>
Packit 8dc392
#include <testColor.h>
Packit 8dc392
#include <testShear.h>
Packit 8dc392
#include <testMatrix.h>
Packit 8dc392
#include <testMiscMatrixAlgo.h>
Packit 8dc392
#include <testExtractEuler.h>
Packit 8dc392
#include <testExtractSHRT.h>
Packit 8dc392
#include <testQuat.h>
Packit 8dc392
#include <testQuatSetRotation.h>
Packit 8dc392
#include <testQuatSlerp.h>
Packit 8dc392
#include <testLineAlgo.h>
Packit 8dc392
#include <testBoxAlgo.h>
Packit 8dc392
#include <testBox.h>
Packit 8dc392
#include <testProcrustes.h>
Packit 8dc392
#include <testTinySVD.h>
Packit 8dc392
#include <testJacobiEigenSolver.h>
Packit 8dc392
#include <testFrustumTest.h>
Packit 8dc392
Packit 8dc392
#include <string.h>
Packit 8dc392
Packit 8dc392
#define TEST(x) if (argc < 2 || !strcmp (argv[1], #x)) x();
Packit 8dc392
Packit 8dc392
int
Packit 8dc392
main (int argc, char *argv[])
Packit 8dc392
{
Packit 8dc392
    TEST (testVec);
Packit 8dc392
    TEST (testColor);
Packit 8dc392
    TEST (testShear);
Packit 8dc392
    TEST (testMatrix);
Packit 8dc392
    TEST (testMiscMatrixAlgo);
Packit 8dc392
    TEST (testRoots);
Packit 8dc392
    TEST (testFun);
Packit 8dc392
    TEST (testInvert);
Packit 8dc392
    TEST (testFrustum);
Packit 8dc392
    TEST (testRandom);
Packit 8dc392
    TEST (testExtractEuler);
Packit 8dc392
    TEST (testExtractSHRT);
Packit 8dc392
    TEST (testQuat);
Packit 8dc392
    TEST (testQuatSetRotation);
Packit 8dc392
    TEST (testQuatSlerp);
Packit 8dc392
    TEST (testLineAlgo);
Packit 8dc392
    TEST (testBoxAlgo);
Packit 8dc392
    TEST (testBox);
Packit 8dc392
    TEST (testProcrustes);
Packit 8dc392
    TEST (testTinySVD);
Packit 8dc392
    TEST (testJacobiEigenSolver);
Packit 8dc392
    TEST (testFrustumTest);
Packit 8dc392
Packit 8dc392
    return 0;
Packit 8dc392
}