@@ -114,10 +114,12 @@ git -C . rev-parse > /dev/null 2>&1
114
114
if [ 0 == $? ] ; then
115
115
# this is git
116
116
GET_VERSION=${SCRIPT_DIR} /gitversion.pm
117
- P4ANNOTATE=${SCRIPT_DIR} /gitblame.pm
117
+ GET_VERSION_EXE=${SCRIPT_DIR} /gitversion
118
+ ANNOTATE=${SCRIPT_DIR} /gitblame.pm
118
119
else
119
120
GET_VERSION=${SCRIPT_DIR} /getp4version
120
- P4ANNOTATE=${SCRIPT_DIR} /p4annotate.pm
121
+ GET_VERSION_EXE=${SCRIPT_DIR} /getp4version
122
+ ANNOTATE=${SCRIPT_DIR} /p4annotate.pm
121
123
fi
122
124
CRITERIA=${SCRIPT_DIR} /criteria
123
125
SELECT=${SCRIPT_DIR} /select.pm
@@ -257,7 +259,7 @@ if [ 0 != $? ] ; then
257
259
fi
258
260
# run again with version script options passed in string
259
261
# test filter with differing version
260
- $COVER $LCOV_TOOL $EXTRA_GCOV_OPTS --branch-coverage --version-script " $GET_VERSION --md5 --allow-missing" $PARALLEL $PROFILE --output filt2.info --filter branch,line -a baseline2.info $IGNORE
262
+ $COVER $LCOV_TOOL $EXTRA_GCOV_OPTS --branch-coverage --version-script " $GET_VERSION_EXE --md5 --allow-missing" $PARALLEL $PROFILE --output filt2.info --filter branch,line -a baseline2.info $IGNORE
261
263
if [ 0 == $? ] ; then
262
264
echo " ERROR: filter with mismatched version did not fail"
263
265
status=1
@@ -272,7 +274,7 @@ if [ -e filt2.info ] ; then
272
274
exit 1
273
275
fi
274
276
fi
275
- $COVER $LCOV_TOOL $EXTRA_GCOV_OPTS --branch-coverage --version-script " $GET_VERSION --md5 --allow-missing" $PARALLEL $PROFILE --output filt2.info --filter branch,line -a baseline2.info $IGNORE --ignore version
277
+ $COVER $LCOV_TOOL $EXTRA_GCOV_OPTS --branch-coverage --version-script " $GET_VERSION_EXE --md5 --allow-missing" $PARALLEL $PROFILE --output filt2.info --filter branch,line -a baseline2.info $IGNORE --ignore version
276
278
if [ 0 != $? ] ; then
277
279
echo " ERROR: ignore error filter with combined opts and mismatched version failed"
278
280
status=1
@@ -1304,19 +1306,19 @@ if [ 0 != $? ] ; then
1304
1306
exit 1
1305
1307
fi
1306
1308
fi
1307
- echo genhtml $DIFFCOV_OPTS --output-directory ./annotate --annotate $P4ANNOTATE annotate.info
1308
- $COVER $GENHTML_TOOL $DIFFCOV_OPTS --output-directory ./annotate --annotate $P4ANNOTATE annotate.info
1309
+ echo genhtml $DIFFCOV_OPTS --output-directory ./annotate --annotate $ANNOTATE annotate.info
1310
+ $COVER $GENHTML_TOOL $DIFFCOV_OPTS --output-directory ./annotate --annotate $ANNOTATE annotate.info
1309
1311
if [ 0 == $? ] ; then
1310
- echo " ERROR: p4annotate with no annotation"
1312
+ echo " ERROR: annotate with no annotation"
1311
1313
status=1
1312
1314
if [ 0 == $KEEP_GOING ] ; then
1313
1315
exit 1
1314
1316
fi
1315
1317
fi
1316
- echo genhtml $DIFFCOV_OPTS --output-directory ./annotate --annotate $P4ANNOTATE
1317
- $COVER $GENHTML_TOOL $DIFFCOV_OPTS --output-directory ./annotate --annotate $P4ANNOTATE --ignore annotate annotate.info
1318
+ echo genhtml $DIFFCOV_OPTS --output-directory ./annotate --annotate $ANNOTATE
1319
+ $COVER $GENHTML_TOOL $DIFFCOV_OPTS --output-directory ./annotate --annotate $ANNOTATE --ignore annotate annotate.info
1318
1320
if [ 0 != $? ] ; then
1319
- echo " ERROR: p4annotate with no annotation ignore did not pass"
1321
+ echo " ERROR: annotate with no annotation ignore did not pass"
1320
1322
status=1
1321
1323
if [ 0 == $KEEP_GOING ] ; then
1322
1324
exit 1
@@ -1379,7 +1381,7 @@ if [ "x$COVER" != "x" ] ; then
1379
1381
if [ 0 != $LOCAL_COVERAGE ] ; then
1380
1382
cover $COVER_DB
1381
1383
${LCOV_HOME} /bin/perl2lcov -o perlcov.info --testname simple --version-script $GET_VERSION $COVER_DB
1382
- ${LCOV_HOME} /bin/genhtml -o html_report perlcov.info pycov.info --branch --flat --show-navigation --show-proportion --version-script $GET_VERSION --annotate-script $P4ANNOTATE --parallel --ignore empty,usage
1384
+ ${LCOV_HOME} /bin/genhtml -o html_report perlcov.info pycov.info --branch --flat --show-navigation --show-proportion --version-script $GET_VERSION --annotate-script $ANNOTATE --parallel --ignore empty,usage
1383
1385
echo " see HTML report 'html_report'"
1384
1386
else
1385
1387
echo cp pycov.info $COVER_DB /spreadsheet.info
0 commit comments