get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 59609,
    "url": "https://patches.dpdk.org/api/patches/59609/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190923121533.1191-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": "<20190923121533.1191-1-marcinx.a.zapolski@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190923121533.1191-1-marcinx.a.zapolski@intel.com",
    "date": "2019-09-23T12:15:33",
    "name": "[v2] doc: add code coverage report generation guide",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7397d26b42c62cdabd668e4604f17dd76f3e9fda",
    "submitter": {
        "id": 1362,
        "url": "https://patches.dpdk.org/api/people/1362/?format=api",
        "name": "Marcin Zapolski",
        "email": "marcinx.a.zapolski@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20190923121533.1191-1-marcinx.a.zapolski@intel.com/mbox/",
    "series": [
        {
            "id": 6487,
            "url": "https://patches.dpdk.org/api/series/6487/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=6487",
            "date": "2019-09-23T12:15:33",
            "name": "[v2] doc: add code coverage report generation guide",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/6487/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/59609/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/59609/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 1A8E81BED7;\n\tMon, 23 Sep 2019 14:16:26 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id A30701BEC9\n\tfor <dev@dpdk.org>; Mon, 23 Sep 2019 14:16:23 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t23 Sep 2019 05:16:22 -0700",
            "from marcinzx-mobl.ger.corp.intel.com ([10.103.104.110])\n\tby fmsmga002.fm.intel.com with ESMTP; 23 Sep 2019 05:16:21 -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=\"218519626\"",
        "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 14:15:33 +0200",
        "Message-Id": "<20190923121533.1191-1-marcinx.a.zapolski@intel.com>",
        "X-Mailer": "git-send-email 2.22.0.windows.1",
        "In-Reply-To": "<20190923085226.1009-1-marcinx.a.zapolski@intel.com>",
        "References": "<20190923085226.1009-1-marcinx.a.zapolski@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2] 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---\nv2: fix trailing whitespaces\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..691950a62 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": [
        "v2"
    ]
}