get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 111912,
    "url": "http://patches.dpdk.org/api/patches/111912/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20220526091937.1276-2-weiyuanx.li@intel.com/",
    "project": {
        "id": 3,
        "url": "http://patches.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20220526091937.1276-2-weiyuanx.li@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220526091937.1276-2-weiyuanx.li@intel.com",
    "date": "2022-05-26T09:19:36",
    "name": "[V3,2/2] test_plans/meson_tests: add test plan for meson tests",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "94b895a3a27ec8c96393f15ee256f0c94e57ce82",
    "submitter": {
        "id": 2477,
        "url": "http://patches.dpdk.org/api/people/2477/?format=api",
        "name": "Weiyuan Li",
        "email": "weiyuanx.li@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20220526091937.1276-2-weiyuanx.li@intel.com/mbox/",
    "series": [
        {
            "id": 23184,
            "url": "http://patches.dpdk.org/api/series/23184/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=23184",
            "date": "2022-05-26T09:19:35",
            "name": "[V3,1/2] tests/meson_tests: add new testsuite for meson tests",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/23184/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/111912/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/111912/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id ED85BA0555;\n\tThu, 26 May 2022 11:19:51 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E785E4161A;\n\tThu, 26 May 2022 11:19:51 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 89F4640DF7\n for <dts@dpdk.org>; Thu, 26 May 2022 11:19:48 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 May 2022 02:19:48 -0700",
            "from shwdenpg560.ccr.corp.intel.com ([10.253.109.11])\n by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 26 May 2022 02:19:46 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1653556788; x=1685092788;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=I3VUe3XPJYaal9C0/esKea2GRxMuPeKP48TOAFQGg9s=;\n b=QKN+BdfZJ/2i5ND05n2VhNmx5hfDMk6f7o1CfvARA/jUSYSvLLIYPc7u\n BG7qo0Cd4lUVVM/zpvKIG/h5yrhc64j/LorBQ/hfr16eWZSP+IgFqbQ8u\n GL7zc3sM134Ce/KYsJizPUj1WacjiWluZjDnbWvDxpL7GIMlPlmSoglkO\n aKe/rJZ1RkqErblkP07jg+rNsni05apIKq3BKto5QTZP2dfy+INAWQ5Ng\n dmz5Pp4fJ+cOzBpqre4f9b8nEOtz0Otv2fehVAbPUrnITRVKFOtlYvQWc\n PXoBah5LBoV+agE5GTzsMZMcsHRoGe28blKicgV9XeHBwoXRrNEI87x/8 g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10358\"; a=\"360483838\"",
            "E=Sophos;i=\"5.91,252,1647327600\"; d=\"scan'208\";a=\"360483838\"",
            "E=Sophos;i=\"5.91,252,1647327600\"; d=\"scan'208\";a=\"677384566\""
        ],
        "From": "\"Li, WeiyuanX\" <weiyuanx.li@intel.com>",
        "To": "dts@dpdk.org,\n\tlijuan.tu@intel.com",
        "Cc": "Weiyuan Li <weiyuanx.li@intel.com>",
        "Subject": "[dts][PATCH V3 2/2] test_plans/meson_tests: add test plan for meson\n tests",
        "Date": "Thu, 26 May 2022 17:19:36 +0800",
        "Message-Id": "<20220526091937.1276-2-weiyuanx.li@intel.com>",
        "X-Mailer": "git-send-email 2.34.1.windows.1",
        "In-Reply-To": "<20220526091937.1276-1-weiyuanx.li@intel.com>",
        "References": "<20220526091937.1276-1-weiyuanx.li@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org"
    },
    "content": "From: Weiyuan Li <weiyuanx.li@intel.com>\n\nAdd new test plan for meson tests.\n\nSigned-off-by: Weiyuan Li <weiyuanx.li@intel.com>\n---\n\nv2:\n-fix format issue.\nv3:\n-add verification that the test result is empty\n\n test_plans/index.rst                 |   1 +\n test_plans/meson_tests_test_plan.rst | 185 +++++++++++++++++++++++++++\n 2 files changed, 186 insertions(+)\n create mode 100644 test_plans/meson_tests_test_plan.rst",
    "diff": "diff --git a/test_plans/index.rst b/test_plans/index.rst\nindex 6978a2ef..45a23e7e 100644\n--- a/test_plans/index.rst\n+++ b/test_plans/index.rst\n@@ -281,6 +281,7 @@ The following are the test plans for the DPDK DTS automated test system.\n     unit_tests_ringpmd_test_plan\n     unit_tests_ring_test_plan\n     unit_tests_timer_test_plan\n+    meson_tests_test_plan\n \n     cmdline_test_plan\n     hello_world_test_plan\ndiff --git a/test_plans/meson_tests_test_plan.rst b/test_plans/meson_tests_test_plan.rst\nnew file mode 100644\nindex 00000000..e199ec81\n--- /dev/null\n+++ b/test_plans/meson_tests_test_plan.rst\n@@ -0,0 +1,185 @@\n+.. SPDX-License-Identifier: BSD-3-Clause\n+   Copyright (c) <2022>, Intel Corporation\n+\n+===========\n+Meson tests\n+===========\n+\n+Description\n+===========\n+This test plan describes how to run unit tests with meson.\n+Test tests have been classified into five different groups.\n+\n+- Fast tests.\n+- Performance tests.\n+- Driver tests.\n+- Extra tests.\n+- Debug tests.\n+\n+For more details, please refer to `Running DPDK Unit Tests with Meson <http://doc.dpdk.org/guides/prog_guide/meson_ut.html>`_.\n+\n+Prerequisites\n+=============\n+\n+Required Libraries\n+------------------\n+* crypto relative cases require dependencies `libIPSec_MB` and `libcrypto`::\n+\n+     cryptodev_aesni_mb_autotest\n+     cryptodev_aesni_gcm_autotest\n+     cryptodev_null_autotest\n+     cryptodev_openssl_autotest\n+     cryptodev_openssl_asym_autotest\n+     cryptodev_qat_autotest\n+     cryptodev_sw_kasumi_autotest\n+     cryptodev_sw_snow3g_autotest\n+     cryptodev_sw_zuc_autotest\n+     cryptodev_scheduler_autotest\n+\n+  .. note::\n+\n+     For more details, please refer to `Crypto Device Drivers <http://doc.dpdk.org/guides/cryptodevs/index.html>`_\n+\n+* The following cases require dependencies `libpcap`::\n+\n+   bpf_convert_autotest\n+   eal_flags_mem_autotest\n+   flow_classify_autotest\n+   efd_autotest\n+   efd_perf_autotest\n+\n+General set up\n+--------------\n+\n+* Compile DPDK::\n+\n+    # CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static <dpdk build dir>\n+    # ninja -C <dpdk build dir> -j 110\n+\n+* Load rte_kni driver::\n+\n+    # lsmod | grep rte_kni\n+    # rmmod rte_kni.ko\n+    # insmod ./<dpdk build dir>/kmod/rte_kni.ko lo_mode=lo_mode_fifo\n+\n+   .. note::\n+\n+      Test case fast-tests/kni_autotest requires to load kni.ko.\n+\n+* Get the pci device id and interface of DUT and tester.\n+   For example, 0000:18:00.0 and 0000:18:00.1 is pci device id,\n+   ens785f0 and ens785f1 is interface::\n+\n+    <dpdk dir># ./usertools/dpdk-devbind.py -s\n+\t...\n+    0000:18:00.0 'Device 159b' if=ens785f0 drv=ice unused=vfio-pci\n+    0000:18:00.1 'Device 159b' if=ens785f1 drv=ice unused=vfio-pci\n+\n+* Bind the DUT port to dpdk::\n+\n+    <dpdk dir># ./usertools/dpdk-devbind.py -b vfio-pci 0000:18:00.0 0000:18:00.1\n+\n+.. note::\n+\n+   kni_autotest requires at least one ethernet port, but other can be none.\n+\n+Test case\n+=========\n+\n+Test case 1: test_fasts\n+-------------------------------\n+This section explains how to run the meson tests for fast-tests.\n+\n+test steps\n+~~~~~~~~~~\n+1. Run test on DUT::\n+\n+    meson test -C x86_64-native-linuxapp-gcc --suite DPDK:fast-tests -t 1 --test-args=\"-c 0xff\"\n+\n+   * `-t` is used to specify the timeout of test case, unit is second.\n+   * `--test-args option` is used to specify test specific parameters,\n+     distributor_autotest and distributor_perf_autotest require core number less than 64.\n+\n+2. Open and view the results on DUT::\n+\n+    <dpdk dir># cat ./x86_64-native-linuxapp-gcc/meson-logs/testlog.txt\n+\n+3. Check the result output log. All case results are \"OK\", for example::\n+\n+    1/99 DPDK:fast-tests / acl_autotest                   OK              3.43s\n+    2/99 DPDK:fast-tests / atomic_autotest                OK              6.21s\n+    3/99 DPDK:fast-tests / bitmap_autotest                OK              1.18s\n+    4/99 DPDK:fast-tests / bpf_autotest                   OK              1.17s\n+    5/99 DPDK:fast-tests / bpf_convert_autotest           OK              1.19s\n+\n+Test case 2: test_driver\n+-------------------------------\n+This section explains how to run the meson tests for driver-tests.\n+\n+test steps\n+~~~~~~~~~~\n+1. Run test on DUT::\n+\n+    meson test -C x86_64-native-linuxapp-gcc --suite DPDK:driver-tests -t 1 --test-args=\"-c 0xff\"\n+\n+2. Following test case 1 step 2 and step 3.\n+\n+Test case 3: test_debug\n+-------------------------------\n+This section explains how to run the meson tests for debug-tests.\n+\n+test steps\n+~~~~~~~~~~\n+1. Run test on DUT::\n+\n+    meson test -C x86_64-native-linuxapp-gcc --suite DPDK:debug-tests -t 1 --test-args=\"-c 0xff\"\n+\n+2.Following test case 1 step 2 and step 3.\n+\n+.. warning::\n+\n+   `The bug <https://bugs.dpdk.org/show_bug.cgi?id=1002>_` impacts the following cases::\n+\n+      DPDK:debug-tests/dump_struct_sizes\n+      DPDK:debug-tests/dump_mempool\n+      DPDK:debug-tests/dump_malloc_stats\n+      DPDK:debug-tests/dump_devargs\n+      DPDK:debug-tests/dump_log_types\n+      DPDK:debug-tests/dump_ring\n+      DPDK:debug-tests/dump_physmem\n+      DPDK:debug-tests/dump_memzone\n+\n+Test case 4: test_extra\n+-------------------------------\n+This section explains how to run the meson tests for extra-tests.\n+\n+test steps\n+~~~~~~~~~~\n+1. Run test on DUT::\n+\n+    meson test -C x86_64-native-linuxapp-gcc --suite DPDK:extra-tests -t 1 --test-args=\"-c 0xff\"\n+\n+2. Following test case 1 step 2 and step 3.\n+\n+.. warning::\n+\n+   Extra-tests are know issues which are recorded in app/test/meson.build::\n+\n+    #Tests known to have issues or which don't belong in other tests lists.\n+    extra_test_names = [\n+            'alarm_autotest', # ee00af60170b (\"test: remove strict timing requirements some tests\")\n+            'cycles_autotest', # ee00af60170b (\"test: remove strict timing requirements some tests\")\n+            'delay_us_sleep_autotest', # ee00af60170b (\"test: remove strict timing requirements some tests\")\n+            'red_autotest', # https://bugs.dpdk.org/show_bug.cgi?id=826]\n+\n+Test case 5: test_perf\n+-------------------------------\n+This section explains how to run the meson tests for perf-tests.\n+\n+test steps\n+~~~~~~~~~~\n+1. Run test on DUT::\n+\n+    meson test -C x86_64-native-linuxapp-gcc --suite DPDK:perf-tests -t 1 --test-args=\"-c 0xff\"\n+\n+2. Following test case 1 step 2 and step 3.\n\\ No newline at end of file\n",
    "prefixes": [
        "V3",
        "2/2"
    ]
}