~paulliu/unity/phablet_add-qmluitest1

Viewing all changes in revision 597.

  • Committer: Tarmac
  • Author(s): Michi Henning
  • Date: 2013-04-15 13:19:13 UTC
  • mfrom: (594.2.1 coverage-test-new)
  • Revision ID: tarmac-20130415131913-k5izysaqlcysz4cw
Re-based this MR on trunk rather than a prerequisite branch.

    Added coverage processing for C++ and suppressions to stop unwanted chatter during the build and to ignore things we don't want coverage for (/usr/include and tests).
    Added clean-coverage target. This removes all .gcda files, which is useful if the tests have been run previously, and code changes have come to the point where the new and old .gcda files can't be merged anymore. In this case, run "make clean-coverage" and re-run the tests before generating the coverage report.
    Fixed overwriting of CMAKE_MODULE_PATH.
    Added cppcheck target for static checking of C++ (similar to lint).
    Fixed build script to print usage if command-line arguments/options are incorrect and to write to stderr instead of stdout for errors.
    Changed build script to allow the build type to be passed in, so we don't have a hard-wired build type.

Approved by PS Jenkins bot, Michał Sawicz.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: