Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find files due to odd path creation #135

Open
stefanberger opened this issue Jan 7, 2019 · 1 comment
Open

Cannot find files due to odd path creation #135

stefanberger opened this issue Jan 7, 2019 · 1 comment

Comments

@stefanberger
Copy link

I am running the following project with cpp-coveralls: https://github.com/stefanberger/libtpms

It processes some files fine but then ends up with an error like this here:

[...]
  File '/usr/include/x86_64-linux-gnu/bits/stdio2.h'                                                                                                                                         
No executable lines                                                                                                                                                                        
Removing 'tpm2_pcr_read.gcno###usr#include#x86_64-linux-gnu#bits#stdio2.h.gcov'                                                                                                                                                                                                                                                                                                     
Traceback (most recent call last):                                                                                                                                                          
  File "/usr/local/bin/cpp-coveralls", line 11, in                                                                                                                                    
    sys.exit(run())                                                                                                                                                                         
  File "/usr/local/lib/python2.7/dist-packages/cpp_coveralls/__init__.py", line 97, in run                                                                                                    
    cov_report = coverage.collect(args)
  File "/usr/local/lib/python2.7/dist-packages/cpp_coveralls/coverage.py", line 448, in collect
    with io.open(source_file_path, mode='rb') as src_file:
IOError: [Errno 2] No such file or directory: '/root/libtpms/src/tpm12/tpm12/tpm_startup.c'
--

The path should be /root/libtpms/src/tpm12/tpm_startup.c.

Overall I only can get it to work with the following command line since other paths are badly concatenated as well:

cpp-coveralls --gcov-options '\-lp' -e src/tpm2/crypto/openssl/tpm2/ -e src/tpm2/tpm2 -e src/tpm12/tpm12
@stefanberger
Copy link
Author

Maybe the malformed path is due to the fact that the Makefile is located in libtpms/src and the compiled files are actually located in libtpms/src/tpm12, libtpms/src/tpm2, and libtpms/src/tpm2/crypto/openssl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant