From mboxrd@z Thu Jan 1 00:00:00 1970 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 80CD8C433F5 for ; Fri, 22 Apr 2022 16:01:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344223AbiDVQEm (ORCPT ); Fri, 22 Apr 2022 12:04:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231931AbiDVQEj (ORCPT ); Fri, 22 Apr 2022 12:04:39 -0400 Received: from mx0b-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63F6655236 for ; Fri, 22 Apr 2022 09:01:46 -0700 (PDT) Received: from pps.filterd (m0109331.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 23M5bdeW001246 for ; Fri, 22 Apr 2022 09:01:45 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=facebook; bh=Ho9X+7w/4UWTmznhgnO5FSUq9OyiL7bHwcSUEI86E2o=; b=XmQUT2G/8pv1yeKCJTZQz04P5AQMbWgY5GHgG/ZU46pZx0RAHPra4mda9XgEfN4pVYkP wngLArZZyEYZoZI49SjmdSxEw8kqUYAn4Hq/OIzBeGAzAwnHSfN/ih3O9Stm2dtUeogr b+iGMfcQK/XxK4nXFhKM6BPwdHdOrGpvvCk= Received: from mail.thefacebook.com ([163.114.132.120]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3fkpcmk6n7-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 22 Apr 2022 09:01:45 -0700 Received: from twshared16483.05.ash9.facebook.com (2620:10d:c085:208::f) by mail.thefacebook.com (2620:10d:c085:21d::4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 22 Apr 2022 09:01:43 -0700 Received: by devbig039.lla1.facebook.com (Postfix, from userid 572232) id A34EF7E01533; Fri, 22 Apr 2022 09:01:39 -0700 (PDT) From: Dylan Yudaken To: CC: , , , Dylan Yudaken Subject: [PATCH liburing v2 0/7] run tests in parallel Date: Fri, 22 Apr 2022 09:01:25 -0700 Message-ID: <20220422160132.2891927-1-dylany@fb.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-ORIG-GUID: DcV-GCzPXCfJckV2sLC8olwt7FIq_27O X-Proofpoint-GUID: DcV-GCzPXCfJckV2sLC8olwt7FIq_27O X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-22_04,2022-04-22_01,2022-02-23_01 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org This series allows tests to be run in parallel, which speeds up iterating. Rather than build this functionality into the shell scripts, i= t seemed much easier to use make's parallel execution to do this. My bash/make skills are not top notch, so I might have missed something obvious, however it does seem to work locally very nicely. Patch #1 is a bug that seems to trigger quite often when running in paral= lel Patch #2-5 fix bugs that prevent tests running in parallel Patch #6 adds a make target that depends on running each test Patch #7 Is not related to parallel tests. It is a prep for a later serie= s to use nop to test IOPOLL. v2: - fix runtests-quiet.sh to return the correct error code - add runtests-parallel to the main target Dylan Yudaken (7): test: handle mmap return failures in pollfree test test: use unique path for socket test: use unique ports test: use unique filenames test: mkdir -p output folder test: add make targets for each test test: use remove_buffers instead of nop to generate error codes Makefile | 2 ++ test/232c93d07b74.c | 2 +- test/Makefile | 10 +++++++++- test/accept-test.c | 2 +- test/defer.c | 28 ++++++++++++++++++++-------- test/link.c | 6 +++--- test/openat2.c | 6 +++--- test/pollfree.c | 4 ++-- test/recv-msgall.c | 2 +- test/runtests-quiet.sh | 11 +++++++++++ test/runtests.sh | 2 +- test/send_recv.c | 2 +- test/send_recvmsg.c | 2 +- test/sq-poll-dup.c | 2 +- test/sq-poll-share.c | 2 +- 15 files changed, 58 insertions(+), 25 deletions(-) create mode 100755 test/runtests-quiet.sh base-commit: b7d8dd8bbf5b8550c8a0c1ed70431cd8050709f0 --=20 2.30.2