Skip to content

Commit

Permalink
Merge pull request #2470 from XavierAubert/cv32e40p/script_fix
Browse files Browse the repository at this point in the history
Small fix for run_many script
  • Loading branch information
pascalgouedo authored Jun 21, 2024
2 parents d9ddf60 + 6b25cb5 commit 41ccf8f
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 41ccf8f

Please sign in to comment.