summaryrefslogtreecommitdiffstats
path: root/test/stream_test.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r2863] Thomas Radke2000-11-111-26/+12
| | | | | | | | | | | | | | | | | Purpose: Bugfix Description: Undo my last bugfix Solution: Although changing 'return()' into '_exit()' for forked processes fixed core dumping of stream_test under Linux SMP it wasn't really a bugfix. In fact it still crashed on a T3E. Now it turned out that the bug was in some cleanup routine in H5FD.c. Since this has been fixed by Robb I can undo my (unneccessary) changes. Platforms tested: Linux SMP (eirene) IRIX64 (modi4), IRIX32 (origin) T3E
* [svn-r2834] Thomas Radke2000-11-081-12/+26
| | | | | | | | | | | | | | | | | Purpose: Bugfix Description: The stream_test program reported an error under Linux SMP for testing the Stream VFD although everything seemed to be fine. Solution: The sender and receiver process which are forked by main() called return(retcode) at exit which implies closing open file descriptors. Since these are shared this caused a SEGFAULT in either the sender or the receiver when exiting. Replacing return() by _exit() is the right way to terminate the forked processes in this case. Platforms tested: Linux SMP (eirene)
* [svn-r2750] Thomas Radke2000-10-281-7/+22
| | | | | | | | | | | | | | | | | | | | | Purpose: Port to Windows. Description: The stream_test program now also compiles and can be run under Windows. Solution: The problem was that fork(2) and waitpid(2) aren't available under Windows when using the MS compilers. So I test for both H5_HAVE_FORK and H5_HAVE_WAITPID. These are already checked fortunately during configuration. If they are not there the code just says printf ("Test skipped because this architecture doesn't provide " "fork(2) and waitpid(2)\n"); Platforms tested: Windows NT, both with MS Visual C++ and GNU cc Now you can build and run the Stream VFD testsuite under Windows when using GNU cc !!
* [svn-r2562] Purpose:Thomas Radke2000-09-151-0/+379
Added test program to verify the Stream Virtual File Driver. Description: This program tests the functionality of the Stream Virtual File Driver. 1. It spawns two new processes, a sender and a receiver. 2. The sender opens an HDF5 file for writing and writes a sample dataset to it. On closing the file the Stream VFD would send the file contents to any connected client. 3. The receiver serves as a client attempting to open an HDF5 file for reading. On opening the file the Stream VFD would establish a socket connection to the sender process, identified by its hostname (which is localhost in this example) and a port number, and read the file contents via this socket. Aftwerwards the dataset is read from the file into memory and verified. 4. The main program waits for termination of its two child processes and returns their exit code. Platforms: Tested so far under Linux, Irix 32/64bit, OSF1, Solaris, Cray Unicos, Hitachi SR8000, IBM AIX. Not tested under Windows yet.