Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/111536/?format=api
https://patches.dpdk.org/api/patches/111536/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20220520102732.652-1-weiyuanx.li@intel.com/", "project": { "id": 3, "url": "https://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": "<20220520102732.652-1-weiyuanx.li@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20220520102732.652-1-weiyuanx.li@intel.com", "date": "2022-05-20T10:27:30", "name": "[V1,1/3] test_plans/meson_tests: add test plan for meson tests", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "adf8b3660f6ad48e39d417ce388bebbc92dfde6b", "submitter": { "id": 2477, "url": "https://patches.dpdk.org/api/people/2477/?format=api", "name": "Weiyuan Li", "email": "weiyuanx.li@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20220520102732.652-1-weiyuanx.li@intel.com/mbox/", "series": [ { "id": 23063, "url": "https://patches.dpdk.org/api/series/23063/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=23063", "date": "2022-05-20T10:27:30", "name": "[V1,1/3] test_plans/meson_tests: add test plan for meson tests", "version": 1, "mbox": "https://patches.dpdk.org/series/23063/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/111536/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/111536/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 97228A0503;\n\tFri, 20 May 2022 12:27:57 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7481C42B9E;\n\tFri, 20 May 2022 12:27:57 +0200 (CEST)", "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id 968EF40222\n for <dts@dpdk.org>; Fri, 20 May 2022 12:27:55 +0200 (CEST)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 May 2022 03:27:53 -0700", "from shwdenpg560.ccr.corp.intel.com ([10.253.109.11])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 May 2022 03:27:51 -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=1653042475; x=1684578475;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=rXpQZvcdiEVWT/3XDZbYb6gFe01F5Z23k+snAKgPGac=;\n b=fkRnhmaKpTQtbVEwyu/dyLqYCa54Je79sxPXnhZnCs5IJFb8p49PcwGq\n 5RZgUx5NxiNqA9mt3W/l8sSXTNiPBeoTBC9N2yRMiy5ZbPsmBASAaQA81\n 6jjIH3PluWhCdnlhGn3TgqESO7ItvhNag+VvvmAm/KvX8580xixEC9OpT\n EqsawbFkwsxtwXOtCySOcR09Fppva4VkKE8Luq02hdjsbDQO84zktAG5K\n yxoRKhNgFR92Ml7yf7G2YDAiVToKtoBACqpdob9tdXnxPpwVWpDVpPYP7\n QQ/enDXskSP7KRryqnfpSJVXfGRLCpJp2cG2CWs1/8EDF3siCjte4az8g g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10352\"; a=\"254621229\"", "E=Sophos;i=\"5.91,238,1647327600\"; d=\"scan'208\";a=\"254621229\"", "E=Sophos;i=\"5.91,238,1647327600\"; d=\"scan'208\";a=\"899259380\"" ], "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 V1 1/3] test_plans/meson_tests: add test plan for meson\n tests", "Date": "Fri, 20 May 2022 18:27:30 +0800", "Message-Id": "<20220520102732.652-1-weiyuanx.li@intel.com>", "X-Mailer": "git-send-email 2.34.1.windows.1", "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 test_plans/meson_tests_test_plan.rst | 185 +++++++++++++++++++++++++++\n 1 file changed, 185 insertions(+)\n create mode 100644 test_plans/meson_tests_test_plan.rst", "diff": "diff --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": [ "V1", "1/3" ] }{ "id": 111536, "url": "