Skip to content

Commit cd31287

Browse files
garlickmergify[bot]
authored andcommitted
testsuite: cover -Stbon.topo=mincrit
Problem: there is no test coverage for running a Flux instance with 'mincrit' topology. Add a few tests to t0019-tbon-config.t.
1 parent cc5b423 commit cd31287

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

t/t0019-tbon-config.t

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,23 @@ test_expect_success 'broker -Stbon.topo=binomial option works' '
168168
flux getattr tbon.topo >topo_binomial.out &&
169169
test_cmp topo_binomial.exp topo_binomial.out
170170
'
171+
test_expect_success 'broker -Stbon.topo=mincrit option works' '
172+
echo mincrit >topo_mincrit.exp &&
173+
flux start ${ARGS} -Stbon.topo=mincrit \
174+
flux getattr tbon.topo >topo_mincrit.out &&
175+
test_cmp topo_mincrit.exp topo_mincrit.out
176+
'
177+
test_expect_success 'broker -Stbon.topo=mincrit:2 option works' '
178+
echo 2 >topo_crit2.exp &&
179+
flux start -s5 ${ARGS} -Stbon.topo=mincrit:2 \
180+
flux getattr tbon.maxlevel >topo_crit2.out &&
181+
test_cmp topo_crit2.exp topo_crit2.out
182+
'
183+
test_expect_success 'broker -Stbon.topo=mincrit is flat for small size' '
184+
echo 1 >topo_critsmall.exp &&
185+
flux start -s5 ${ARGS} -Stbon.topo=mincrit \
186+
flux getattr tbon.maxlevel >topo_critsmall.out &&
187+
test_cmp topo_critsmall.exp topo_critsmall.out
188+
'
189+
171190
test_done

0 commit comments

Comments
 (0)