lvc / api-sanity-checker

An automatic generator of basic unit tests for a C/C++ library
https://lvc.github.io/api-sanity-checker/
GNU Lesser General Public License v2.1
85 stars 13 forks source link

API Sanity checker test build failing. #19

Open shaheenanjum opened 10 years ago

shaheenanjum commented 10 years ago

Hi, I am trying to genrate and build test cases for Lib B that depends on Lib A. The test case generation is successfully happening , but all the test build is failing.

Here is the output: ./api-sanity-checker -lib sanity -d /home/version.xml -gen -build Using GCC 4.3 (x86_64-suse-linux, target: x86_64) checking header(s) 1.0 ... ERROR: some errors occurred when compiling headers ERROR: see log for details: /home/API_SANITY_CHECKER/usr/bin/logs/sanity/1.0/log.txt

creating library ABI dump ... library ABI has been dumped to: /tmp/HmVG2SRoU8/ABI.dump you can transfer this dump everywhere and use instead of the 1.0 version descriptor generating tests: 297/297 [100.00%], success/fail: 297/0

  1. see generated test suite in the directory 'tests/sanity/1.0/'
  2. for viewing tests use 'tests/sanity/1.0/view_tests.html'
  3. use -build option for building tests

building tests: 297/297 [100.00%], success/fail: 0/297

In the ouput of all the build_log file i get "undefined_reference" errors.

Request inputs on this. Thanks.

lvc commented 9 years ago

Hello,

Such errors can be fixed by adding add_include_paths and libs_depend options to the input XML descriptor. See http://lvc.github.io/api-sanity-checker/Xml-Descriptor.html for details.

Can I get the source code of your library somewhere in order to debug the issue?

Thank you.