summaryrefslogtreecommitdiffstats
path: root/test/h5test.h
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r21712] Change export decoration for windows linking.Allen Byrne2011-11-041-26/+26
|
* [svn-r21561] Description:Quincey Koziol2011-10-141-1/+1
| | | | | | | | | | | | Correct error in loading local heap prefix & data block from the file. Sometimes the local heap's prefix could be loaded before the data block (e.g. using H5Oget_info), but then when the data block was loaded later, the free list information would get lost, causing the heap's size to grow larger than necessary. This is Jira bug #HDFFV-7767 Tested on: Mac OS X/32 10.7.2 (amazon) w/debug (h5committest coming up)
* [svn-r20529] Purpose: Add testing for bug 1864Neil Fortner2011-04-151-0/+1
| | | | | | | | | Description: Added internal tesitng routines to traverse a file and verify that symbol table information is *always* cached, whenever possible. Added this check to the end of many tests to check all the test files, right before the call to h5_cleanup. Tested: jam, amani, heiwa (h5committest)
* [svn-r20316] Removed includes which are included with proper config checks ↵Allen Byrne2011-03-241-5/+0
| | | | | | in h5private.h. Tested: local linux, windows
* [svn-r19829] Fixed the name of the windows linkage define in the test ↵Allen Byrne2010-11-191-1/+1
| | | | | | | | header. This corrects the inconsistent dll linkage warning and matches the other linkage defines. Changed H5_DLLVAR to H5TEST_DLLVAR. Tested: windows
* [svn-r19242] Description:Quincey Koziol2010-08-161-4/+4
| | | | | | | | | Add in override for testing timeout alarm to allow "HDF5_ALARM_SECONDS" environment variable to change the timeout value from the default value. Tested on: Mac OS X/32 10.6.4 (amazon) w/debug & production (Too minor to require h5committest)
* [svn-r19230] Reset alarm_seconds back to 20 minutes.Albert Cheng2010-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Description: honest3 v1.8 failed in parallel test. It got stuck in the same testpar/testphdf5 subtest (cbhsssdrpio). This is an old problem. Upon closer inspection, the testphdf5, when terminated, had clocked up 1hr 9min 46 sec wall clock time. Honest1 system also sent a message that an mpi process has used up 30+ CPU minutes which exceeded their login node cpu time limit and they killed the process. I also did a hand-run of testphdf5. All subtests before cbhsssdrpio completed in a few minutes. Therefore, it is safe to say the majority of the 70 minutes of wall clock time are spent in the sub-test cbhsssdrpio. It also used up lots of CPU time. cbhsssdrpio is likely infinite looping. Since MPI application is prone to infinite looping due to message deadlock, the testphdf5 has a built-in protection to give each subtest at most 20 minutes of wall-clock time to run. When the 20 minutes wall-clock time is exceeded, the testphdf5 will attempt to terminate itself. This prevents unnecessary CPU time consumption in infinite looping. But that clock limit was changed to 30 and then 60 minutes. I should have but failed to, noticed the change mentioned by Quincey. IMO, 20 wall clock time is more than sufficient for each subtest of testphdf5 to complete. If a subtest takes longer than 20 minutes, it is likely infinite looping. Giving it more time will not help. If a subtest of testphdf5 takes more than 20 minutes, it should be broken down to small tests that will finish way under 20 minutes so that it is much easier to see progress and identify any deadlock problems. In view of this, I am changing the testphdf5 time limit back to 20 minutes. This will at least stop the CPU TIME exceeding limits and annoying the system administrators. Maybe there could be a provision, such as environment variable like $HDF5_ALARM_SECOND to modify the alarm duration on individual execution. Even so, that should be used temporary to see if an execution just needs a little more time. Tested: just eyeballed as the change is trivia.
* [svn-r19120] Description:Quincey Koziol2010-07-221-1/+1
| | | | | | | Bump the testing timer value from 30 to 60 minutes. Tested on: None, just eyeballed, too simple to require test
* [svn-r19099] Description:Quincey Koziol2010-07-191-1/+1
| | | | | | | | | | Fix const pointer issues for projection construction routine and also bump time before alarm kicks in to terminate a test from 20 minutes to 30 minutes, to give the PGI compiler tests w/debugging enabled a chance to finish. Tested on: Mac OS X/32 10.6.4 (amazon) w/debug Linux/32 2.6.18 (jam) w/PGI & debug
* [svn-r18420] Description:Quincey Koziol2010-03-181-54/+0
| | | | | | | | | Re-run bin/reconfigure to catch up with recent rearrangements, remove some unused srcdir headers and duplicated code in main test header. Tested on: Mac OS X/32 10.6.2 (amazon) w/debug & prod Linux/32 2.6 (jam)
* [svn-r18418] Description:Quincey Koziol2010-03-181-1/+54
| | | | | | | | Centralize common code for srcdir lookups. Tested on: Mac OS X/32 10.6.2 (amazon) w/debug & prod Linux/32 2.6 (jam)
* [svn-r18413] Description:Quincey Koziol2010-03-171-0/+1
| | | | | | | | | | | | | | Unify srcdir handling for test executables and allow them to use the srcdir setting from configure time without requiring the 'srcdir' environment variable be set (although you still can, to override the built in setting). Attempted to get this right for Windows builds also. Also add dependency between src/H5Tinit.c and src/libhdf5.settings, so that the test/testcheck_version.sh script works correctly. Tested on: Linux/32 2.6 (jam) Mac OS X/32 10.6.2 (amazon)
* [svn-r18197] Description:Quincey Koziol2010-01-301-1/+1
| | | | | | | | | Trim trailing whitespace from source code files with this command: find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.f90" \) -print |xargs -n 1 sed -i "" 's/[[:blank:]]*$//' Tested on: None - eyeballed only
* [svn-r18174] Bug ID 1753: added macro version of GetTestVerbosity.Albert Cheng2010-01-271-5/+13
| | | | | | | | | | | | The previous implementation did not work for WIndows. Moved the macro definition of HDGetTestVerbosity from testhdf5.h to h5test.h. Removed as much as possible macro definitions that use HDGetTestVerbosity directly. Tested: Jam (serial and parallel). Did not run h5committest since this is a trival change that is portable.
* [svn-r17688] Merge make local copy of svn test data files for write access ↵Larry Knox2009-10-201-0/+1
| | | | | | | from v1.8 to trunk. Tested: amani, jam, linew (h5committest).
* [svn-r16511] bug fix: TESTING2 macro introduced recently for the test suite ↵Pedro Vicente Nunes2009-02-231-1/+1
| | | | | | (it adds an extra space at the beginning of output, for indentation) was already available for HL and caused compilation problems on AIX. Replaced the name with TESTING_2 tested: h5committest
* [svn-r16419] #1449 Change set_extent test to use standard standalone test ↵Pedro Vicente Nunes2009-02-041-0/+1
| | | | | | | | | | | | | | | | | | framework Call h5_fixname (with an array of test filenames) for generating the filename to create and then call h5_cleanup() when the tests pass, to delete the files created and close the FAPL from h5_fileaccess(). Defined a macro #define TESTING2(WHAT) {printf(" Testing %-62s",WHAT); fflush(stdout);} Similar to TESTING, except that it has a initial indentation space. The effect is for nested loop tests Testing with old file format: Testing with fill value, no compression PASSED tested: windows, linux
* [svn-r15825] Description:Quincey Koziol2008-10-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fix various problems with a the core & sec2 VFDs. Improve the h5_get_file_size() routine to handle files created with VFDs that use multiple files. Tested on: Mac OS X/32 10.5.5 (amazon) in debug mode Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
* [svn-r15628] Description:Quincey Koziol2008-09-161-2/+2
| | | | | | | | | | | | | Remove trailing whitespace from C/C++ source files, with the following script: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Tested on: Mac OS X/32 10.5.5 (amazon) No need for h5committest, just whitespace changes...
* [svn-r13648] Description:Quincey Koziol2007-04-121-3/+3
| | | | | | | | | | Rename new error handling API routines from H5E<foo>_stack() to H5E<foo>2(). Tested on: Mac OS X/32 10.4.9 (amazon) FreeBSD/32 6.2 (duty) FreeBSD/64 6.2 (liberty)
* [svn-r13501] Suppress the compiler warning about the equality comparison of ↵Raymond Lu2007-03-121-1/+1
| | | | floating-point values.
* [svn-r13388] Added a relative comparison between floating-point values to ↵Raymond Lu2007-02-261-5/+7
| | | | | | avoid compiler's warning of comparing values with "==" or "!=".
* [svn-r13253] Updated all C and C++ style source code files with the THG ↵Albert Cheng2007-02-071-2/+3
| | | | | | | | | copyright notice. Tested platform: Kagiso only since it is only a comment block change. If it works in one machine, it should work in all, I hope. Still need to check the parallel build on copper.
* [svn-r13238] A trial fix for the comparison of equality between ↵Raymond Lu2007-02-051-0/+15
| | | | | | floating-point values in hyperslab.c. A few macros are defined in h5test.h to check if the difference between two values is smaller than Epsilon.
* [svn-r12700] Alert:Quincey Koziol2006-10-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | File format is not stable, don't keep files produced! Description: First stage of checkins modifying the format of groups to support creation order. Implement "dense" storage for links in groups. Try to clarify some of the symbols for the H5L API. Add the H5Pset_latest_format() flag for FAPLs, to choose to use the newest file format options (including "dense" link storage in groups) Add the H5Pset_track_creation_order() flag for GCPLs, to enable creation order tracking in groups (although no index on creation order yet). Remove --enable-group-revision configure flag, as file format issues are now handled in a backwardly/forwardly compatible way. Clean up lots of compiler warnings and other minor formatting issues. Tested on: FreeBSD/32 4.11 (sleipnir) w/threadsafe Linux/32 2.4 (heping) w/FORTRAN & C++ Linux/64 2.4 (mir) w/enable-v1.6 compa Mac OSX/32 10.4.8 (amazon) AIX 5.3 (copper) w/parallel & FORTRAN
* [svn-r12657] Description:Quincey Koziol2006-09-111-1/+0
| | | | | | | | | Clean up whitespace/formatting. Tested on: Mac OS/PPC 10.4 (amazon) Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
* [svn-r12395] Purpose:Albert Cheng2006-06-011-0/+2
| | | | | | | | | | | | | | Feature Description: Sometimes the parallel prefix is given in the form of nfs:/mnt/pfs which if given to a non-MPIO VFD like the default H5Fcreate, it would fail. Added a new routine h5_rmprefix which would return the non-prefix component part of the file name which would be okay for the default H5Fcreate and such. Platforms tested: Tested in heping parallel.
* [svn-r12286] Purpose: Fix bugBinh-Minh Ribler2006-04-201-1/+1
| | | | | | | | | | | | | | | | | Description: The file size test in C++ library failed on Copper because the value returned by h5_get_file_size was intepreted incorrectly due to different interger sizes. Solution: H5private.h: Added check to use stat64 and off64_t where appropriate. h5test.c and h5test.h: used h5_stat_size_t in place of off_t. tattr.cpp: used h5_stat_size_t in place of off_t. Platforms tested: Linux 2.4 (heping) AIX 5.1 (copper) SunOS 5.8 64-bit (sol) - still on going
* [svn-r12210] Purpose:Albert Cheng2006-04-071-0/+2
| | | | | | | | | | | | feature Description: Added the GetTestExpress and SetTestExpress to support the TestExpress mode according to $HDF5TextExpress. For now, it is just defined or not, the actual value does not matter. Platforms tested: heping(serial), mir (PP).
* [svn-r11871] Purpose:Albert Cheng2006-01-091-0/+1
| | | | | | | | | | | | | | Bug fix. Description: getenv_all will be called even when it is NOT an MPI application. Solution: Moved the use of getenv_all("HDF5_NOCLEANUP") to fix_name so that it will be invoked only if a parallel driver is used. Platforms tested: hand tested in copper.
* [svn-r11479] Purpose:Fang Guo2005-09-291-5/+0
| | | | | | | | | | | Maintenance on Windows Description: No Alarm function on Windows Solution: Platforms tested: MSVS 6.0 on Windows XP Misc. update:
* [svn-r11448] Purpose:Pedro Vicente Nunes2005-09-211-1/+6
| | | | | | | | | | | | | | | | | | | new features Description: add support for compiling the library and testphdf5 in Windows Solution: Platforms tested: Linux AIX Solaris Windows VC6 Misc. update:
* [svn-r11441] Purpose:Albert Cheng2005-09-191-0/+9
| | | | | | | | | | | | Feature. Description: Added ALARM_ON, ALARM_OFF feature to terminate tests that run more than the default time limit. So far, the feature is applied in the standard test frame. Platforms tested: heping PP.
* [svn-r11245] Purpose:Quincey Koziol2005-08-131-6/+6
| | | | | | | | | | | | | | | | | | | | Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
* [svn-r11031] Purpose:Quincey Koziol2005-07-061-0/+3
| | | | | | | | | | | | | New feature Description: Initial checkin of B+ Tree code. Platforms tested: FreeBSD 4.11 (sleipnir) h5committest Misc. update:
* [svn-r10931] Purpose: Adjust Test Program and RenameRaymond Lu2005-06-171-0/+1
| | | | | | | | | | | | | | Description: Renamed test/dt_atomic.c to test/dt_arith.c(an abbreviation of "arithmetic data types") to better describe the program. This checkin broke down into three sections when the floating-point numbers are the source, normalized, denormalized, and special values. If there's any difference of destination values, only normalized value test reports failure. The other 2 report only as warning. Platforms tested: h5commitest and fuss Misc. update: MANIFEST
* [svn-r10555] Purpose:Leon Arber2005-04-051-0/+1
| | | | | | | | | | | | | | | | | | | | Feature Description: Added new function, getenv_all (only for parallel builds) Solution: getenv_all is a collective version of getenv. It is used to the return the value of an environment variable in another task and can be used to synchronize all of the environment variables used by all of the tasks. This helps to fix problems that commonly crop up (like with HDF5_PARAPREFIX) when an environment variable does not propogate to other tasks. This commit only includes the function. Future commits will replace the various getenv calls with getenv_all calls. Platforms tested: heping, sol, copper Misc. update:
* [svn-r10236] Purpose: Added a util wrapperBinh-Minh Ribler2005-03-191-0/+1
| | | | | | | | | | Description: Added function IncTestNumErrs to increment the number of errors that is defined in testframe.c Platforms tested: Linux 2.4 (heping) AIX 5.1 (copper)
* [svn-r9494] Purpose:Robert E. McGrath2004-11-021-0/+4
| | | | | | | | | | | | Fix SZIP filter to dynmically detect encoder. Description: Solution: See: http://hdf.ncsa.uiuc.edu/RFC/SZIP/Szip_dynamic_12_Oct.pdf Changes to library tests, contingent on detecting SZIP encoder.
* [svn-r9115] Purpose:Albert Cheng2004-08-191-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | feature Description: Another revamp of the test interface. TestInit: is used to register Test Program name, test program specific Usage and option parsing routines. TestUsage: will invoke extra usage routine if provided. TestParseCmdLine: will invoke extra option parsing routine if provided. GetTestSummary() and GetTestCleanup() replaces the previous Summary and CleanUp arguments of TestParseCmdLine. test/testhdf5, test/ttsafe.c, testpar/t_mpi.c, testpar/testphdf5.c: All have been updated to use the new Test Routines. testpar/t_mpi.c: Also a fix of a compiler optimization bug when pgcc in Linux is used to compile it. Changed buf[] and expected to unsigned char type to avoid a bug that failed to do sign-extension. Platforms tested: "h5committested" Also tested thread-safe option in eirene.
* [svn-r9079] Purpose:Albert Cheng2004-08-131-1/+1
| | | | | | | | | | | | | | Feature Description: Changed TestParseCmdLine to accept an optional extra_parse() function provided by indidivual test application. Extra_parse() can handle extra options special to that test application. Updated testhdf5.c to use the new syntax of TestParseCmdLine(). Platforms tested: On eirene both serial and parallel.
* [svn-r9050] Purpose:Albert Cheng2004-08-081-1/+1
| | | | | | | | | | | | | Feature Description: Added a feature such that if the test name starts with '-', do not run it by default. Platforms tested: Eirene both serial and parallel. Misc. update:
* [svn-r8444] Purpose:Quincey Koziol2004-05-011-1/+0
| | | | | | | | | | | | | Code cleanup Description: Remove bogus "#undef NDEBUG" at top of file, which was blocking compiler flags from setting NDEBUG properly. Platforms tested: Solaris 2.7 (arabica) FreeBSD 4.9 (sleipnir) too minor to require h5committest
* [svn-r8298] Purpose:Albert Cheng2004-04-031-0/+9
| | | | | | | | | | Code cleanup Description: Added SetTest() to handle test controls. Platforms tested: h5committested.
* [svn-r8292] Purpose:Albert Cheng2004-04-011-0/+1
| | | | | | | | | | | Feature. Description: Added GetTestParameters() to provide Test Parameters to individual test programs. Platforms tested: "h5committested"
* [svn-r8289] Purpose:Albert Cheng2004-03-301-1/+2
| | | | | | | | | | | | | | Feature Description: Added to AddTest() a generic parameters pointer argument to allow some extra parameters for some tests. E.g., test file names can be customized during runtime and passed into the test routines. Platforms tested: "h5committested". Also run compat test in eirene.
* [svn-r8274] Purpose:Albert Cheng2004-03-231-0/+16
| | | | | | | | | | | | | | | | Code cleanup. Description: The routines residing in testframe.c was defined in testhdf5.h due to historical reason. It really belongs to h5test.h because those routines reside in libh55test.a. Solution: Moved them to the right place. Also removed the duplicated occurance of testframe.c in the TEST_SRC. Platforms tested: Tested in o2 (SGI) parallel.
* [svn-r8094] Purpose:Albert Cheng2004-01-221-0/+10
| | | | | | | | | | | | | | | | New feature. Description: Added function SetTestVerbosity() so that other applications can set the verbosity explicitedly without the whole testframe taking over. Added Verbose queries shorthands to make code more readable and easier to change the levels of low, medium and high. Platforms tested: Eirene (both serial and parallel). Misc. update:
* [svn-r8084] Purpose:Albert Cheng2004-01-221-0/+27
| | | | | | | | | | | | | | | | | | | Improvement. Description: Verbosity level were specified by numbers which are not meaningful and prone to typos. Solution: Adapted the Verbosity predefined level symbols from HDF4 and changed all numberic verbosity to symbolic values. (Still need to convert some left over macros like MESSAGE.) Platforms tested: Eirene. No h5committest since this is trivial. Misc. update:
* [svn-r8048] Purpose:Quincey Koziol2004-01-101-2/+1
| | | | | | | | | | | | | Code cleanup & reorganization Description: Move further in the testing framework cleanup, eliminating all the global variables (moving them into testframe.c as static variables) from the testing framework code and moving it into the libh5test.a. Platforms tested: FreeBSD 4.9 (sleipnir) w & w/o thread-safety, c++ & parallel h5committested