Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate API tests with testing framework #5133

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jhendersonHDF
Copy link
Collaborator

Allows skipping of individual tests by interface or by name

@jhendersonHDF jhendersonHDF added Priority - 1. High 🔼 These are important issues that should be resolved in the next release Component - Testing Code in test or testpar directories, GitHub workflows Type - Improvement Improvements that don't add a new feature or functionality labels Nov 20, 2024
@@ -403,10 +403,6 @@ if (HDF5_EXPORTED_TARGETS AND HDF5_TEST_API_INSTALL)

foreach (api_test_extra ${HDF5_API_TESTS_EXTRA})
if (TARGET ${api_test_extra})
set_target_properties (${api_test_extra}
PROPERTIES
OUTPUT_NAME "h5_api_test_${api_test_extra}"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverts the renaming of the testhdf5 executable when HDF5_TEST_API_INSTALL is ON since this caused issues

@@ -4002,13 +3936,6 @@ test_dataset_property_lists(void)
goto error;
}

/** for DAOS VOL, this test is problematic since auto chunking can be selected, so skip for now */
if (H5VLget_connector_name(file_id, vol_name, 5) < 0) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With these changes we should be able to skip tests that are problematic for particular VOL connectors

@jhendersonHDF jhendersonHDF marked this pull request as draft November 20, 2024 20:54
Allows skipping of individual tests by interface or by name
@jhendersonHDF jhendersonHDF marked this pull request as ready for review November 20, 2024 23:17
@@ -11531,19 +11427,6 @@ test_dataset_set_extent_invalid_params(void)
goto error;
}

/** for DAOS VOL, this test is problematic since auto chunking can be selected, so skip for now */
if (H5VLget_connector_name(file_id, vol_name, 5) < 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing this was removed because this test can now be skipped during DAOS testing at runtime?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I believe my thinking at the time was that it's not really necessary to have VOL-specific hacks in the code (I don't like these anyway) since this PR allows us to have more fine-grained control over skipping particular tests.

{
char file_name[64];
int i;

if (MAINPROCESS) {
H5Fdelete(PAR_ASYNC_API_TEST_FILE, H5P_DEFAULT);
remove_test_file(NULL, PAR_ASYNC_API_TEST_FILE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creation of this file is skipped based on VOL cap flags, so cleanup probably should be too

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, though file cleanup should assume that some files may be missing anyway, so it's simpler and less code just to always try deleting things.

{
char file_name[64];
int i;
if (GetTestCleanup()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleanup check is redundant since remove_test_file also checks this


remove_test_file(NULL, ASYNC_API_TEST_FILE);
remove_test_file(NULL, ASYNC_API_TEST_FILE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creation of this file is skipped based on VOL cap flags, so cleanup probably should be too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Testing Code in test or testpar directories, GitHub workflows Priority - 1. High 🔼 These are important issues that should be resolved in the next release Type - Improvement Improvements that don't add a new feature or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants