Example #1
0
int main(int argc, char** argv)
{
    //lucius::util::enableAllLogs();

    std::cout << "Running model unit tests\n";

    bool passed = true;

    passed &= testSaveLoad();

    if(not passed)
    {
        std::cout << "Test Failed\n";
    }
    else
    {
        std::cout << "Test Passed\n";
    }

    return 0;
}
Example #2
0
int main(int argc,char *argv[])
{
    {
        Partio::ParticlesDataMutable* foo=makeData();
        testSaveLoad(foo,"test.bgeo");
        testSaveLoad(foo,"test.bgeo.gz");
        testSaveLoad(foo,"test.geo");
        testSaveLoad(foo,"test.geo.gz");
        testSaveLoad(foo,"test.ptc");
        testSaveLoad(foo,"test.ptc.gz");
        testSaveLoad(foo,"test.pdb");
        testSaveLoad(foo,"test.pdb.gz");
        testEmptySaveLoad("testEmpty.geo");
        testEmptySaveLoad("testEmpty.bgeo");
        testEmptySaveLoad("testEmpty.pdb");
        testEmptySaveLoad("testEmpty.ptc");
        foo->release();
    }


    return 0;

}
Example #3
0
 void run ()
 {
     testGetValues();
     testSaveLoad();
 }