Show
Ignore:
Timestamp:
07/03/06 15:53:39 (8 years ago)
Author:
robert
Message:

Added a performace test section to osgunitests, currently just does basic C/C++ tests.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgunittests/osgunittests.cpp

    r4318 r5219  
    66#include <osg/Matrix> 
    77#include <osg/io_utils> 
     8 
     9#include "performance.h" 
    810 
    911#include <iostream> 
     
    193195    arguments.getApplicationUsage()->addCommandLineOption("sizeof","Display sizeof tests."); 
    194196    arguments.getApplicationUsage()->addCommandLineOption("matrix","Display qualified tests."); 
     197    arguments.getApplicationUsage()->addCommandLineOption("performance","Display qualified tests."); 
    195198  
    196199 
     
    212215    bool printQuatTest = false;  
    213216    while (arguments.read("quat")) printQuatTest = true;  
     217 
     218    bool performanceTest = false;  
     219    while (arguments.read("p") || arguments.read("performance")) performanceTest = true;  
    214220 
    215221    // if user request help write it out to cout. 
     
    262268 
    263269        std::cout<<std::endl; 
     270    } 
     271 
     272 
     273    if (performanceTest) 
     274    { 
     275        std::cout<<"**** performance tests  ******"<<std::endl; 
     276         
     277        runPerformanceTests(); 
    264278    } 
    265279