Show
Ignore:
Timestamp:
03/10/10 13:13:31 (3 years ago)
Author:
robert
Message:

Added tests of various FileNameUtils? functions, tests invoked by osgunittests filenames

Files:
1 modified

Legend:

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

    r10324 r11186  
    3333 
    3434#include <iostream> 
     35 
     36extern void runFileNameUtilsTest(osg::ArgumentParser& arguments); 
    3537 
    3638void testFrustum(double left,double right,double bottom,double top,double zNear,double zFar) 
     
    586588 
    587589    bool printSizeOfTest = false;  
    588     while (arguments.read("sizeof")) printSizeOfTest = true;  
     590    while (arguments.read("sizeof")) printSizeOfTest = true; 
     591 
     592    bool printFileNameUtilsTests = false; 
     593    while (arguments.read("filenames")) printFileNameUtilsTests = true; 
    589594 
    590595    bool printQuatTest = false;  
     
    698703    } 
    699704 
     705    if (printFileNameUtilsTests) 
     706    { 
     707        runFileNameUtilsTest(arguments); 
     708    } 
     709 
     710 
    700711    if (doTestThreadInitAndExit) 
    701712    {