From patchwork Fri Sep 15 11:52:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 143 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 775FC425A4; Fri, 15 Sep 2023 13:52:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0AC8B402DE; Fri, 15 Sep 2023 13:52:25 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id E0FF1402D7 for ; Fri, 15 Sep 2023 13:52:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694778743; x=1726314743; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=1VHc3juHc6qxEo1U4cir/EkVeuuAyazhFGGgiJ2SD+Q=; b=c75OzF3Wbqq7iLZ91XwC9MFgPrG1Yowprg35XjCfe+Ag7SAgWvawUnqQ YypNc1D2hQaliGrus5qC/PvzTiOs/fCujaH6RNCIJZsJ8X3xW0M384q6q SkyAbJ64rGUMYx/T1F6LAEGdiI/yZx1rNy8qDbFiVZ07xJGL0MoKnPmwO C6IS3ywyaupv/fvxIsUH3u2RrotXSKSilY9E5wMxWWJVQTKOpQcr/9uu5 AkgHf5ymvdqZKcjuXnl7PTXAHpoAp0JI/QK65mNVdvO1RceUG6L2sDZ30 pHJpUD0A+N9yOCdEusZ/iVCeXGfbGkZqq8Myeib+bL10QoAuH2BEKkuEH w==; X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="379149102" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="379149102" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 04:52:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="918631206" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="918631206" Received: from silpixa00401385.ir.intel.com ([10.237.214.14]) by orsmga005.jf.intel.com with ESMTP; 15 Sep 2023 04:52:09 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: david.marchand@redhat.com, Bruce Richardson Subject: [PATCH 0/2] add checks for tests not in a suite Date: Fri, 15 Sep 2023 12:52:04 +0100 Message-Id: <20230915115206.132198-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 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 To help ensure that we don't have "orphaned" tests not in any test suites we can add the following checks: * In developer-mode builds, emit a warning for each test defined using REGISTER_TEST_COMMAND * In checkpatches, add a check to prevent the addition of new tests using the REGISTER_TEST_COMMAND macro Bruce Richardson (2): app/test: emit warning for tests not in a test suite devtools: check for tests added without a test suite app/test/suites/meson.build | 13 ++++++++++++- buildtools/get-test-suites.py | 12 +++++++++--- devtools/checkpatches.sh | 8 ++++++++ 3 files changed, 29 insertions(+), 4 deletions(-) --- 2.39.2