/* When the user clicks on the button, toggle between hiding and showing the dropdown content */



added friendly printout of number of test runs to be performed in test script
authorLucas K <lkocia@s3miclassical.com>
Tue, 22 Dec 2020 20:15:31 +0000 (12:15 -0800)
committerLucas K <lkocia@s3miclassical.com>
Tue, 22 Dec 2020 20:15:31 +0000 (12:15 -0800)
test.bash

index 3e5d698..5c6ab72 100644 (file)
--- a/test.bash
+++ b/test.bash
@@ -12,8 +12,9 @@ numTgates=4
 
 numPaulis=1 # we want numPaulis to be 1 for the loop below
 
-numruns=1000
+numruns=20
 
+echo "Starting test of $numruns random Pauli expectation values..."
 for i in $(seq 1 $numruns)
 do
   sleep 1;a=$(stdbuf -oL ./randommultipleinputPaulis $numqubits $numTgates $numPaulis > inputPaulis.txt && $gausssumcode < inputPaulis.txt | tail -1)
@@ -27,3 +28,4 @@ do
     break
   fi
 done
+echo "Test passed!"