From patchwork Thu Sep 14 10:42:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 131411 X-Patchwork-Delegate: thomas@monjalon.net 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 87A5E42596; Thu, 14 Sep 2023 12:42:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C29CF40633; Thu, 14 Sep 2023 12:42:26 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 50D8E40289 for ; Thu, 14 Sep 2023 12:42:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694688144; x=1726224144; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TOHjWAU2Og8z09D+jo5kJIt7UYAw9xEgwhPYzwc7aNI=; b=Fk9TE6v25ySWW1At6jz/t+9/9Cw1tXWqpT5Q4jFzCWks8AodGHCOqpsd qaVKK470GeF2bkgiPtFnwGUQuRnFOQvbkpguoAiJXH451QVmZLPT4WhqE 9YPaL3SIQt0RnCSZPwJeFldMYMTzE+q1o5q28DIx8hCpQ227K0zdQORCM wTrWvmIjHL/cVeLivgxtdQGShtQNel9gG84NxjxnAQixGr01ov3b0HQx0 QMdR7fI7xzjih0J+7l9RyOSkQnQpYVMKc4q8lP/JoU4Ry5HYsAi7oASY4 GqBzGf998fJIKkWbn72+kjwD8PFwR7DuvOS1rLMXrOad6f3ulNG85ndJL w==; X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="378834387" X-IronPort-AV: E=Sophos;i="6.02,145,1688454000"; d="scan'208";a="378834387" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2023 03:42:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="918204060" X-IronPort-AV: E=Sophos;i="6.02,145,1688454000"; d="scan'208";a="918204060" Received: from silpixa00401385.ir.intel.com ([10.237.214.14]) by orsmga005.jf.intel.com with ESMTP; 14 Sep 2023 03:42:22 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH 1/1] app/test: skip PCI bus scan when testing prefix flags Date: Thu, 14 Sep 2023 11:42:15 +0100 Message-Id: <20230914104215.71408-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230914104215.71408-1-bruce.richardson@intel.com> References: <20230914104215.71408-1-bruce.richardson@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org When testing the file prefix handling, and the memory cleanup for the various prefixes, we don't need to worry about PCI devices. Therefore skip the device scan on startup. In my testing, this makes the test runs more resilient. Signed-off-by: Bruce Richardson --- app/test/test_eal_flags.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c index 6cb4b06757..48d26e8871 100644 --- a/app/test/test_eal_flags.c +++ b/app/test/test_eal_flags.c @@ -1203,47 +1203,47 @@ test_file_prefix(void) #endif /* this should fail unless the test itself is run with "memtest" prefix */ - const char *argv0[] = {prgname, mp_flag, "-m", + const char *argv0[] = {prgname, mp_flag, "--no-pci", "-m", DEFAULT_MEM_SIZE, "--file-prefix=" memtest }; /* primary process with memtest1 and default mem mode */ - const char *argv1[] = {prgname, "-m", + const char *argv1[] = {prgname, "--no-pci", "-m", DEFAULT_MEM_SIZE, "--file-prefix=" memtest1 }; /* primary process with memtest1 and legacy mem mode */ - const char *argv2[] = {prgname, "-m", + const char *argv2[] = {prgname, "--no-pci", "-m", DEFAULT_MEM_SIZE, "--file-prefix=" memtest1, "--legacy-mem" }; /* primary process with memtest2 and legacy mem mode */ - const char *argv3[] = {prgname, "-m", + const char *argv3[] = {prgname, "--no-pci", "-m", DEFAULT_MEM_SIZE, "--file-prefix=" memtest2, "--legacy-mem" }; /* primary process with memtest2 and default mem mode */ - const char *argv4[] = {prgname, "-m", + const char *argv4[] = {prgname, "--no-pci", "-m", DEFAULT_MEM_SIZE, "--file-prefix=" memtest2 }; /* primary process with --in-memory mode */ - const char * const argv5[] = {prgname, "-m", + const char * const argv5[] = {prgname, "--no-pci", "-m", DEFAULT_MEM_SIZE, "--in-memory" }; /* primary process with memtest1 and --in-memory mode */ - const char * const argv6[] = {prgname, "-m", + const char * const argv6[] = {prgname, "--no-pci", "-m", DEFAULT_MEM_SIZE, "--in-memory", "--file-prefix=" memtest1 }; /* primary process with parent file-prefix and --in-memory mode */ - const char * const argv7[] = {prgname, "-m", + const char * const argv7[] = {prgname, "--no-pci", "-m", DEFAULT_MEM_SIZE, "--in-memory", "--file-prefix", prefix }; /* primary process with memtest1 and --single-file-segments mode */ - const char * const argv8[] = {prgname, "-m", + const char * const argv8[] = {prgname, "--no-pci", "-m", DEFAULT_MEM_SIZE, "--single-file-segments", "--file-prefix=" memtest1 }; /* primary process with memtest1 and --huge-unlink=never mode */ - const char * const argv9[] = {prgname, "-m", + const char * const argv9[] = {prgname, "--no-pci", "-m", DEFAULT_MEM_SIZE, "--huge-unlink=never", "--file-prefix=" memtest1 };