From bd1bd2734c83fb0a02b8ada772516abccb32a460 Mon Sep 17 00:00:00 2001 From: Albert Chu Date: Fri, 21 Jun 2024 11:56:11 -0700 Subject: [PATCH] t: add giant input coverage 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. --- t/t0039-llnl-el-capitan-cluster.t | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/t0039-llnl-el-capitan-cluster.t b/t/t0039-llnl-el-capitan-cluster.t index c3bd9fcd..cf0d780d 100755 --- a/t/t0039-llnl-el-capitan-cluster.t +++ b/t/t0039-llnl-el-capitan-cluster.t @@ -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