-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAllH5ObjectTests.java
More file actions
66 lines (57 loc) · 1.68 KB
/
Copy pathAllH5ObjectTests.java
File metadata and controls
66 lines (57 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/**
*
*/
package test.object;
import junit.framework.Test;
import junit.framework.TestResult;
import junit.framework.TestSuite;
import ncsa.hdf.hdf5lib.H5;
/**
* Test suite for all unit tests of HDF5 objects.
*
* @author xcao
*
*/
public class AllH5ObjectTests {
public static Test suite() {
try {
H5TestFile.createTestFile(null);
}
catch (final Exception ex) {
System.out.println("*** Unable to create HDF5 test file. " + ex);
System.exit(-1);
}
final TestSuite suite = new TestSuite("Test for hdf-java objects");
// $JUnit-BEGIN$
// ncsa.hdf.object.h5 package
suite.addTestSuite(H5CompoundDSTest.class);
suite.addTestSuite(H5BugFixTest.class);
suite.addTestSuite(H5ScalarDSTest.class);
suite.addTestSuite(H5GroupTest.class);
suite.addTestSuite(H5DatatypeTest.class);
suite.addTestSuite(H5FileTest.class);
// ncsa.hdf.object package
suite.addTestSuite(CompoundDSTest.class);
suite.addTestSuite(DatasetTest.class);
suite.addTestSuite(ScalarDSTest.class);
suite.addTestSuite(AttributeTest.class);
suite.addTestSuite(DatatypeTest.class);
suite.addTestSuite(FileFormatTest.class);
suite.addTestSuite(GroupTest.class);
suite.addTestSuite(HObjectTest.class);
// $JUnit-END$
return suite;
}
public static void main(final String[] args) {
TestResult results = junit.textui.TestRunner.run(suite());
if (!results.wasSuccessful())
System.out.println("FAILED***:\tobject unit tests.\n");
try {
int openID = H5.getOpenIDCount();
if(openID>0)
System.out.println("Number of IDs still open: "+ openID);
} catch (Exception ex) {
ex.printStackTrace();
}
}
}