From patchwork Thu Jun 16 10:58:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 112894 Return-Path: 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]) by inbox.dpdk.org (Postfix) with ESMTP id EE4E0A00BE; Thu, 16 Jun 2022 12:58:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF6A340F19; Thu, 16 Jun 2022 12:58:45 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 6895540F19 for ; Thu, 16 Jun 2022 12:58:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655377124; x=1686913124; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=vh1gJScQEbxixpfKh0dQCPjBokQRVquZcbVxAu9fXOk=; b=JQmRuPGj9PzMef9th4Iwt+uKdxjsMRr5PnBjOfVWLEgwglD+3hm49RPn YU8/cwvNFowaJdM9SAybu8KoIMat/d+JuY3vgZZr1t8kr4L1VyBz8+1yk 3TIcrPTnmATcx9E9+ivECpurn3A/rz7/TJXZjFZKf+6jlUfUdsr672pFV 1wipJinPNndtv9aSiJQr7Obe5jTo6i8QW/EEyD2MFL5ShO3wvQkebF1Nv wwgbPXTOsqR1nW02bLoCcQ7f4IlaXoq7GE2dwEBpNN6VM9grs/p4CAIwd q3JRLUXXLFTOICXuiR8SMmf+Kn4n2AmMtpiTz7Hg4yeMPOzmKivH80CuI w==; X-IronPort-AV: E=McAfee;i="6400,9594,10379"; a="279280294" X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="279280294" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 03:58:43 -0700 X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="641490442" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 03:58:42 -0700 From: Weiyuan Li To: dts@dpdk.org, lijuan.tu@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 1/2] test_plans/meson_tests: modify case test_debug Date: Thu, 16 Jun 2022 18:58:09 +0800 Message-Id: <20220616105810.19857-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org According to dpdk22.07rc1 commit f940a2e333 modify meson_tests plan. Signed-off-by: Weiyuan Li --- test_plans/meson_tests_test_plan.rst | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/test_plans/meson_tests_test_plan.rst b/test_plans/meson_tests_test_plan.rst index e199ec81..533cd383 100644 --- a/test_plans/meson_tests_test_plan.rst +++ b/test_plans/meson_tests_test_plan.rst @@ -136,19 +136,6 @@ test steps 2.Following test case 1 step 2 and step 3. -.. warning:: - - `The bug _` impacts the following cases:: - - DPDK:debug-tests/dump_struct_sizes - DPDK:debug-tests/dump_mempool - DPDK:debug-tests/dump_malloc_stats - DPDK:debug-tests/dump_devargs - DPDK:debug-tests/dump_log_types - DPDK:debug-tests/dump_ring - DPDK:debug-tests/dump_physmem - DPDK:debug-tests/dump_memzone - Test case 4: test_extra ------------------------------- This section explains how to run the meson tests for extra-tests. From patchwork Thu Jun 16 10:58:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 112895 Return-Path: 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]) by inbox.dpdk.org (Postfix) with ESMTP id 2045FA00C2; Thu, 16 Jun 2022 12:58:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 18249410D3; Thu, 16 Jun 2022 12:58:47 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 3D6F44003C for ; Thu, 16 Jun 2022 12:58:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655377125; x=1686913125; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lKYC3losTqem9M+XDn08QK2/kMrGvnEt8iQEmx7VKJ4=; b=HrzI5o5PYhilvag/v1k6/2CX+OLjIqmGFmvqZOsBfvu1U5+xkXQw6p53 eFI7Mj9aXBYjIsPeDwtWwctR4PXYhCNR9jzxsdxCfgR54B3c1cIRXUgjP 9VeRCC1YdQrJNVqp2xgjIrbWK/PtzI1MuBe5pASAduOittQhbhEy99MwN CSSbUr3gj5umunAogW+C78r/7/7RgVdZ7ykMPtvZdPsvZTS6tKznVzljH 6U/ImMZum4UblCqi1sZ3faBnyYX+JgelYhSSSyblnrc3BFQLTNQ3QPXBg XEqnbaAuv4lf9cBOFUeyX+06dzoNQP35nhAroUcwIInRyYDSXVhdblTEV w==; X-IronPort-AV: E=McAfee;i="6400,9594,10379"; a="279280300" X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="279280300" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 03:58:44 -0700 X-IronPort-AV: E=Sophos;i="5.91,304,1647327600"; d="scan'208";a="641490449" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2022 03:58:43 -0700 From: Weiyuan Li To: dts@dpdk.org, lijuan.tu@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 2/2] tests/meson_tests: modify case test_debug Date: Thu, 16 Jun 2022 18:58:10 +0800 Message-Id: <20220616105810.19857-2-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220616105810.19857-1-weiyuanx.li@intel.com> References: <20220616105810.19857-1-weiyuanx.li@intel.com> MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org According to dpdk22.07rc1 commit id f940a2e333 modify case test_debug. Signed-off-by: Weiyuan Li --- tests/TestSuite_meson_tests.py | 42 ++++++++-------------------------- 1 file changed, 10 insertions(+), 32 deletions(-) diff --git a/tests/TestSuite_meson_tests.py b/tests/TestSuite_meson_tests.py index 4b1f7df2..df0d0b31 100644 --- a/tests/TestSuite_meson_tests.py +++ b/tests/TestSuite_meson_tests.py @@ -1,33 +1,6 @@ -# BSD LICENSE +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2022 Intel Corporation # -# Copyright(c) 2022 Intel Corporation. All rights reserved. -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# * Neither the name of Intel Corporation nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ DPDK Test Suite. @@ -189,9 +162,14 @@ class TestMesonTests(TestCase): self.check_meson_test_result() def test_debug(self): - self.logger.warning( - "Debug-tests all case failed commands are not registered, there is a bug https://bugs.dpdk.org/show_bug.cgi?id=1002" - ) + self.dut_pathlog = "test-debug.log" + # delete exists files + self.delete_exists_files() + cmds = f'meson test -C x86_64-native-linuxapp-gcc/ --suite DPDK:debug-tests -t {self.ratio} --test-args="-c 0xff" |tee /root/{self.dut_pathlog}' + out = self.dut.send_expect(cmds, "# ", self.execute_wait_time) + self.logger.info(out) + self.check_scp_file_valid_between_dut() + self.check_meson_test_result() def test_extra(self): self.dut_pathlog = "extra-test.log"