diff options
Diffstat (limited to 'test/testhdf5.c')
-rw-r--r-- | test/testhdf5.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/testhdf5.c b/test/testhdf5.c index b0408af..813cc87 100644 --- a/test/testhdf5.c +++ b/test/testhdf5.c @@ -39,11 +39,8 @@ int main(int argc, char *argv[]) { - int Summary = 0; - int CleanUp = 1; - /* Initialize testing framework */ - TestInit(); + TestInit(argv[0], NULL, NULL); /* Tests are generally arranged from least to most complexity... */ AddTest("configure", test_configure, cleanup_configure, "Configure definitions", NULL); @@ -64,23 +61,22 @@ main(int argc, char *argv[]) AddTest("array", test_array, cleanup_array, "Array Datatypes", NULL); AddTest("genprop", test_genprop, cleanup_genprop, "Generic Properties", NULL); AddTest("misc", test_misc, cleanup_misc, "Miscellaneous", NULL); - AddTest("id", test_ids, NULL, "Public ID Functions", NULL); /* Display testing information */ TestInfo(argv[0]); /* Parse command line arguments */ - TestParseCmdLine(argc,argv,&Summary,&CleanUp,NULL); + TestParseCmdLine(argc,argv); /* Perform requested testing */ PerformTests(); /* Display test summary, if requested */ - if (Summary) + if (GetTestSummary()) TestSummary(); /* Clean up test files, if allowed */ - if (CleanUp && !getenv("HDF5_NOCLEANUP")) + if (GetTestCleanup() && !getenv("HDF5_NOCLEANUP")) TestCleanup(); return (GetTestNumErrs()); |