hermes
hermes copied to clipboard
Stage-In Unit Tests
- [x] Re-run the unit test for stage-in on personal machine or Ares (or both).
- [ ] Add a unit test for directory stage-in (similar to the unit test for file stage-in).
The unit test should do the following:
- Create a directory (/tmp/staging)
- Use ior in file-per-process (2-4 processes) create a number of files in /tmp/staging (write mode)
- Call ${HERMES_BUILD}/stage_in [directory] 0 0 kMinimizeIoTime to stage the entire directory
- Use ior (read mode) to read the files in that directory (should never hit PFS)
- Terminate Hermes using mpirun -n 1 ${HERMES_BUILD}/finalize_hermes
Note: stage-out is not required in this test, since no data is modified. Technically speaking, stage-out doesn't do anything right now since files are always synchronized to the PFS upon file close.