@@ -170,6 +170,30 @@ if [ $COUNT != '1' ] ; then
170
170
exit 1
171
171
fi
172
172
173
+ # use legacy RC 'geninfo_adjust_src_path option (had been a bug)
174
+ $COVER $LCOV_HOME /bin/lcov --capture $LCOV_OPTS --capture --no-external --directory . -o rcOptBug $PARALLEL $PROFILE --rc " geninfo_adjust_src_path='/tmp/foo => /build/bar'" --ignore unused 2>&1 | tee rcOptBug.log
175
+ if [ 0 != $? ] ; then
176
+ echo " Error: extract with RC option failed"
177
+ if [ $KEEP_GOING == 0 ] ; then
178
+ exit 1
179
+ fi
180
+ fi
181
+ grep -E " 'substitute' pattern .+ is unused" rcOptBug.log
182
+ if [ 0 != $? ] ; then
183
+ echo " Error: missing RC pattern unused message"
184
+ if [ $KEEP_GOING == 0 ] ; then
185
+ exit 1
186
+ fi
187
+ fi
188
+ grep -E " RC option 'geninfo_adjust_src_path' is deprecated" rcOptBug.log
189
+ if [ 0 != $? ] ; then
190
+ echo " Error: missing RC pattern unused message"
191
+ if [ $KEEP_GOING == 0 ] ; then
192
+ exit 1
193
+ fi
194
+ fi
195
+
196
+
173
197
# workaround: depending on compiler verision, we see a coverpoint on the
174
198
# close brace line (gcc/6 for example) or we don't (gcc/10 for example)
175
199
BRACE_LINE=' ^DA:28'
422
446
chmod ugo-rx separate/run/my/test/no_read
423
447
$COVER $LCOV_HOME /bin/lcov --capture --branch-coverage $PARALLEL $PROFILE --build-directory separate/copy -d separate/run/my/test -o unreadable.info $FILTER $IGNORE 2>&1 | tee err.log
424
448
if [ 0 == ${PIPESTATUS[0]} ] ; then
425
- echo " Error: expected fail from unreadable dire "
449
+ echo " Error: expected fail from unreadable dir "
426
450
if [ $KEEP_GOING == 0 ] ; then
427
451
exit 1
428
452
fi
438
462
439
463
$COVER $LCOV_HOME /bin/lcov --capture --branch-coverage $PARALLEL $PROFILE --build-directory separate/copy -d separate/run/my/test -o unreadable.info $FILTER $IGNORE --ignore utility 2>&1 | tee warn.log
440
464
if [ 0 != ${PIPESTATUS[0]} ] ; then
441
- echo " Error: extract from unreadbale failed"
465
+ echo " Error: extract from unreadable failed"
442
466
if [ $KEEP_GOING == 0 ] ; then
443
467
exit 1
444
468
fi
0 commit comments