summaryrefslogtreecommitdiffstats
path: root/test/stream_test.c
Commit message (Collapse)AuthorAgeFilesLines
* [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.