Skip to content

Commit

Permalink
Add TestFrameworkFlags param to AddTest
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala committed Nov 19, 2024
1 parent c599c85 commit 5748722
Show file tree
Hide file tree
Showing 19 changed files with 476 additions and 469 deletions.
32 changes: 16 additions & 16 deletions test/API/H5_api_async_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -2693,27 +2693,27 @@ void
H5_api_async_test_add(void)
{
/* Add a fake test to print out a header to distinguish different test interfaces */
AddTest("print_async_test_header", print_async_test_header, NULL, "Prints header for async tests", NULL);
AddTest("print_async_test_header", print_async_test_header, NULL, "Prints header for async tests", NULL, 0);

AddTest("test_one_dataset_io", test_one_dataset_io, NULL, "single dataset I/O", NULL);
AddTest("test_multi_dataset_io", test_multi_dataset_io, NULL, "multi dataset I/O", NULL);
AddTest("test_multi_file_dataset_io", test_multi_file_dataset_io, NULL, "multi file dataset I/O", NULL);
AddTest("test_one_dataset_io", test_one_dataset_io, NULL, "single dataset I/O", NULL, 0);
AddTest("test_multi_dataset_io", test_multi_dataset_io, NULL, "multi dataset I/O", NULL, 0);
AddTest("test_multi_file_dataset_io", test_multi_file_dataset_io, NULL, "multi file dataset I/O", NULL, 0);
AddTest("test_multi_file_grp_dset_io", test_multi_file_grp_dset_io, NULL,
"multi file dataset I/O with groups", NULL);
AddTest("test_set_extent", test_set_extent, NULL, "H5Dset_extent() and H5Dget_space()", NULL);
AddTest("test_attribute_exists", test_attribute_exists, NULL, "H5Aexists()", NULL);
AddTest("test_attribute_io", test_attribute_io, NULL, "attribute I/O", NULL);
"multi file dataset I/O with groups", NULL, 0);
AddTest("test_set_extent", test_set_extent, NULL, "H5Dset_extent() and H5Dget_space()", NULL, 0);
AddTest("test_attribute_exists", test_attribute_exists, NULL, "H5Aexists()", NULL, 0);
AddTest("test_attribute_io", test_attribute_io, NULL, "attribute I/O", NULL, 0);
AddTest("test_attribute_io_tconv", test_attribute_io_tconv, NULL, "attribute I/O with type conversion",
NULL);
NULL, 0);
AddTest("test_attribute_io_compound", test_attribute_io_compound, NULL,
"attribute I/O with compound type conversion", NULL);
AddTest("test_group", test_group, NULL, "group operations", NULL);
AddTest("test_link", test_link, NULL, "link operations", NULL);
AddTest("test_ocopy_orefresh", test_ocopy_orefresh, NULL, "H5Ocopy() and H5Orefresh()", NULL);
AddTest("test_file_reopen", test_file_reopen, NULL, "H5Freopen()", NULL);
"attribute I/O with compound type conversion", NULL, 0);
AddTest("test_group", test_group, NULL, "group operations", NULL, 0);
AddTest("test_link", test_link, NULL, "link operations", NULL, 0);
AddTest("test_ocopy_orefresh", test_ocopy_orefresh, NULL, "H5Ocopy() and H5Orefresh()", NULL, 0);
AddTest("test_file_reopen", test_file_reopen, NULL, "H5Freopen()", NULL, 0);

/* Add a fake test to cleanup test files due to current test interdependencies */
AddTest("test_file_cleanup", test_file_cleanup, NULL, "cleanup test files", NULL);
AddTest("test_file_cleanup", test_file_cleanup, NULL, "cleanup test files", NULL, 0);
}

#else /* H5_API_TEST_HAVE_ASYNC */
Expand All @@ -2722,7 +2722,7 @@ void
H5_api_async_test_add(void)
{
/* Add a fake test to print out a header to distinguish different test interfaces */
AddTest("print_async_test_header", print_async_test_header, NULL, "Prints header for async tests", NULL);
AddTest("print_async_test_header", print_async_test_header, NULL, "Prints header for async tests", NULL, 0);
}

#endif /* H5_API_TEST_HAVE_ASYNC */
84 changes: 42 additions & 42 deletions test/API/H5_api_attribute_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -11599,79 +11599,79 @@ H5_api_attribute_test_add(void)
/* Add a fake test to print out a header to distinguish different test interfaces */
// TODO
AddTest("print_attribute_test_header", print_attribute_test_header, NULL,
"Prints header for attribute tests", NULL);
"Prints header for attribute tests", NULL, 0);

AddTest("test_create_attribute_on_root", MT_API_TEST_FUNC_OUTER(test_create_attribute_on_root), NULL,
"attribute creation on the root group", NULL);
"attribute creation on the root group", NULL, 0);
AddTest("test_create_attribute_on_dataset", MT_API_TEST_FUNC_OUTER(test_create_attribute_on_dataset), NULL,
"attribute creation on a dataset", NULL);
"attribute creation on a dataset", NULL, 0);
AddTest("test_create_attribute_on_datatype", MT_API_TEST_FUNC_OUTER(test_create_attribute_on_datatype), NULL,
"attribute creation on a committed datatype", NULL);
"attribute creation on a committed datatype", NULL, 0);
AddTest("test_create_attribute_with_null_space", MT_API_TEST_FUNC_OUTER(test_create_attribute_with_null_space), NULL,
"attribute creation with a NULL dataspace", NULL);
"attribute creation with a NULL dataspace", NULL, 0);
AddTest("test_create_attribute_with_scalar_space", MT_API_TEST_FUNC_OUTER(test_create_attribute_with_scalar_space), NULL,
"attribute creation with a SCALAR dataspace", NULL);
"attribute creation with a SCALAR dataspace", NULL, 0);
AddTest("test_create_attribute_with_space_in_name", MT_API_TEST_FUNC_OUTER(test_create_attribute_with_space_in_name), NULL,
"attribute creation with a space in attribute's name", NULL);
"attribute creation with a space in attribute's name", NULL, 0);
AddTest("test_create_attribute_invalid_params", MT_API_TEST_FUNC_OUTER(test_create_attribute_invalid_params), NULL,
"attribute creation with invalid parameters", NULL);
AddTest("test_open_attribute", MT_API_TEST_FUNC_OUTER(test_open_attribute), NULL, "attribute opening", NULL);
"attribute creation with invalid parameters", NULL, 0);
AddTest("test_open_attribute", MT_API_TEST_FUNC_OUTER(test_open_attribute), NULL, "attribute opening", NULL, 0);
AddTest("test_open_attribute_invalid_params", MT_API_TEST_FUNC_OUTER(test_open_attribute_invalid_params), NULL,
"attribute opening with invalid parameters", NULL);
AddTest("test_write_attribute", MT_API_TEST_FUNC_OUTER(test_write_attribute), NULL, "H5Awrite", NULL);
"attribute opening with invalid parameters", NULL, 0);
AddTest("test_write_attribute", MT_API_TEST_FUNC_OUTER(test_write_attribute), NULL, "H5Awrite", NULL, 0);
AddTest("test_write_attribute_invalid_params", MT_API_TEST_FUNC_OUTER(test_write_attribute_invalid_params), NULL,
"H5Awrite with invalid parameters", NULL);
AddTest("test_read_attribute", MT_API_TEST_FUNC_OUTER(test_read_attribute), NULL, "H5Aread", NULL);
"H5Awrite with invalid parameters", NULL, 0);
AddTest("test_read_attribute", MT_API_TEST_FUNC_OUTER(test_read_attribute), NULL, "H5Aread", NULL, 0);
AddTest("test_read_attribute_invalid_params", MT_API_TEST_FUNC_OUTER(test_read_attribute_invalid_params), NULL,
"H5Aread with invalid parameters", NULL);
AddTest("test_read_empty_attribute", MT_API_TEST_FUNC_OUTER(test_read_empty_attribute), NULL, "reading an empty attribute", NULL);
"H5Aread with invalid parameters", NULL, 0);
AddTest("test_read_empty_attribute", MT_API_TEST_FUNC_OUTER(test_read_empty_attribute), NULL, "reading an empty attribute", NULL, 0);
AddTest("test_close_attribute_invalid_id", MT_API_TEST_FUNC_OUTER(test_close_attribute_invalid_id), NULL,
"H5Aclose with an invalid attribute ID", NULL);
"H5Aclose with an invalid attribute ID", NULL, 0);
AddTest("test_get_attribute_space_and_type", MT_API_TEST_FUNC_OUTER(test_get_attribute_space_and_type), NULL,
"retrieval of an attribute's dataspace and datatype", NULL);
"retrieval of an attribute's dataspace and datatype", NULL, 0);
AddTest("test_get_attribute_space_and_type_invalid_params",
MT_API_TEST_FUNC_OUTER(test_get_attribute_space_and_type_invalid_params), NULL,
"H5Aget_type/H5Aget_space with invalid parameters", NULL);
"H5Aget_type/H5Aget_space with invalid parameters", NULL, 0);
AddTest("test_attribute_property_lists", MT_API_TEST_FUNC_OUTER(test_attribute_property_lists), NULL,
"attribute property list operations", NULL);
"attribute property list operations", NULL, 0);
AddTest("test_get_attribute_name", MT_API_TEST_FUNC_OUTER(test_get_attribute_name), NULL, "retrieval of an attribute's name",
NULL);
NULL, 0);
AddTest("test_get_attribute_name_invalid_params", MT_API_TEST_FUNC_OUTER(test_get_attribute_name_invalid_params), NULL,
"retrieval of an attribute's name with invalid parameters", NULL);
"retrieval of an attribute's name with invalid parameters", NULL, 0);
AddTest("test_get_attribute_storage_size", MT_API_TEST_FUNC_OUTER(test_get_attribute_storage_size), NULL, "H5Aget_storage_size",
NULL);
AddTest("test_get_attribute_info", MT_API_TEST_FUNC_OUTER(test_get_attribute_info), NULL, "retrieval of attribute info", NULL);
NULL, 0);
AddTest("test_get_attribute_info", MT_API_TEST_FUNC_OUTER(test_get_attribute_info), NULL, "retrieval of attribute info", NULL, 0);
AddTest("test_get_attribute_info_invalid_params", MT_API_TEST_FUNC_OUTER(test_get_attribute_info_invalid_params), NULL,
"retrieval of attribute info with invalid parameters", NULL);
AddTest("test_rename_attribute", MT_API_TEST_FUNC_OUTER(test_rename_attribute), NULL, "attribute renaming", NULL);
"retrieval of attribute info with invalid parameters", NULL, 0);
AddTest("test_rename_attribute", MT_API_TEST_FUNC_OUTER(test_rename_attribute), NULL, "attribute renaming", NULL, 0);
AddTest("test_rename_attribute_invalid_params", MT_API_TEST_FUNC_OUTER(test_rename_attribute_invalid_params), NULL,
"attribute renaming with invalid parameters", NULL);
"attribute renaming with invalid parameters", NULL, 0);
AddTest("test_attribute_iterate_group", MT_API_TEST_FUNC_OUTER(test_attribute_iterate_group), NULL,
"attribute iteration on a group", NULL);
"attribute iteration on a group", NULL, 0);
AddTest("test_attribute_iterate_dataset", MT_API_TEST_FUNC_OUTER(test_attribute_iterate_dataset), NULL,
"attribute iteration on a dataset", NULL);
"attribute iteration on a dataset", NULL, 0);
AddTest("test_attribute_iterate_datatype", MT_API_TEST_FUNC_OUTER(test_attribute_iterate_datatype), NULL,
"attribute iteration on a committed datatype", NULL);
"attribute iteration on a committed datatype", NULL, 0);
AddTest("test_attribute_iterate_index_saving", MT_API_TEST_FUNC_OUTER(test_attribute_iterate_index_saving), NULL,
"attribute iteration index saving capability", NULL);
"attribute iteration index saving capability", NULL, 0);
AddTest("test_attribute_iterate_invalid_params", MT_API_TEST_FUNC_OUTER(test_attribute_iterate_invalid_params), NULL,
"attribute iteration with invalid parameters", NULL);
"attribute iteration with invalid parameters", NULL, 0);
AddTest("test_attribute_iterate_0_attributes", MT_API_TEST_FUNC_OUTER(test_attribute_iterate_0_attributes), NULL,
"attribute iteration on object with 0 attributes", NULL);
"attribute iteration on object with 0 attributes", NULL, 0);
AddTest("test_attribute_compound_subset", MT_API_TEST_FUNC_OUTER(test_attribute_compound_subset), NULL,
"verification of attribute data using H5Awrite then H5Aread with compound type subsets", NULL);
"verification of attribute data using H5Awrite then H5Aread with compound type subsets", NULL, 0);
AddTest("test_attribute_string_encodings", MT_API_TEST_FUNC_OUTER(test_attribute_string_encodings), NULL,
"string encoding read/write correctness on attributes", NULL);
AddTest("test_delete_attribute", MT_API_TEST_FUNC_OUTER(test_delete_attribute), NULL, "attribute deletion", NULL);
"string encoding read/write correctness on attributes", NULL, 0);
AddTest("test_delete_attribute", MT_API_TEST_FUNC_OUTER(test_delete_attribute), NULL, "attribute deletion", NULL, 0);
AddTest("test_delete_attribute_invalid_params", MT_API_TEST_FUNC_OUTER(test_delete_attribute_invalid_params), NULL,
"attribute deletion with invalid parameters", NULL);
AddTest("test_attribute_exists", MT_API_TEST_FUNC_OUTER(test_attribute_exists), NULL, "attribute existence", NULL);
"attribute deletion with invalid parameters", NULL, 0);
AddTest("test_attribute_exists", MT_API_TEST_FUNC_OUTER(test_attribute_exists), NULL, "attribute existence", NULL, 0);
AddTest("test_attribute_exists_invalid_params", MT_API_TEST_FUNC_OUTER(test_attribute_exists_invalid_params), NULL,
"attribute existence with invalid parameters", NULL);
"attribute existence with invalid parameters", NULL, 0);
AddTest("test_attribute_duplicate_id", MT_API_TEST_FUNC_OUTER(test_attribute_duplicate_id), NULL,
"duplicated IDs for an attribute", NULL);
AddTest("test_attribute_many", MT_API_TEST_FUNC_OUTER(test_attribute_many), NULL, "creating many attributes", NULL);
"duplicated IDs for an attribute", NULL, 0);
AddTest("test_attribute_many", MT_API_TEST_FUNC_OUTER(test_attribute_many), NULL, "creating many attributes", NULL, 0);
AddTest("test_get_number_attributes", MT_API_TEST_FUNC_OUTER(test_get_number_attributes), NULL,
"retrieval of the number of attributes on an object", NULL);
AddTest("test_attr_shared_dtype", MT_API_TEST_FUNC_OUTER(test_attr_shared_dtype), NULL, "shared datatype for attributes", NULL);
"retrieval of the number of attributes on an object", NULL, 0);
AddTest("test_attr_shared_dtype", MT_API_TEST_FUNC_OUTER(test_attr_shared_dtype), NULL, "shared datatype for attributes", NULL, 0);
}
Loading

0 comments on commit 5748722

Please sign in to comment.