get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 32357,
    "url": "http://patches.dpdk.org/api/patches/32357/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1513598038-148115-3-git-send-email-harry.van.haaren@intel.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<1513598038-148115-3-git-send-email-harry.van.haaren@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1513598038-148115-3-git-send-email-harry.van.haaren@intel.com",
    "date": "2017-12-18T11:53:58",
    "name": "[dpdk-dev,2/2] meson: add tests app to build",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "acaed50bbbec726d5248b2317b366bcc277ec7a8",
    "submitter": {
        "id": 317,
        "url": "http://patches.dpdk.org/api/people/317/?format=api",
        "name": "Van Haaren, Harry",
        "email": "harry.van.haaren@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1513598038-148115-3-git-send-email-harry.van.haaren@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/32357/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/32357/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 631A21B012;\n\tMon, 18 Dec 2017 12:53:56 +0100 (CET)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id CEAD4374E\n\tfor <dev@dpdk.org>; Mon, 18 Dec 2017 12:53:53 +0100 (CET)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t18 Dec 2017 03:53:52 -0800",
            "from silpixa00398672.ir.intel.com ([10.237.223.128])\n\tby fmsmga006.fm.intel.com with ESMTP; 18 Dec 2017 03:53:51 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.45,422,1508828400\"; d=\"scan'208\";a=\"187968898\"",
        "From": "Harry van Haaren <harry.van.haaren@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "bruce.richardson@intel.com, Harry van Haaren <harry.van.haaren@intel.com>",
        "Date": "Mon, 18 Dec 2017 11:53:58 +0000",
        "Message-Id": "<1513598038-148115-3-git-send-email-harry.van.haaren@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1513598038-148115-1-git-send-email-harry.van.haaren@intel.com>",
        "References": "<1513598038-148115-1-git-send-email-harry.van.haaren@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 2/2] meson: add tests app to build",
        "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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch enables the test/test app to be built. It also adds\nthe test binary to be a meson-test, which allows the meson test\ninfrastructure to be used to run tests.\n\nTests are listed using the same test binary, however each test\nsets a different DPDK_TEST environment variable. The string contents\nof this DPDK_TEST env var is entered in the command line interface.\nAs such, the familiar test names such as \"ring_perf_autotest\" etc\nare valid tests to run using this meson test infrastructure.\n\nNote that the tests are run serially, given that we cannot run\nmultiple primary processes at a time. As each test must initialize\nEAL this takes some time depending on the number of hugepages.\nIn future, we could improve this to run multiple tests from one\nEAL init, but it is out of scope for this patchset.\n\nFinally, an option to build the tests is added to the meson build\noptions. When disabled, the unit test code in test/test is not\ncompiled. The default is set to 'true'. To disable, run:\n\n$ meson configure -Dtests=false\n\nSigned-off-by: Harry van Haaren <harry.van.haaren@intel.com>\n---\n meson.build           |   1 +\n meson_options.txt     |   2 +\n test/meson.build      |  32 +++++++\n test/test/meson.build | 248 ++++++++++++++++++++++++++++++++++++++++++++++++++\n 4 files changed, 283 insertions(+)\n create mode 100644 test/meson.build\n create mode 100644 test/test/meson.build",
    "diff": "diff --git a/meson.build b/meson.build\nindex 04eea72..9132594 100644\n--- a/meson.build\n+++ b/meson.build\n@@ -60,6 +60,7 @@ subdir('drivers')\n # build binaries and installable tools\n subdir('usertools')\n subdir('app')\n+subdir('test')\n \n # build any examples explicitly requested - useful for developers\n if get_option('examples') != ''\ndiff --git a/meson_options.txt b/meson_options.txt\nindex f2558fe..1a674aa 100644\n--- a/meson_options.txt\n+++ b/meson_options.txt\n@@ -18,3 +18,5 @@ option('per_library_versions', type: 'boolean', value: true,\n \tdescription: 'true: each lib gets its own version number, false: DPDK version used for each lib')\n option('use_hpet', type: 'boolean', value: false,\n \tdescription: 'use HPET timer in EAL')\n+option('tests', type: 'boolean', value: true,\n+\tdescription: 'build unit tests')\ndiff --git a/test/meson.build b/test/meson.build\nnew file mode 100644\nindex 0000000..4250eb7\n--- /dev/null\n+++ b/test/meson.build\n@@ -0,0 +1,32 @@\n+#   BSD LICENSE\n+#\n+#   Copyright(c) 2017 Intel Corporation. All rights reserved.\n+#   All rights reserved.\n+#\n+#   Redistribution and use in source and binary forms, with or without\n+#   modification, are permitted provided that the following conditions\n+#   are met:\n+#\n+#     * Redistributions of source code must retain the above copyright\n+#       notice, this list of conditions and the following disclaimer.\n+#     * Redistributions in binary form must reproduce the above copyright\n+#       notice, this list of conditions and the following disclaimer in\n+#       the documentation and/or other materials provided with the\n+#       distribution.\n+#     * Neither the name of Intel Corporation nor the names of its\n+#       contributors may be used to endorse or promote products derived\n+#       from this software without specific prior written permission.\n+#\n+#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+#   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+#   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+#   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+#   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+#   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+#   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+#   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+#   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+subdir('test')\ndiff --git a/test/test/meson.build b/test/test/meson.build\nnew file mode 100644\nindex 0000000..1a4f894\n--- /dev/null\n+++ b/test/test/meson.build\n@@ -0,0 +1,248 @@\n+#   BSD LICENSE\n+#\n+#   Copyright(c) 2017 Intel Corporation. All rights reserved.\n+#   All rights reserved.\n+#\n+#   Redistribution and use in source and binary forms, with or without\n+#   modification, are permitted provided that the following conditions\n+#   are met:\n+#\n+#     * Redistributions of source code must retain the above copyright\n+#       notice, this list of conditions and the following disclaimer.\n+#     * Redistributions in binary form must reproduce the above copyright\n+#       notice, this list of conditions and the following disclaimer in\n+#       the documentation and/or other materials provided with the\n+#       distribution.\n+#     * Neither the name of Intel Corporation nor the names of its\n+#       contributors may be used to endorse or promote products derived\n+#       from this software without specific prior written permission.\n+#\n+#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n+#   \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n+#   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n+#   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n+#   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n+#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n+#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n+#   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n+#   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+#   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n+#   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+test_sources = files('commands.c',\n+\t'packet_burst_generator.c',\n+\t'test.c',\n+\t'test_acl.c',\n+\t'test_alarm.c',\n+\t'test_atomic.c',\n+\t'test_byteorder.c',\n+\t'test_cmdline.c',\n+\t'test_cmdline_cirbuf.c',\n+\t'test_cmdline_etheraddr.c',\n+\t'test_cmdline_ipaddr.c',\n+\t'test_cmdline_lib.c',\n+\t'test_cmdline_num.c',\n+\t'test_cmdline_portlist.c',\n+\t'test_cmdline_string.c',\n+\t'test_common.c',\n+\t'test_cpuflags.c',\n+\t'test_crc.c',\n+\t'test_cycles.c',\n+\t'test_debug.c',\n+\t'test_devargs.c',\n+\t'test_distributor.c',\n+\t'test_distributor_perf.c',\n+\t'test_eal_flags.c',\n+\t'test_eal_fs.c',\n+\t'test_efd.c',\n+\t'test_efd_perf.c',\n+\t'test_errno.c',\n+\t'test_event_ring.c',\n+\t'test_eventdev.c',\n+\t'test_eventdev_octeontx.c',\n+\t'test_eventdev_sw.c',\n+\t'test_func_reentrancy.c',\n+\t'test_hash.c',\n+\t'test_hash_functions.c',\n+\t'test_hash_multiwriter.c',\n+\t'test_hash_perf.c',\n+\t'test_hash_scaling.c',\n+\t'test_interrupts.c',\n+\t'test_kni.c',\n+\t'test_kvargs.c',\n+\t'test_logs.c',\n+\t'test_lpm.c',\n+\t'test_lpm6.c',\n+\t'test_lpm6_perf.c',\n+\t'test_lpm_perf.c',\n+\t'test_malloc.c',\n+\t'test_mbuf.c',\n+\t'test_memcpy.c',\n+\t'test_memcpy_perf.c',\n+\t'test_memory.c',\n+\t'test_mempool.c',\n+\t'test_mempool_perf.c',\n+\t'test_memzone.c',\n+\t'test_meter.c',\n+\t'test_mp_secondary.c',\n+\t'test_per_lcore.c',\n+\t'test_pmd_perf.c',\n+\t'test_power.c',\n+\t'test_power_acpi_cpufreq.c',\n+\t'test_power_kvm_vm.c',\n+\t'test_prefetch.c',\n+\t'test_red.c',\n+\t'test_reorder.c',\n+\t'test_ring.c',\n+\t'test_ring_perf.c',\n+\t'test_rwlock.c',\n+\t'test_sched.c',\n+\t'test_service_cores.c',\n+\t'test_spinlock.c',\n+\t'test_string_fns.c',\n+\t'test_table.c',\n+\t'test_table_acl.c',\n+\t'test_table_combined.c',\n+\t'test_table_pipeline.c',\n+\t'test_table_ports.c',\n+\t'test_table_tables.c',\n+\t'test_tailq.c',\n+\t'test_thash.c',\n+\t'test_timer.c',\n+\t'test_timer_perf.c',\n+\t'test_timer_racecond.c',\n+\t'test_version.c',\n+\t'virtual_pmd.c'\n+)\n+\n+test_deps = ['acl',\n+\t'cfgfile',\n+\t'cmdline',\n+\t'cryptodev',\n+\t'distributor',\n+\t'efd',\n+\t'ethdev',\n+\t'eventdev',\n+\t'hash',\n+\t'lpm',\n+\t'pipeline',\n+\t'port',\n+\t'power',\n+\t'reorder',\n+\t'ring',\n+\t'timer'\n+]\n+\n+test_names = [\n+\t'acl_autotest',\n+\t'alarm_autotest',\n+\t'atomic_autotest',\n+\t'byteorder_autotest',\n+\t'cmdline_autotest',\n+\t'common_autotest',\n+\t'cpuflags_autotest',\n+\t'crc_autotest',\n+\t'cycles_autotest',\n+\t'debug_autotest',\n+\t'devargs_autotest',\n+\t'distributor_autotest',\n+\t'distributor_perf_autotest',\n+\t'eal_flags_autotest',\n+\t'eal_fs_autotest',\n+\t'efd_autotest',\n+\t'efd_perf_autotest',\n+\t'errno_autotest',\n+\t'event_ring_autotest',\n+\t'eventdev_common_autotest',\n+\t'eventdev_octeontx_autotest',\n+\t'eventdev_sw_autotest',\n+\t'func_reentrancy_autotest',\n+\t'has_scaling_autotest',\n+\t'hash_autotest',\n+\t'hash_functions_autotest',\n+\t'hash_multiwriter_autotest',\n+\t'hash_perf_autotest',\n+\t'interrupt_autotest',\n+\t'kni_autotest',\n+\t'kvargs_autotest',\n+\t'logs_autotest',\n+\t'lpm6_autotest',\n+\t'lpm6_perf_autotest',\n+\t'lpm_autotest',\n+\t'lpm_perf_autotest',\n+\t'malloc_autotest',\n+\t'mbuf_autotest',\n+\t'memcpy_autotest',\n+\t'memcpy_perf_autotest',\n+\t'memory_autotest',\n+\t'mempool_autotest',\n+\t'mempool_perf_autotest',\n+\t'memzone_autotest',\n+\t'meter_autotest',\n+\t'multiprocess_autotest',\n+\t'per_lcore_autotest',\n+\t'pmd_perf_autotest',\n+\t'power_acpi_cpufreq_autotest',\n+\t'power_autotest',\n+\t'power_kvm_vm_autotest',\n+\t'prefetch_autotest',\n+\t'red_all',\n+\t'red_autotest',\n+\t'red_perf',\n+\t'reorder_autotest',\n+\t'ring_autotest',\n+\t'ring_perf_autotest',\n+\t'rwlock_autotest',\n+\t'sched_autotest',\n+\t'service_autotest',\n+\t'spinlock_autotest',\n+\t'table_autotest',\n+\t'tailq_autotest',\n+\t'thash_autotest',\n+\t'timer_autotest',\n+\t'timer_perf__autotest',\n+\t'timer_racecond_autotest',\n+\t'user_delay_us',\n+\t'version_autotest',\n+]\n+\n+if dpdk_conf.has('RTE_LIBRTE_PDUMP')\n+\ttest_deps += 'pdump'\n+endif\n+if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')\n+\ttest_deps += 'pmd_i40e'\n+endif\n+if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')\n+\ttest_deps += 'pmd_ixgbe'\n+endif\n+\n+test_dep_objs = []\n+foreach d:test_deps\n+\tdef_lib = get_option('default_library')\n+\ttest_dep_objs += get_variable(def_lib + '_rte_' + d)\n+endforeach\n+\n+link_libs = []\n+if get_option('default_library') == 'static'\n+\tlink_libs = dpdk_drivers\n+endif\n+\n+if get_option('tests')\n+\tdpdk_test = executable('dpdk-test',\n+\t\ttest_sources,\n+\t\tlink_whole: link_libs,\n+\t\tdependencies: test_dep_objs,\n+\t\tinstall_rpath: driver_install_path,\n+\t\tinstall: false)\n+\n+\t# some perf tests (eg: memcpy perf autotest)take very long\n+\t# to complete, so timeout to 10 minutes\n+\ttimeout_seconds = 600\n+\n+\tforeach t:test_names\n+\t\ttest(t, dpdk_test,\n+\t\t\tenv : ['DPDK_TEST='+t],\n+\t\t\ttimeout : timeout_seconds,\n+\t\t\tis_parallel : false)\n+\tendforeach\n+endif\n",
    "prefixes": [
        "dpdk-dev",
        "2/2"
    ]
}