summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures
ModeNameSize
-rw-r--r--CMakeLists.txt14482logstatsplain
-rw-r--r--c_function_prototypes.c95logstatsplain
-rw-r--r--c_restrict.c82logstatsplain
-rw-r--r--c_static_assert.c42logstatsplain
-rw-r--r--c_variadic_macros.c188logstatsplain
-rw-r--r--cxx_aggregate_default_initializers.cpp181logstatsplain
-rw-r--r--cxx_alias_templates.cpp156logstatsplain
-rw-r--r--cxx_alignas.cpp36logstatsplain
-rw-r--r--cxx_alignof.cpp43logstatsplain
-rw-r--r--cxx_attribute_deprecated.cpp78logstatsplain
-rw-r--r--cxx_attributes.cpp46logstatsplain
-rw-r--r--cxx_auto_type.cpp95logstatsplain
-rw-r--r--cxx_binary_literals.cpp53logstatsplain
-rw-r--r--cxx_constexpr.cpp41logstatsplain
-rw-r--r--cxx_contextual_conversions.cpp503logstatsplain
-rw-r--r--cxx_decltype.cpp74logstatsplain
-rw-r--r--cxx_decltype_auto.cpp75logstatsplain
-rw-r--r--cxx_decltype_incomplete_return_types.cpp240logstatsplain
-rw-r--r--cxx_default_function_template_args.cpp106logstatsplain
-rw-r--r--cxx_defaulted_functions.cpp60logstatsplain
-rw-r--r--cxx_defaulted_move_initializers.cpp83logstatsplain
-rw-r--r--cxx_delegating_constructors.cpp116logstatsplain
-rw-r--r--cxx_deleted_functions.cpp74logstatsplain
-rw-r--r--cxx_digit_separators.cpp78logstatsplain
-rw-r--r--cxx_enum_forward_declarations.cpp80logstatsplain
-rw-r--r--cxx_explicit_conversions.cpp89logstatsplain
-rw-r--r--cxx_extended_friend_declarations.cpp232logstatsplain
-rw-r--r--cxx_extern_templates.cpp122logstatsplain
-rw-r--r--cxx_final.cpp20logstatsplain
-rw-r--r--cxx_func_identifier.cpp61logstatsplain
-rw-r--r--cxx_generalized_initializers.cpp569logstatsplain
-rw-r--r--cxx_generic_lambdas.cpp86logstatsplain
-rw-r--r--cxx_inheriting_constructors.cpp134logstatsplain
-rw-r--r--cxx_inline_namespaces.cpp280logstatsplain
-rw-r--r--cxx_lambda_init_captures.cpp89logstatsplain
-rw-r--r--cxx_lambdas.cpp33logstatsplain
-rw-r--r--cxx_local_type_template_args.cpp276logstatsplain
-rw-r--r--cxx_long_long_type.cpp61logstatsplain
-rw-r--r--cxx_noexcept.cpp31logstatsplain
-rw-r--r--cxx_nonstatic_member_init.cpp29logstatsplain
-rw-r--r--cxx_nullptr.cpp69logstatsplain
-rw-r--r--cxx_override.cpp94logstatsplain
-rw-r--r--cxx_range_for.cpp133logstatsplain
-rw-r--r--cxx_raw_string_literals.cpp51logstatsplain
-rw-r--r--cxx_reference_qualified_functions.cpp125logstatsplain
-rw-r--r--cxx_relaxed_constexpr.cpp293logstatsplain
-rw-r--r--cxx_return_type_deduction.cpp83logstatsplain
-rw-r--r--cxx_right_angle_brackets.cpp113logstatsplain
-rw-r--r--cxx_rvalue_references.cpp27logstatsplain
-rw-r--r--cxx_sizeof_member.cpp83logstatsplain
-rw-r--r--cxx_static_assert.cpp44logstatsplain
-rw-r--r--cxx_strong_enums.cpp62logstatsplain
-rw-r--r--cxx_template_template_parameters.cpp162logstatsplain
-rw-r--r--cxx_thread_local.cpp37logstatsplain
-rw-r--r--cxx_trailing_return_types.cpp41logstatsplain
-rw-r--r--cxx_unicode_literals.cpp120logstatsplain
-rw-r--r--cxx_uniform_initialization.cpp66logstatsplain
-rw-r--r--cxx_unrestricted_unions.cpp139logstatsplain
-rw-r--r--cxx_user_literals.cpp98logstatsplain
-rw-r--r--cxx_variable_templates.cpp160logstatsplain
-rw-r--r--cxx_variadic_macros.cpp145logstatsplain
-rw-r--r--cxx_variadic_templates.cpp1494logstatsplain
-rw-r--r--default_dialect.c410logstatsplain
-rw-r--r--default_dialect.cpp427logstatsplain
-rw-r--r--feature_test.c127logstatsplain
-rw-r--r--feature_test.cpp123logstatsplain
-rw-r--r--genex_test.c725logstatsplain
-rw-r--r--genex_test.cpp1484logstatsplain
-rw-r--r--main.cpp60logstatsplain
AIL_STACK_ERROR
+ PASSED();
+
+ return 0;
+
+error:
+ return 1;
+}
+
+static int
+test_plists(const char *filename_prefix)
+{
+ unsigned config_1, config_2;
+ int fd_1, fd_2;
+ size_t size_1 = 0, size_2 = 0;
+ void *buf_1 = NULL, *buf_2 = NULL;
+ hid_t plist_1, plist_2;
+ char filename[1024];
+ const char *testfile;
+
+ /* Iterate over all combinations of configurations */
+ for(config_1 = 0; config_1 < (NCONFIG - 1); config_1++)
+ for(config_2 = config_1 + 1; config_2 < NCONFIG; config_2++) {
+ /* Generate filename for file 1 */
+ if(HDsnprintf(filename, sizeof(filename), "%s%s%s", filename_prefix,
+ config_1 & CONFIG_64 ? "64" : "32",
+ config_1 & CONFIG_LE ? "le" : "be") < 0)
+ TEST_ERROR
+
+ /* Read file 1 */
+ testfile = H5_get_srcdir_filename(filename);
+ if((fd_1 = HDopen(testfile, O_RDONLY, 0666)) < 0)
+ TEST_ERROR
+ size_1 = (size_t)HDlseek(fd_1, (HDoff_t)0, SEEK_END);
+ HDlseek(fd_1, (HDoff_t)0, SEEK_SET);
+ buf_1 = (void *)HDmalloc(size_1);
+ if(HDread(fd_1, buf_1, size_1) < 0)
+ TEST_ERROR
+ HDclose(fd_1);
+
+ /* Generate filename for file 2 */
+ if(HDsnprintf(filename, sizeof(filename), "%s%s%s", filename_prefix,
+ config_2 & CONFIG_64 ? "64" : "32",
+ config_2 & CONFIG_LE ? "le" : "be") < 0)
+ TEST_ERROR
+
+ /* Read file 1 */
+ testfile = H5_get_srcdir_filename(filename);
+ if((fd_2 = HDopen(testfile, O_RDONLY, 0666)) < 0)
+ TEST_ERROR
+ size_2 = (size_t)HDlseek(fd_2, (HDoff_t)0, SEEK_END);
+ HDlseek(fd_2, (HDoff_t)0, SEEK_SET);
+ buf_2 = (void *)HDmalloc(size_2);
+ if(HDread(fd_2, buf_2, size_2) < 0)
+ TEST_ERROR
+ HDclose(fd_2);
+
+ /* Decode property lists */
+ if((plist_1 = H5Pdecode(buf_1)) < 0)
+ FAIL_STACK_ERROR
+ if((plist_2 = H5Pdecode(buf_2)) < 0)
+ FAIL_STACK_ERROR
+
+ /* Compare decoded property lists */
+ if(!H5Pequal(plist_1, plist_2))
+ FAIL_PUTS_ERROR("PLIST encoding/decoding comparison failed\n")
+
+ /* Close */
+ if((H5Pclose(plist_1)) < 0)
+ FAIL_STACK_ERROR
+ if((H5Pclose(plist_2)) < 0)
+ FAIL_STACK_ERROR
+
+ HDfree(buf_1);
+ HDfree(buf_2);
+ } /* end for */
+
+ return 1;
+
+error:
+ printf("***** Plist Encode/Decode tests FAILED! *****\n");
+ return -1;
+}
+
diff --git a/test/enc_dec_plist_with_endianess.c b/test/enc_dec_plist_with_endianess.c
deleted file mode 100644