Skip to content

Commit

Permalink
t: add giant input coverage
Browse files Browse the repository at this point in the history
Problem: There is no test to ensure that a giant input on the command
line works with powerman.

Add a test to t0039-llnl-el-capitan-cluster.t with an giant node input
string.
  • Loading branch information
chu11 committed Jul 3, 2024
1 parent d4ba511 commit bd1bd27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/t0039-llnl-el-capitan-cluster.t
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ test_expect_success 'powerman -q shows all off' '
makeoutput "" "$ALLSTR" "" >query5.exp &&
test_cmp query5.exp query5.out
'
test_expect_success 'powerman -q works with giant input' '
nodes=$(echo elcap\[$(seq -s, 0 2 16382)\]) &&
$powerman -h $testaddr -q $nodes >query6.out &&
makeoutput "" "$nodes" "" >query6.exp &&
test_cmp query6.exp query6.out
'
test_expect_success 'stop powerman daemon' '
kill -15 $(cat powermand.pid) &&
wait
Expand Down

0 comments on commit bd1bd27

Please sign in to comment.