File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,7 @@ TESTSCRIPTS = \
253253 t3307-system-leafcrash.t \
254254 t3308-system-torpid.t \
255255 t3309-system-reconnect.t \
256+ t3400-overlay-trace.t \
256257 lua/t0001-send-recv.t \
257258 lua/t0002-rpc.t \
258259 lua/t0003-events.t \
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ test_description=' Test flux overlay trace'
4+
5+ . $( dirname $0 ) /sharness.sh
6+
7+ test_under_flux 4
8+
9+ waitfile=" ${SHARNESS_TEST_SRCDIR} /scripts/waitfile.lua"
10+
11+ test_expect_success ' flux overlay trace fails with extra positional argument' '
12+ test_must_fail flux overlay trace x y
13+ '
14+ test_expect_success ' flux overlay trace fails with unknown argument' '
15+ test_must_fail flux overlay trace --not-an-arg
16+ '
17+ test_expect_success ' flux overlay trace fails with wrong message type' '
18+ test_must_fail flux overlay trace -t foo,bar
19+ '
20+ test_expect_success ' reload heartbeat with increased heart rate' '
21+ flux module reload heartbeat period=0.2s
22+ '
23+ test_expect_success NO_CHAIN_LINT ' start background trace' '
24+ flux overlay trace >trace.out &
25+ echo $! >trace.pid
26+ '
27+ test_expect_success NO_CHAIN_LINT ' heartbeat.pulse event was captured' '
28+ $waitfile -t 60 -p heartbeat.pulse trace.out
29+ '
30+ test_expect_success NO_CHAIN_LINT ' send one kvs.ping to rank 1' '
31+ flux ping -r 1 -c 1 kvs
32+ '
33+ test_expect_success NO_CHAIN_LINT ' kvs.ping request/response was captured' '
34+ $waitfile -t 60 -c 2 -p kvs.ping trace.out
35+ '
36+ test_expect_success NO_CHAIN_LINT ' stop background trace' '
37+ kill -15 $(cat trace.pid); wait || true
38+ '
39+ test_done
You can’t perform that action at this time.
0 commit comments