8
8
# Generates the same "make test" command generated by the "ci_check" script.
9
9
#
10
10
# 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 .
13
13
#
14
14
# TODO: command-line argument processing is primitive.
15
15
@@ -70,8 +70,8 @@ counter=0
70
70
until [ $counter -gt $RUNSM1 ]
71
71
do
72
72
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
75
75
(( counter++ ))
76
76
done
77
77
@@ -83,9 +83,9 @@ echo " Simulator: $SIM"
83
83
if [ -d " ${SIM} _results" ];
84
84
then
85
85
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
87
87
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
89
89
echo
90
90
else
91
91
echo -e ' \nNo tests found.\n'
0 commit comments