-
-
Notifications
You must be signed in to change notification settings - Fork 325
Merge test file generators for tools #5515
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
Merged
Merged
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
dc8ba0e
Add header files for tool gentest scripts
mattjala ffab158
Extract tool gentest routines into core files
mattjala 6d9ce2f
Committing clang-format changes
github-actions[bot] 63bfe99
Correct library type for core targets
mattjala 6236249
Remove empty file
mattjala 21ba952
Use EXIT_SUCCESS/EXIT_FAILURE on script exit
mattjala 8458cc7
Merge gentest scripts
mattjala 1cde634
Remove h5clear from merged script
mattjala 0d19897
Include gentest header
mattjala f70df31
Committing clang-format changes
github-actions[bot] 01d4765
Add udfilter files to h5copy gen func
mattjala 3f42d3a
Committing clang-format changes
github-actions[bot] 943ffab
Add nerror returns to main generator functions
mattjala a245ef4
Rework command line parsing
mattjala 3f8daa2
Committing clang-format changes
github-actions[bot] c0a333b
Move defines to tool headers
mattjala ab85ec6
Committing clang-format changes
github-actions[bot] 184e289
Add copyright header
mattjala 5e07c65
Remove duplicate comment
mattjala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,11 +10,9 @@ | |
| * [email protected]. * | ||
| * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | ||
|
|
||
| /* | ||
| * Generate the binary hdf5 file for the h5copy tests | ||
| */ | ||
| #include "hdf5.h" | ||
| #include "H5private.h" | ||
| #include "h5copygentest.h" | ||
|
|
||
| /* HDF file names */ | ||
| #define HDF_FILE1 "h5copytst.h5" | ||
|
|
@@ -41,6 +39,7 @@ | |
| /* Obj reference */ | ||
| #define OBJ_REF_DS "Dset1" | ||
| #define OBJ_REF_GRP "Group" | ||
|
|
||
| /* Region reference */ | ||
| #define REG_REF_DS1 "Dset_REGREF" | ||
| #define REG_REF_DS2 "Dset2" | ||
|
|
@@ -52,7 +51,7 @@ | |
| * | ||
| *------------------------------------------------------------------------- | ||
| */ | ||
| static void | ||
| void | ||
| gent_simple(hid_t loc_id) | ||
| { | ||
| hid_t sid, did; | ||
|
|
@@ -80,7 +79,7 @@ gent_simple(hid_t loc_id) | |
| * | ||
| *------------------------------------------------------------------------- | ||
| */ | ||
| static void | ||
| void | ||
| gent_chunked(hid_t loc_id) | ||
| { | ||
| hid_t sid, did, pid; | ||
|
|
@@ -114,7 +113,7 @@ gent_chunked(hid_t loc_id) | |
| * | ||
| *------------------------------------------------------------------------- | ||
| */ | ||
| static void | ||
| void | ||
| gent_compact(hid_t loc_id) | ||
| { | ||
| hid_t sid, did, pid; | ||
|
|
@@ -147,7 +146,7 @@ gent_compact(hid_t loc_id) | |
| * | ||
| *------------------------------------------------------------------------- | ||
| */ | ||
| static void | ||
| void | ||
| gent_compound(hid_t loc_id) | ||
| { | ||
| typedef struct s_t { | ||
|
|
@@ -189,7 +188,7 @@ gent_compound(hid_t loc_id) | |
| * | ||
| *------------------------------------------------------------------------- | ||
| */ | ||
| static void | ||
| void | ||
| gent_compressed(hid_t loc_id) | ||
| { | ||
| hid_t sid, did, pid; | ||
|
|
@@ -229,7 +228,7 @@ gent_compressed(hid_t loc_id) | |
| * | ||
| *------------------------------------------------------------------------- | ||
| */ | ||
| static void | ||
| void | ||
| gent_named_vl(hid_t loc_id) | ||
| { | ||
| hid_t sid, did, tid; | ||
|
|
@@ -274,7 +273,7 @@ gent_named_vl(hid_t loc_id) | |
| * | ||
| *------------------------------------------------------------------------- | ||
| */ | ||
| static void | ||
| void | ||
| gent_nested_vl(hid_t loc_id) | ||
| { | ||
| hid_t sid, did, tid1, tid2; | ||
|
|
@@ -330,7 +329,7 @@ gent_nested_vl(hid_t loc_id) | |
| * | ||
| *------------------------------------------------------------------------- | ||
| */ | ||
| static void | ||
| void | ||
| gent_att_compound_vlstr(hid_t loc_id) | ||
| { | ||
| typedef struct { /* Compound structure for the attribute */ | ||
|
|
@@ -409,7 +408,7 @@ gent_att_compound_vlstr(hid_t loc_id) | |
| * | ||
| *------------------------------------------------------------------------- | ||
| */ | ||
| static void | ||
| void | ||
| gent_datasets(hid_t loc_id) | ||
| { | ||
| gent_simple(loc_id); | ||
|
|
@@ -428,7 +427,7 @@ gent_datasets(hid_t loc_id) | |
| * | ||
| *------------------------------------------------------------------------- | ||
| */ | ||
| static void | ||
| void | ||
| gent_empty_group(hid_t loc_id) | ||
| { | ||
| hid_t gid; | ||
|
|
@@ -448,7 +447,7 @@ gent_empty_group(hid_t loc_id) | |
| * | ||
| *------------------------------------------------------------------------- | ||
| */ | ||
| static void | ||
| void | ||
| gent_nested_datasets(hid_t loc_id) | ||
| { | ||
| hid_t gid; | ||
|
|
@@ -471,7 +470,7 @@ gent_nested_datasets(hid_t loc_id) | |
| * | ||
| *------------------------------------------------------------------------- | ||
| */ | ||
| static void | ||
| void | ||
| gent_nested_group(hid_t loc_id) | ||
| { | ||
| hid_t gid; | ||
|
|
@@ -706,7 +705,7 @@ gen_region_ref(hid_t loc_id) | |
| * Purpose: Testing with various objects | ||
| * | ||
| *------------------------------------------------------------------------*/ | ||
| static void | ||
| void | ||
| Test_Obj_Copy(void) | ||
| { | ||
| hid_t fid = H5I_INVALID_HID; /* File id */ | ||
|
|
@@ -762,7 +761,7 @@ Test_Obj_Copy(void) | |
| * Purpose: Testing with various references | ||
| * | ||
| *------------------------------------------------------------------------*/ | ||
| static void | ||
| void | ||
| Test_Ref_Copy(void) | ||
| { | ||
| hid_t fid = 0; | ||
|
|
@@ -921,7 +920,7 @@ gen_extlink_src(hid_t loc_id) | |
| * Purpose: generate external link files | ||
| * | ||
| *------------------------------------------------------------------------*/ | ||
| static void | ||
| void | ||
| Test_Extlink_Copy(void) | ||
| { | ||
| hid_t fid1 = 0; | ||
|
|
@@ -958,20 +957,4 @@ Test_Extlink_Copy(void) | |
| H5Fclose(fid1); | ||
| if (fid2 > 0) | ||
| H5Fclose(fid2); | ||
| } | ||
|
|
||
| /*------------------------------------------------------------------------- | ||
| * Function: main | ||
| * | ||
| *------------------------------------------------------------------------- | ||
| */ | ||
|
|
||
| int | ||
| main(void) | ||
| { | ||
| Test_Obj_Copy(); | ||
| Test_Ref_Copy(); | ||
| Test_Extlink_Copy(); | ||
|
|
||
| return 0; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| * Copyright by The HDF Group. * | ||
| * All rights reserved. * | ||
| * * | ||
| * This file is part of HDF5. The full HDF5 copyright notice, including * | ||
| * terms governing use, modification, and redistribution, is contained in * | ||
| * the LICENSE file, which can be found at the root of the source code * | ||
| * distribution tree, or in https://www.hdfgroup.org/licenses. * | ||
| * If you do not have access to either file, you may request a copy from * | ||
| * [email protected]. * | ||
| * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | ||
|
|
||
| #ifndef H5COPY_GENTEST_H | ||
| #define H5COPY_GENTEST_H | ||
|
|
||
| #include "hdf5.h" | ||
|
|
||
| #define H5COPY_UDFILTER_FILE "tudfilter.h5" | ||
| #define H5COPY_UDFILTER_FILE2 "tudfilter2.h5" | ||
|
|
||
| void gent_simple(hid_t loc_id); | ||
| void gent_chunked(hid_t loc_id); | ||
| void gent_compact(hid_t loc_id); | ||
| void gent_compound(hid_t loc_id); | ||
| void gent_compressed(hid_t loc_id); | ||
| void gent_named_vl(hid_t loc_id); | ||
| void gent_nested_vl(hid_t loc_id); | ||
| void gent_att_compound_vlstr(hid_t loc_id); | ||
| void gent_datasets(hid_t loc_id); | ||
| void gent_empty_group(hid_t loc_id); | ||
| void gent_nested_datasets(hid_t loc_id); | ||
| void gent_nested_group(hid_t loc_id); | ||
|
|
||
| void Test_Obj_Copy(void); | ||
| void Test_Ref_Copy(void); | ||
| void Test_Extlink_Copy(void); | ||
|
|
||
| #endif /* H5COPY_GENTEST_H */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.