GitHub PushEvent at 2014-01-26 08:32:44
Repository: cpp-coveralls
Actor: eddyxu
Payload: {"shas":[["786325637d9536a5142b1a8b60f30d374f148d2b","73218711cdd5d5c30ac66da3cc4d9d9204caf34b@clear-code.com","Support GNU libtool\n\nGNU libtool generates object files into `.libs/` directory instead of\nthe source directory. This change removes `.libs/` from paths to\ngenerate suitable paths automatically.\n\nFor example, there is a source file in `sample/greeter.c`:\n\n    sample\n    `-- greeter.c\n\nGNU libtool generates `greeter.o` into\n`sample/greeter/.libs/greeter.o`:\n\n    sample\n    |-- .libs\n    |   `-- greeter.o\n    `-- greeter.c\n\n`.gcno` files are also generated into `.libs/` directory:\n\n    sample\n    |-- .libs\n    |   |-- greeter.gcno\n    |   `-- greeter.o\n    `-- greeter.c\n\n`coveralls.coverage.run_gcov()` runs `gcov` in the directory that has\n`.gcno`. In this example, it is `sample/.libs/` directory. But\n`sample/.libs/` directory doesn't have source file, `greeter.c`. In\nthis situation, `gcov` can't find source file and reports the\nfollowing error:\n\n    % coveralls\n    ...\n    Cannot open source file greeter.c\n    File 'greeter.c'\n    Lines executed:100.00% of 2\n    Creating 'greeter.c.gcov'\n    ...\n\ncpp-coveralls has `--build-root` option to change the working\ndirectory to run `gcov`. We can use it to resolve the error:\n\n    % coveralls --build-root sample\n    ...\n    File 'greeter.c'\n    Lines executed:100.00% of 2\n    Creating 'greeter.c.gcov'\n    ...\n\nBut we can't use `--build-root` option when we have two or more\ndirectories.\n\nSee also #11 and 0372af0.\n\nI created a sample project to try GNU libtool and coverage\ncombination: https://github.com/kou/libtool-coverage-sample\n\nYou can find the current cpp-coveralls can't report coverage\ninformation: https://coveralls.io/builds/465842\n\nWith this change, cpp-coveralls can report the correct coverage\ninformation: https://coveralls.io/builds/465922","Kouhei Sutou",true],["6db1afeccb0a8fb6849583862c7966f30397b742","e6d2986890561a9c3a684b923a69904e705b5531@users.noreply.github.com","Merge pull request #23 from kou/support-libtool\n\nSupport GNU libtool","Lei Xu",true]],"size":2,"ref":"refs/heads/master","head":"6db1afeccb0a8fb6849583862c7966f30397b742"}