Giter Site home page Giter Site logo

lcov's People

Contributors

valbok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lcov's Issues

Error in creating a directory

I am getting this error
Writing .css and .png files.
Generating output.
Skipping mingw!
Skipping mingw!
Skipping mingw!
Skipping mingw!
The syntax of the command is incorrect.
genhtml.perl: ERROR: cannot create directory ../DesktopTest!

not able to run the lcov.bat file in windows

Please help I'm getting below error:

C:\Users\abhm\Desktop\gcov_test>..\lcov\lcov.bat
A subdirectory or file C:\Users\abhm\Desktop\gcov_test\gcov already exists.
Creating gcov\lcov.info ...
Capturing coverage data from .
C:\Users\abhm\Desktop\lcov/geninfo.perl . --output-filename gcov/lcov.info --base-directory .'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
geninfo.perl: Use of uninitialized value $version_string in pattern match (m//) at C:\Users\abhm\Desktop\lcov\geninfo.perl line 1931.
geninfo.perl: Use of uninitialized value $version_string in substitution (s///) at C:\Users\abhm\Desktop\lcov\geninfo.perl line 1937.
geninfo.perl: Use of uninitialized value $version_string in pattern match (m//) at C:\Users\abhm\Desktop\lcov\geninfo.perl line 1940.
geninfo.perl: Use of uninitialized value $version_string in pattern match (m//) at C:\Users\abhm\Desktop\lcov\geninfo.perl line 1953.
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
geninfo.perl: Use of uninitialized value $gcov_version_string in pattern match (m//) at C:\Users\abhm\Desktop\lcov\geninfo.perl line 3743.
geninfo.perl: Use of uninitialized value $gcov_version_string in pattern match (m//) at C:\Users\abhm\Desktop\lcov\geninfo.perl line 3743.
Scanning . for .da files ...
Found 1 data files in .
Processing test.gcda
geninfo.perl: ERROR: C:\Users\abhm\Desktop\gcov_test/test.bb: could not open file
Fixing back slashes ...
Generating html ...
The syntax of the command is incorrect.
genhtml.perl: ERROR: cannot create directory gcov/html/!

My gcov.exe is installed in location : C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin

LCOV.bat:

@echo off
:: Full dirname of current executable
set idir=%~dp0
set perl=C:\Perl64\bin\perl.exe

md "%CD%\gcov"
echo Creating gcov\lcov.info ...
%perl% %idir%lcov.perl -b . -d . -c -o gcov/lcov.info
:: echo Cleaning up ...
:: %perl% %idir%lcov.perl --remove gcov/lcov.info "unneeded" -o gcov/lcov.info

echo Fixing back slashes ...
type "gcov\lcov.info"|%~dp0repl.bat "\" "/" >"gcov\lcov.info.tmp"
move /y "gcov\lcov.info.tmp" "gcov\lcov.info" >nul

echo Generating html ...
%perl% %idir%genhtml.perl -o gcov/html/ gcov/lcov.info -p "%CD%"

I have given gcov_tool variable in geninfo.perl file as:
our $gcov_tool = "C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin\gcov.exe";

Issue with the tool

I am getting the following error while running the tool.

Creating gcov\lcov.info ...
Capturing coverage data from 9999_C1
D:\Perforce\BMW_IUK_MGU_IOC_App_Zug2\sys\gcc\bin/geninfo.perl 9999_C1 --output-f
ilename gcov\lcov.info --base-directory .
UMR D:\Perforce\BMW_IUK_MGU_IOC_App_Zug2\sys\gcc\bin/geninfo.perl 9999_C1 --outp
ut-filename gcov\lcov.info --base-directory .
Found gcov version: 5.3.0
geninfo.perl: No directory specified
Use geninfo.perl --help to get usage information
Fixing back slashes ...
Generating html ...
Reading data file gcov/lcov.info
genhtml.perl: ERROR: no valid records found in tracefile gcov/lcov.info

genhtml.perl: ERROR: no valid records found in tracefile gcov/lcov.info

genhtml.perl: ERROR: no valid records found in tracefile gcov/lcov.info
This error occurred
E:\Qtuser\build-Graduation_project-Desktop_Qt_5_12_1_MinGW_64_bit-Debug>E:\lcov\lcov.bat
Creating gcov\lcov.info ...
Capturing coverage data from .
E:\lcov/geninfo.perl . --output-filename gcov/lcov.info --base-directory .Found gcov version: 7.3.0
Scanning . for .gcda files ...
Found 1 data files in .
Processing 1.gcda
geninfo.perl: WARNING: E:\Qtuser\build-Graduation_project-Desktop_Qt_5_12_1_MinGW_64_bit-Debug/1.gcno: Overlong record at end of file!
E:\Qtuser\build-Graduation_project-Desktop_Qt_5_12_1_MinGW_64_bit-Debug/1.gcno:version 'A81*', prefer 'A73*'
E:\Qtuser\build-Graduation_project-Desktop_Qt_5_12_1_MinGW_64_bit-Debug/1.gcno:no functions found
geninfo.perl: WARNING: gcov did not create any files for E:\Qtuser\build-Graduation_project-Desktop_Qt_5_12_1_MinGW_64_bit-Debug/1.gcda!
Finished .info-file creation
Fixing back slashes ...
Generating html ...
gcov\html
Reading data file gcov/lcov.info
genhtml.perl: ERROR: no valid records found in tracefile gcov/lcov.info

Cannot open source file

I'm having some troubles with relative paths. Running lcov.bat i'm getting this output

W:\geninfo.perl . --output-filename gcov/lcov.info --base-directory .Found gcov version: 4.8.1
Scanning . for .gcda files ...
Found 8 data files in .
Processing file_A.gcda
Processing file_B.gcda
Processing file_C.gcda
Processing file_D.gcda
Processing test_file.gcda
Cannot open source file ../../test_file.c
Processing test_file_runner.gcda
Processing file_E.gcda
Cannot open source file ../../file_E.c
Finished .info-file creation
Fixing back slashes ...
Generating html ...
The syntax of the command is incorrect.

is it possible to change the base directory of the source files leaving as it is the directory of gcda files?

pennam

per file error

Hi,

when I installed perl, then use command to goto the directory per. exe located, then input assoc .perl=Perl.File ,there is error: refuse to access, handle:.per with error.

It is used for C language, is there any fixing method?

Thanks

geninfo.perl genhtml.perl No argument specified

When i try to run geninfo.perl --help or genhtml.perl --help i'm getting the following output:

d:\genhtml.perl --help
Found gcov version: 4.8.1
genhtml.perl: No filename specified
Usage genhtml.perl --help to get usage informations

similar output from geninfo

d:\geninfo.perl --help
Found gcov version: 4.8.1
geninfo.perl: No directory specified
Usage geninfo.perl --help to get usage informations

I'm using windows 7 gcov from mingw4.8.1 and strawberry perl 5.24.0

Any suggestion to fix it?

Error while using in windows

geninfo.perl: Unsuccessful stat on filename containing newline at D:\lcov-master\geninfo.perl line 927
geninfo.perl: Unsuccessful stat on filename containing newline at D:\lcov-master\geninfo.perl line 947.
geninfo.perl: ERROR: cannot write to directory

Generating html ...
The syntax of the command is incorrect.
genhtml.perl: ERROR: cannot create directory gcov/html/!

'pwd'; # Current working directory is not working for windows

Hi,

I am using windows LCOV package and there in lcov.perl and geninfo.perl scripts , our $cwd = 'pwd'; # Current working directory is used.

When executed on windows cmd prompt, it giving error - pwd is not recognized as internal or external command. Tried to use $cwd=getcwd. Once i use it, lcov.info is not getting generated, however, gcda files exists.

Please help us in solving this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.