From patchwork Wed Jul 27 15:27:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fischer X-Patchwork-Id: 12930484 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 279CFC04A68 for ; Wed, 27 Jul 2022 15:34:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233855AbiG0Pea (ORCPT ); Wed, 27 Jul 2022 11:34:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232684AbiG0Pe3 (ORCPT ); Wed, 27 Jul 2022 11:34:29 -0400 Received: from euporie.uberspace.de (euporie.uberspace.de [185.26.156.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5529C237D9 for ; Wed, 27 Jul 2022 08:34:28 -0700 (PDT) Received: (qmail 15183 invoked by uid 989); 27 Jul 2022 15:27:45 -0000 Authentication-Results: euporie.uberspace.de; auth=pass (plain) From: Florian Fischer To: io-uring@vger.kernel.org Cc: Florian Schmaus , Florian Fischer , Eli Schwartz Subject: [PATCH liburing 5/9] meson: add default test setup running each test once Date: Wed, 27 Jul 2022 17:27:19 +0200 Message-Id: <20220727152723.3320169-6-florian.fischer@muhq.space> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220727152723.3320169-1-florian.fischer@muhq.space> References: <20220727152723.3320169-1-florian.fischer@muhq.space> MIME-Version: 1.0 X-Rspamd-Bar: ----- X-Rspamd-Report: R_MISSING_CHARSET(0.5) MIME_GOOD(-0.1) REPLY(-4) MID_CONTAINS_FROM(1) BAYES_HAM(-2.997468) X-Rspamd-Score: -5.597468 Received: from unknown (HELO unkown) (::1) by euporie.uberspace.de (Haraka/2.8.28) with ESMTPSA; Wed, 27 Jul 2022 17:27:45 +0200 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org With this patch running `meson test` in the build directory behaves like `make -C test runtests`. To execute the other test suites (running the tests in a loop or in parallel) run: `meson test --suite=loop` or `meson test --suite=parallel`. Suggested-by: Eli Schwartz Signed-off-by: Florian Fischer --- test/meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/meson.build b/test/meson.build index 4d9b3f3..af394a4 100644 --- a/test/meson.build +++ b/test/meson.build @@ -197,6 +197,12 @@ foreach test_source: all_tests suite: 'parallel') endforeach +if meson.version().version_compare('>=0.57') + add_test_setup('runtests', + exclude_suites: ['loop', 'parallel'], + is_default: true) +endif + test_runners = ['runtests.sh', 'runtests-loop.sh', 'runtests-quiet.sh'] foreach test_runner: test_runners