Skip to content

Commit 41ccf8f

Browse files
author
pascalgouedo
authored
Merge pull request #2470 from XavierAubert/cv32e40p/script_fix
Small fix for run_many script
2 parents d9ddf60 + 6b25cb5 commit 41ccf8f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bin/run_many

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# Generates the same "make test" command generated by the "ci_check" script.
99
#
1010
# Usage: run_many [cfg] [test-program] [simulator] [nruns] [user_flags]
11-
# For example, "run_many default hello-world vcs 2" will run the hello-world
12-
# test-program with VCS twice.
11+
# For example, "run_many pulp hello-world vcs 2" will run the hello-world
12+
# test-program with VCS twice, pulp configuration.
1313
#
1414
# TODO: command-line argument processing is primitive.
1515

@@ -70,8 +70,8 @@ counter=0
7070
until [ $counter -gt $RUNSM1 ]
7171
do
7272
THISSEED=`date +%N`
73-
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"
74-
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
73+
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"
74+
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
7575
((counter++))
7676
done
7777

@@ -83,9 +83,9 @@ echo " Simulator: $SIM"
8383
if [ -d "${SIM}_results" ];
8484
then
8585
echo -n " Number of tests run: "
86-
grep "SIMULATION" `find ${SIM}_results/default/$TESTPROGRAM -name ${SIM}-*` | wc -l
86+
grep "SIMULATION" `find ${SIM}_results/$CFG/$TESTPROGRAM -name ${SIM}-*` | wc -l
8787
echo -n " Number of tests FAILED: "
88-
grep "SIMULATION FAILED" `find ${SIM}_results/default/$TESTPROGRAM -name ${SIM}-*` | wc -l
88+
grep "SIMULATION FAILED" `find ${SIM}_results/$CFG/$TESTPROGRAM -name ${SIM}-*` | wc -l
8989
echo
9090
else
9191
echo -e '\nNo tests found.\n'

0 commit comments

Comments
 (0)