summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r12440] Purpose:Quincey Koziol2006-06-271-3/+3
| | | | | | | | | | | Code cleanup Description: Trim trailing whitespace in Makefile.am and C/C++ source files to make diffing changes easier. Platforms tested: None necessary, whitespace only change
* [svn-r12395] Purpose:Albert Cheng2006-06-011-0/+31
| | | | | | | | | | | | | | 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-r12292] Purpose:Quincey Koziol2006-04-201-1/+1
| | | | | | | | | | | | | Code maintenance Description: Remove flexible parallel code Platforms tested: FreeBSD 4.11 (sleipnir) Linux 2.4 (heping) Solaris 2.9 (shanti) Linux 2.4/64 (mir)
* [svn-r12286] Purpose: Fix bugBinh-Minh Ribler2006-04-201-2/+2
| | | | | | | | | | | | | | | | | 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-r12209] Purpose:Albert Cheng2006-04-071-32/+49
| | | | | | | | | | | | | | | | Bug fix. Description: getenv_all would fail if one calls it without calling MPI_initialized first. This may happen if one uses PHDF5 library to build a serial nature code and does not make any MPI calls. Solution: Added code to detect if MPI has been initialized. If not, use the original getenv. Platforms tested: heping (serial) and mir (parallel).
* [svn-r11875] Purpose:Albert Cheng2006-01-091-13/+29
| | | | | | | | | | | | | | | | | | | | Bug fix. Description: getenv_all, like some implementations of getenv, keeps an internal buffer for the getenv values. Application must make a copy of the content of the returned pointer before calling getenv_all again IF it wants to use the first content later. The previous code violated this rule and caused error. Solution: Did a small revamp of the h5_fixname to fix the above problem by moving the getenv_all for HDF5_NOCLEANUP eariler to avoid it clashing the call of getenv_all for HDF5_PARAPREFIX. No a good permenant fix. Need to really recode this routine. Platforms tested: h5committested.
* [svn-r11871] Purpose:Albert Cheng2006-01-091-7/+11
| | | | | | | | | | | | | | 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-r11866] Purpose:Albert Cheng2006-01-061-1/+7
| | | | | | | | | | | | | | | | | | | | bug fix 504 Description: testpar/t_mpi would hang if $HDF5_NOCLEANUP is set. E.g., % env HDF5_NOCLEANUP=yes mpirun -np 3 ./t_mpi This happened because the environment variables are not exported to all mpi processes by the mpirun command. So, some attempted to do cleanup while others don't and some hang waiting for others to act. Solution: Instead individual program checking getenv, they all just called h5_cleanup no matter. h5_cleanup now uses getenv_all to check the $HDF5_NOCLEANUP if it is in parallel mode. Platforms tested: h5committested, tested pp in heping too.
* [svn-r11441] Purpose:Albert Cheng2005-09-191-7/+7
| | | | | | | | | | | | 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-r11403] Purpose: MaintenanceElena Pourmal2005-09-131-1/+2
| | | | | | | | | | Description: Brought back changes from SX-6. Solution: Tests will not compile. Fixed. Platforms tested: SX-6, heping and mir with new g95 Misc. update:
* [svn-r11364] Purpose:Leon Arber2005-09-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug fix Description: Incorrectly terminated the received string in getenv_all Solution: Tasks would incorrectly terminat the environment string they received from the root task in getenv_all. They did the equivalent of: env[strlen(str) + 1] = '\0'. This resulted in a single "garbage" character inserted at the end of the string. This wasn't noticed until now because it seems that on most platforms this garbage character was a 0 anyway. This has been corrected to; env[strlen(str)] = '\0'. Platforms tested: Red Storm (where the bug was discovered) heping (pp) Misc. update:
* [svn-r11299] Purpose:Fang Guo2005-08-251-0/+5
| | | | | | | | | | | | Improvement for Windows Description: thread number can not be printed out on windows. Add a special macro for WIN32 to print out some helpful messages Solution: Platforms tested: Heping and MSVS 6.0 on Windows XP Misc. update:
* [svn-r11245] Purpose:Quincey Koziol2005-08-131-27/+27
| | | | | | | | | | | | | | | | | | | | 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-r10806] Purpose:Albert Cheng2005-05-261-2/+2
| | | | | | | | | | Cosmic changes when folding getenv_all to v1.6. No code changes. Platforms tested: heping. Misc. update:
* [svn-r10634] Purpose:Leon Arber2005-04-201-8/+8
| | | | | | | | | | | | | | | | | | | | Use getenv_all for determining HDF5_PARAPREFIX instead of getenv Description: the environment variable HDF5_PARAPREFIX is now determined collectively, instead of having each task call getenv. Solution: Environment variables set for task 0 often do not propogate to other tasks which leads to obscure and hard to track down bugs. getenv_all was written to overcome this by having all tasks query a single task for the value of its environment. Eventually, all calls to getenv will be migrated to use getenv_all. For now, only HDF5_PARAPREFIX will be determined this way. Platforms tested: heping pp, sol pp Misc. update:
* [svn-r10555] Purpose:Leon Arber2005-04-051-1/+81
| | | | | | | | | | | | | | | | | | | | 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-r9753] Purpose:Quincey Koziol2005-01-061-0/+1
| | | | | | | | | | Small bug fix Description: Patch szip_can_encode() test routine to return a value for all code paths. Platforms tested: None - very, very minor
* [svn-r9727] Purpose:Quincey Koziol2004-12-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug Fix/Code Cleanup/Doc Cleanup/Optimization/Branch Sync :-) Description: Generally speaking, this is the "signed->unsigned" change to selections. However, in the process of merging code back, things got stickier and stickier until I ended up doing a big "sync the two branches up" operation. So... I brought back all the "infrastructure" fixes from the development branch to the release branch (which I think were actually making some improvement in performance) as well as fixed several bugs which had been fixed in one branch, but not the other. I've also tagged the repository before making this checkin with the label "before_signed_unsigned_changes". Platforms tested: FreeBSD 4.10 (sleipnir) w/parallel & fphdf5 FreeBSD 4.10 (sleipnir) w/threadsafe FreeBSD 4.10 (sleipnir) w/backward compatibility Solaris 2.7 (arabica) w/"purify options" Solaris 2.8 (sol) w/FORTRAN & C++ AIX 5.x (copper) w/parallel & FORTRAN IRIX64 6.5 (modi4) w/FORTRAN Linux 2.4 (heping) w/FORTRAN & C++ Misc. update:
* [svn-r9494] Purpose:Robert E. McGrath2004-11-021-0/+47
| | | | | | | | | | | | 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-r9183] Purpose: New featureRaymond Lu2004-09-011-19/+3
| | | | | | | | | | | | Description: Restore 6 old error API functions back to the library to be backward compatible with v1.6. They are H5Epush, H5Eprint, H5Ewalk, H5Eclear, H5Eset_auto, H5Eget_auto. These functions do not have error stack as parameter. Solution: Internally, these functions use default error stack. Platforms tested: h5committest and fuss. Misc. update: RELEASE.txt
* [svn-r8782] Purpose:Quincey Koziol2004-07-011-1/+1
| | | | | | | | | | | Code cleanup Description: Clean up almost all warnings from Windows builds. Platforms tested: FreeBSD 4.10 (sleipnir) w/parallel Too minor to require h5committest
* [svn-r8048] Purpose:Quincey Koziol2004-01-101-7/+9
| | | | | | | | | | | | | 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
* [svn-r8022] Purpose:Quincey Koziol2004-01-061-24/+12
| | | | | | | | | | | | | Code cleanup Description: Refactor library testing framework (used for the testhdf5 & ttsafe tests) to remove almost all of the duplicated code, moving the common code into a new 'testframe.c' source file. Platforms tested: FreeBSD 4.9 (sleipnir) w & w/o thread-safety h5committest
* [svn-r8020] Purpose:Albert Cheng2004-01-061-1/+2
| | | | | | | | | | | Bug fix. Description: Cleaned up a duplicated definition of MAXNUMOFTEST that copper could not tolerate. Platforms tested: "h5committested"
* [svn-r8018] Purpose:Albert Cheng2004-01-051-0/+8
| | | | | | | | | | | | | | | Fixed a dumb mistake. Description: Other tests barked at the changes. Solution: Move the declaration of Index and Test[] into h5test.c. Platforms tested: Tested in eirene. Misc. update:
* [svn-r8017] Purpose:Albert Cheng2004-01-051-0/+20
| | | | | | | | | | | | Code reorg. Description: Move the InitTest() from individual tests (testhdf5 and ttsafe) to libh5test (h5test.c) so that it can be shared among all tests. Platforms tested: Only tested in Eirene via serial with thread-safe enabled. No other platforms test since this is pretty trivial.
* [svn-r7700] Purpose:Bill Wendling2003-10-221-27/+38
| | | | | | | | | | | | | | Update Description: Updated to support the FPHDF5 driver. Some formatting changes. Platforms tested: Linux (FPHDF5 specific). Misc. update:
* [svn-r7527] Purpose:Quincey Koziol2003-09-301-0/+9
| | | | | | | | | | | | Code cleanup Description: Clean up a few loose ends and warnings for the 1.6 compatibility changes to the error API. Platforms tested: FreeBSD 4.9 (sleipnir) too minor to require h5committest
* [svn-r7507] *** empty log message ***Raymond Lu2003-09-241-0/+9
|
* [svn-r7308] Purpose:Quincey Koziol2003-08-081-3/+5
| | | | | | | | | | | | Code cleanup Description: Made automatic error printing routine, h5_errors(), static. Passed along error stack in h5_errors() Platforms tested: h5committested
* [svn-r7265] *** empty log message ***Raymond Lu2003-07-261-2/+2
|
* [svn-r7181] Purpose:Quincey Koziol2003-07-071-13/+0
| | | | | | | | | | | Version update Description: Removed 1.4 compatibility code in the library. Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
* [svn-r7109] Purpose:Quincey Koziol2003-06-261-0/+2
| | | | | | | | | | | Code cleanup Description: Clean up varios compiler warnings flagged by SGI compiler and gcc 3.3 Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
* [svn-r7055] Purpose:Quincey Koziol2003-06-181-0/+29
| | | | | | | | | | | | Refactored code Description: Moved duplicated "get_file_size()" function from a couple of tests into a central location. Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
* [svn-r6901] Purpose:Albert Cheng2003-05-191-2/+8
| | | | | | | | | | | | | | | | Small feature. Description: Change the wording for the use of HDF5_PARAPREFIX from Remark to hint. Also made process 0 be the only one printing the hint rather all processes duplicating the same hints. Platforms tested: Copper, both serial and parallel. Did not do h5commit test since this is very localized and the above tests covered both cases already. Misc. update:
* [svn-r6834] Purpose:Albert Cheng2003-05-081-3/+16
| | | | | | | | | | | | | | | | | Feature change Description: HDF5_PARAPREFIX has been default to various values like /tmp, /var/tmp, ... None of these solve all problems and all of them created new problems. For LLNL GPFS, '.' is more appropriate since they can do the build right inside gpfs. Same for NCSA Copper. The special setting for Janus is still retained since that is a one of a kind machine and the uses could use all the help. Platforms tested: h5committested (using sol instead of arabica) plus eirene(pp). Misc. update:
* [svn-r6538] Purpose:Bill Wendling2003-03-311-3/+14
| | | | | | | | | | | | | Update Description: Updated the Copyright statement Platforms tested: Linux (This change is only in the comments, so I just check that the modules still compile) Misc. update:
* [svn-r6143] *** empty log message ***Quincey Koziol2002-12-021-1/+1
|
* [svn-r5991] Purpose:Quincey Koziol2002-10-141-1/+8
| | | | | | | | | | | | | New feature Description: If backing store for a core VFD file is turned on, remove the file created. Platforms tested: FreeBSD 4.6 (sleipnir) w and w/o parallel Linux 2.2.x (eirene) w/FORTRAN & C++ Solaris 2.7 (arabica) w/FORTRAN IRIX64 6.5 (modi4) w/FORTRAN & parallel
* [svn-r5895] Purpose:Quincey Koziol2002-08-271-1/+1
| | | | | | | | | | | | Code cleanup/More tests Description: Cleaned up some compiler warnings and wrote additional tests for space allocation and storage size routines. Platforms tested: FreeBSD 4.6 (sleipnir) w/serial & parallel. Will be testing on IRIX64 6.5 (modi4) in serial & parallel shortly.
* [svn-r5674] Purpose:Quincey Koziol2002-06-191-2/+2
| | | | | | | | | | Code cleanup Description: Removed more compiler warnings, etc. Platforms tested: Linux 2.2.x (eirene) w/parallel
* [svn-r5491] Purpose:Bill Wendling2002-05-311-23/+74
| | | | | | | | | | | Feature Enhancement Description: We can now set the MPI_Info object to more than one key/value pairing. By setting the HDF5_MPI_INFO environment variable to a semicolon separated list of "key=value" pairs, we can set the MPI_Info variable to them. Platforms tested: Linux
* [svn-r5481] Description:Albert Cheng2002-05-291-4/+4
| | | | | | | Renamed pio_info_g as h5_io_info_g to better reflect its general purpose. Platforms tested: eirene(pp)
* [svn-r5446] Purpose:Albert Cheng2002-05-211-1/+82
| | | | | | | | | Feature Description: moved the routines of setting up and dumping MPI-info object to test library so that it is avaiable for all tests too. Platforms tested: modi4(pp), eirene (serial)
* [svn-r5444] Purpose:Quincey Koziol2002-05-201-2/+2
| | | | | | | | | | Code cleanup Description: Clean up warnings on IRIX64 6.5 (modi4) Platforms tested: IRIX64 6.5 (modi4)
* [svn-r5245] MuQun Yang2002-04-241-0/+31
| | | | | | | | | | | | | | Purpose: windows support of socket function Description: gethostname is treated as socket function in windows and it is defined at winsock.h. for every windows socket function to be called, it must start with WSAStartup and end with WSACleanup Solution: Add WSAstartup and WSACleanup with WIN32 macro. Platforms tested: windows 2000, confirmed at linux 2.2.18
* [svn-r5219] Purpose:Quincey Koziol2002-04-221-1/+1
| | | | | | | | | | Code cleanup Description: Clean up warnings from gcc 3.1 Platforms tested: FreeBSD 4.5 (sleipnir)
* [svn-r5218] Purpose:Albert Cheng2002-04-221-0/+44
| | | | | | | | | | New feature Description: Added h5_show_hostname to display the hostname of the host in which the process runs. It can help identify location of process in multiple processes or batch launching environments. Platforms tested: Eirene (pp)
* [svn-r5205] Purpose:Albert Cheng2002-04-191-1/+1
| | | | | | | | | | | | | | Code cleanup Description: Platform dependent code related to the struct stat and fstat calls polluted source codes. Hard to maintain. Solution: Platform dependent code are moved to H5private.h and then internal code can #include H5private.h. Repeat those macro definition for the stdio and multi drivers since they area examples for writing a virtual file driver. They must not use any internal code. Platforms tested: eirene (parallel), modi4 (serial including gass driver.)
* [svn-r4978] Purpose:Quincey Koziol2002-02-171-1/+1
| | | | | | | | Code cleanup Description: Cleanup compiler warnings found by the SGI compiler and gcc 3.0 Platforms tested: FreeBSD 4.5 w/gcc 3.0 (hack) && IRIX64 (modi4)