Я выполняю тест Google на windows, использую компилятор Mingw64, когда я запускаю lcov.bat из командной строки для запуска покрытия отчета html, я получил несколько ошибок, подобных этой:
D:\xxx\lcov-master>lcov.bat
D:\xxx\lcov-master>#########################################################
'#########################################################' is not recognized as an internal or external command,
operable program or batch file.
D:\xxx\lcov-master>#
'#' is not recognized as an internal or external command,
operable program or batch file.
D:\xxx\lcov-master>#
'#' is not recognized as an internal or external command,
operable program or batch file.
D:\xxx\lcov-master>#
'#' is not recognized as an internal or external command,
operable program or batch file.
D:\xxx\lcov-master>#
'#' is not recognized as an internal or external command,
operable program or batch file.
D:\xxx\lcov-master>#########################################################
'#########################################################' is not recognized as an internal or external command,
operable program or batch file.
A subdirectory or file D:\xxx\lcov-master>gcov already exists.
Creating gcov\lcov.info ...
lcov.perl: Need one of options -z, -c, -a, -e, -r, -l, --diff or --summary
Use lcov.perl --help to get usage information
Cleaning up ...
lcov.perl: ERROR: no valid records found in tracefile gcov/lcov.info
The system cannot find the file specified.
Fixing back slashes ...
'#########################################################' is not recognized as an internal or external command,
operable program or batch file.
'#' is not recognized as an internal or external command,
operable program or batch file.
'#' is not recognized as an internal or external command,
operable program or batch file.
'#' is not recognized as an internal or external command,
operable program or batch file.
'#' is not recognized as an internal or external command,
operable program or batch file.
'#########################################################' is not recognized as an internal or external command,
operable program or batch file.
Generating html ...
Reading data file gcov/lcov.info
genhtml.perl: ERROR: no valid records found in tracefile gcov/lcov.info
Я устанавливаю переменную среды пути следующим образом:
"ell\;"
%SystemRoot%\system32
%SystemRoot%
%SystemRoot%\System32\Wbem
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
%SYSTEMROOT%\System32\OpenSSH\
C:\Program Files\Git\cmd
C:\Python27
C:\Perl64\bin\perl.exe
C:\Program Files\CMake\bin
D:\xxx\MingW64\mingw32\bin
C:\Strawberry\c\bin
C:\Strawberry\perl\site\bin
C:\Strawberry\perl\bin
C:\windows\system32
C:\windows\
Я думаю, что причина в том, что я установил переменные среды пути неправильно, верно? Как я могу это исправить?