summaryrefslogtreecommitdiffstats
path: root/test/btree2.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2006-06-28 18:06:05 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2006-06-28 18:06:05 (GMT)
commit95a106f9fd78ce39ece6fef5e44de540b6bcd7a1 (patch)
tree8005f75dc0ad2cfae94c9a0321980af878408c2b /test/btree2.c
parentb2acb3e736ade86a00db664ab118bf1df7b78866 (diff)
downloadhdf5-95a106f9fd78ce39ece6fef5e44de540b6bcd7a1.zip
hdf5-95a106f9fd78ce39ece6fef5e44de540b6bcd7a1.tar.gz
hdf5-95a106f9fd78ce39ece6fef5e44de540b6bcd7a1.tar.bz2
[svn-r12443] Purpose:
Added/adjusted Test Express mode. Description: btree2: Added TestExpress mode to skip some long tests (the 5th recursive and the two random tests.) fheap: Changed the express mode messages to be more informative. Un-excluded some tests from express mode. Platforms tested: Red Storm.
Diffstat (limited to 'test/btree2.c')
-rw-r--r--test/btree2.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/btree2.c b/test/btree2.c
index dfb024a..38720ba 100644
--- a/test/btree2.c
+++ b/test/btree2.c
@@ -5575,10 +5575,14 @@ main(void)
{
hid_t fapl = -1; /* File access property list for data files */
unsigned nerrors = 0; /* Cumulative error count */
+ int ExpressMode;
/* Reset library */
h5_reset();
fapl = h5_fileaccess();
+ ExpressMode = GetTestExpress();
+ if (ExpressMode > 1)
+ printf("***Express test mode on. Some tests may be skipped\n");
/* Test B-tree record insertion */
/* Iteration, find & index routines tested in these routines as well */
@@ -5595,7 +5599,10 @@ main(void)
nerrors += test_insert_level2_2internal_split(fapl);
nerrors += test_insert_level2_3internal_redistrib(fapl);
nerrors += test_insert_level2_3internal_split(fapl);
- nerrors += test_insert_lots(fapl);
+ if (ExpressMode > 1)
+ printf("***Express test mode on. test_insert_lots skipped\n");
+ else
+ nerrors += test_insert_lots(fapl);
/* Test B-tree record removal */
/* Querying the number of records routine also tested in these routines as well */
@@ -5619,7 +5626,10 @@ main(void)
nerrors += test_remove_level2_2internal_merge_right(fapl);
nerrors += test_remove_level2_3internal_merge(fapl);
nerrors += test_remove_level2_collapse_right(fapl);
- nerrors += test_remove_lots(fapl);
+ if (ExpressMode > 1)
+ printf("***Express test mode on. test_remove_lots skipped\n");
+ else
+ nerrors += test_remove_lots(fapl);
/* Test more complex B-tree queries */
nerrors += test_find_neighbor(fapl);