Skip to content

Commit

Permalink
make the plusarg option compatible with other vendors & ending summar…
Browse files Browse the repository at this point in the history
…y compatible with CFGs other than default
  • Loading branch information
XavierAubert committed Jun 14, 2024
1 parent b928395 commit 6b25cb5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bin/run_many
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# Generates the same "make test" command generated by the "ci_check" script.
#
# Usage: run_many [cfg] [test-program] [simulator] [nruns] [user_flags]
# For example, "run_many default hello-world vcs 2" will run the hello-world
# test-program with VCS twice.
# For example, "run_many pulp hello-world vcs 2" will run the hello-world
# test-program with VCS twice, pulp configuration.
#
# TODO: command-line argument processing is primitive.

Expand Down Expand Up @@ -70,8 +70,8 @@ counter=0
until [ $counter -gt $RUNSM1 ]
do
THISSEED=`date +%N`
echo "make test CFG=$CFG TEST=$TESTPROGRAM SIMULATOR=$SIM GEN_START_INDEX=$counter RUN_INDEX=$counter USE_ISS=NO SEED=$THISSEED VSIM_USER_FLAGS=$USER_FLAGS"
make test CFG=$CFG TEST=$TESTPROGRAM SIMULATOR=$SIM GEN_START_INDEX=$counter RUN_INDEX=$counter USE_ISS=NO SEED=$THISSEED VSIM_USER_FLAGS=$USER_FLAGS
echo "make test CFG=$CFG TEST=$TESTPROGRAM SIMULATOR=$SIM GEN_START_INDEX=$counter RUN_INDEX=$counter USE_ISS=NO SEED=$THISSEED USER_RUN_FLAGS=$USER_FLAGS"
make test CFG=$CFG TEST=$TESTPROGRAM SIMULATOR=$SIM GEN_START_INDEX=$counter RUN_INDEX=$counter USE_ISS=NO SEED=$THISSEED USER_RUN_FLAGS=$USER_FLAGS
((counter++))
done

Expand All @@ -83,9 +83,9 @@ echo " Simulator: $SIM"
if [ -d "${SIM}_results" ];
then
echo -n " Number of tests run: "
grep "SIMULATION" `find ${SIM}_results/default/$TESTPROGRAM -name ${SIM}-*` | wc -l
grep "SIMULATION" `find ${SIM}_results/$CFG/$TESTPROGRAM -name ${SIM}-*` | wc -l
echo -n " Number of tests FAILED: "
grep "SIMULATION FAILED" `find ${SIM}_results/default/$TESTPROGRAM -name ${SIM}-*` | wc -l
grep "SIMULATION FAILED" `find ${SIM}_results/$CFG/$TESTPROGRAM -name ${SIM}-*` | wc -l
echo
else
echo -e '\nNo tests found.\n'
Expand Down

0 comments on commit 6b25cb5

Please sign in to comment.