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
Add possibility to add compiler include path to --generate phase #1
Comments
Hi, Thanks for the detailed feedback! Try to add this option to your
All available options are described here: http://ispras.linuxbase.org/index.php/Library_Descriptor |
The problem is that then ~ 4000 tests for library A are generated, but I only want the ~ 100 tests for library B. |
Generally, the tool should generate test cases for those symbols that are exported by the input shared library (
|
The problem in my case is that shared library B contains many of the symbols from shared library A as undefined references and the api-sanity-checker generates tests for all of those, which I don't want since we run the api-sanity-checker on library A in a separate continous integration job. Unfortunately at the moment for my case library B is not publicly available, which makes this discussion unnecessarily abstract. Do you know another similar example where both libraries are public that we can both run through the api-sanity-checker? |
The tool should not generate tests for undefined symbols in the library. Do you use any additional options (like --headers-only)? |
I don't use any additional options, I run this command:
Here's my
Here's an example of a test generated for a symbol in A which is undefined in B:
Here's the log: Am I doing something wrong? |
Try this XML descriptor:
|
Ah, something like an I now have the problem that some tests fail to generate and most fail to build:
The build failures occur because the linker flag for library A
How can I make the |
Try to add this option to the descriptor:
Actually, this is a bug in the tool if it cannot find this library automatically. |
If I add
So I now have what I wanted, so as far as I'm concerned feel free to close this ticket. You mentioned it might be a bug that it is necessary to add the |
Cool! |
First of all: the API Sanity Checker is a very cool project! Thanks!
I want to run the api-sanity-checker on a library B which depends on another library A.
The problem I've run into is that the call
makes a call like this
and this fails because the B header files included in
/tmp/something/dump.h
include headers from library A.So what I need is a way to tell the
api-sanity-checker
to pass a flag-I/path/to/library/A/headers/
along togcc
.Is there an option or workaround to do this?
(Sorry if I didn't explain my problem well.)
The text was updated successfully, but these errors were encountered: