Skip to content

Commit

Permalink
t2004-hydra.t: enhance debug output
Browse files Browse the repository at this point in the history
Add more debug output to the hydra tests to attempt to capture data
useful for resolving #1169.
  • Loading branch information
grondo committed Oct 20, 2017
1 parent 28ec3f4 commit 9fe8a4a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions t/t2004-hydra.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,24 @@ test_expect_success 'Hydra runs hello world' '
mpiexec.hydra -n 4 echo "Hello World"
'

count_uniq_lines() { sort $1 | uniq | wc -l; }

test_expect_success 'Hydra sets PMI_FD to unique value' '
test `mpiexec.hydra -n 4 printenv PMI_FD | sort | uniq | wc -l` -eq 4
mpiexec.hydra -n 4 printenv PMI_FD > out &&
test_debug "cat out" &&
test $(count_uniq_lines out) -eq 4
'

test_expect_success 'Hydra sets PMI_RANK to unique value' '
test `mpiexec.hydra -n 4 printenv PMI_RANK | sort | uniq | wc -l` -eq 4
mpiexec.hydra -n 4 printenv PMI_RANK > out2 &&
test_debug "cat out2" &&
test $(count_uniq_lines out2) -eq 4
'

test_expect_success 'Hydra sets PMI_SIZE to uniform value' '
test `mpiexec.hydra -n 4 printenv PMI_SIZE | sort | uniq | wc -l` -eq 1
mpiexec.hydra -n 4 printenv PMI_SIZE > out3 &&
test_debug "cat out3" &&
test $(count_uniq_lines out3) -eq 1
'

test_expect_success 'Flux libpmi-client wire protocol works with Hydra' '
Expand All @@ -36,6 +44,7 @@ test_expect_success 'Flux libpmi-client wire protocol works with Hydra' '
test_expect_success 'Hydra can launch Flux' '
mpiexec.hydra -n 4 flux start \
flux comms info >flux_out &&
test_debug "cat flux_out" &&
grep size=4 flux_out
'

Expand Down

0 comments on commit 9fe8a4a

Please sign in to comment.