get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/59603/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 59603,
    "url": "https://patches.dpdk.org/api/patches/59603/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190923085226.1009-1-marcinx.a.zapolski@intel.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20190923085226.1009-1-marcinx.a.zapolski@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190923085226.1009-1-marcinx.a.zapolski@intel.com",
    "date": "2019-09-23T08:52:26",
    "name": "doc: add code coverage report generation guide",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a0efee06a57242611c20c3a2907cf3e58c652913",
    "submitter": {
        "id": 1362,
        "url": "https://patches.dpdk.org/api/people/1362/?format=api",
        "name": "Marcin Zapolski",
        "email": "marcinx.a.zapolski@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20190923085226.1009-1-marcinx.a.zapolski@intel.com/mbox/",
    "series": [
        {
            "id": 6484,
            "url": "https://patches.dpdk.org/api/series/6484/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=6484",
            "date": "2019-09-23T08:52:26",
            "name": "doc: add code coverage report generation guide",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/6484/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/59603/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/59603/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B793E1BEB1;\n\tMon, 23 Sep 2019 10:56:22 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 1E4051BE8F\n\tfor <dev@dpdk.org>; Mon, 23 Sep 2019 10:56:20 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t23 Sep 2019 01:56:19 -0700",
            "from marcinzx-mobl.ger.corp.intel.com ([10.103.104.110])\n\tby fmsmga001.fm.intel.com with ESMTP; 23 Sep 2019 01:56:18 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.64,539,1559545200\"; d=\"scan'208\";a=\"203082356\"",
        "From": "Marcin Zapolski <marcinx.a.zapolski@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Marcin Zapolski <marcinx.a.zapolski@intel.com>",
        "Date": "Mon, 23 Sep 2019 10:52:26 +0200",
        "Message-Id": "<20190923085226.1009-1-marcinx.a.zapolski@intel.com>",
        "X-Mailer": "git-send-email 2.22.0.windows.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH] doc: add code coverage report generation guide",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add unit tests and code coverage reports generation guides to Meson\nbuild documentation.\n\nSigned-off-by: Marcin Zapolski <marcinx.a.zapolski@intel.com>\n---\n doc/build-sdk-meson.txt | 40 ++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 40 insertions(+)",
    "diff": "diff --git a/doc/build-sdk-meson.txt b/doc/build-sdk-meson.txt\nindex fc7fe37b5..644d1a27b 100644\n--- a/doc/build-sdk-meson.txt\n+++ b/doc/build-sdk-meson.txt\n@@ -192,3 +192,43 @@ From examples/helloworld/Makefile::\n \n \tbuild:\n \t\t@mkdir -p $@\n+\n+Running DPDK unit-tests\n+-----------------------\n+\n+To run all defined unit tests we can use the command::\n+\n+\tmeson test -C build\n+\n+from DPDK root direcotry, where build is the project build directory. It is the\n+equivalent to running::\n+\n+\tninja test\n+\n+in ``build`` directory.\n+To run a set of tests belonging to a specific test suite, we can use::\n+\n+\tmeson test -C build --suite <test-suite>\n+\n+where <test-suite> can be ``fast-tests``, ``perf-tests``, ``driver-tests`` or\n+``debug-tests``.\n+\n+Generating code coverage reports\n+--------------------------------\n+\n+To gather code coverage data, we need to give meson the  ``-Db_coverage=true`` \n+command line flag::\n+\n+\tmeson configure -Db_coverage=true\n+\n+To generate code coverage reports, the ``gcovr`` tool needs to be installed. On\n+most linux distributions it is available through the package manager, eg.\n+``sudo apt-get install gcovr``.\n+Then, after running the tests, we can generate the reports simply by running::\n+\n+\tninja coverage\n+\n+in project build directory. The reports will be generated in\n+``build/meson-logs`` directory, in ``html``, ``xml`` and ``txt`` formats.\n+To generate the coverage reports in only one format, we can use one of \n+``coverage-html``, ``coverage-xml`` or ``coverage-txt`` meson targets.\n",
    "prefixes": []
}