From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CA86D4234B; Tue, 10 Oct 2023 13:56:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6BC8940297; Tue, 10 Oct 2023 13:56:45 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 720DE40278 for ; Tue, 10 Oct 2023 13:56:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696939002; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rwJ5E7jX7J7wzFs+fSikEKFri/AmYPQTfu4W/sIvAe4=; b=Ear6k9BTAyLQi5bgHrPkH4EzMEz5ajz3kaDfh7uljEfYoHbGOIQ1bpE8ZLU1DrsHrTdnxT h/Cv+n0UeA1DvZDNWv+9RsUUYLhtkDNVqDsfPJjKr4GBxsBqIIWBBPEJc2+6uDPxGGI9BO NyZShjFrjLNQbVxeJ9PoBnO+KKWU8Q0= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-252-5kgmdyXYN3aAKO7Jhd0JsA-1; Tue, 10 Oct 2023 07:56:30 -0400 X-MC-Unique: 5kgmdyXYN3aAKO7Jhd0JsA-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2bfe60dfbc3so48050051fa.3 for ; Tue, 10 Oct 2023 04:56:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696938989; x=1697543789; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rwJ5E7jX7J7wzFs+fSikEKFri/AmYPQTfu4W/sIvAe4=; b=FpttmSN74CMeqUOZIpgrM508p9Blb8hm80Zmzz2FJJVBJsXFJipVYjMn32MlCikykv EKKRJZGMN6z7EV05vOfWVso6yH0tHwBdiAccsZyrfeeAxhUJWiAKZBE4yJndtbuydBo8 59JrDq/NUZ1qzOlTW8W1fBPCoRflfdNwn6tCVItqCa5TL4+FhnueiPtj4VDCg9qNaRRY cM7C9CrGw1cs8KIJGUTy2eJUJDfODxz/vDYoJpIzVWoqbBNdkgFi9u2Bk1tly2cDkQ3Y /3XYCHdiyObxjw1GH+nBR/PyHmyVeiRprC0k2W72719hNdTRt0r6KDqid0AmoYomHTdf vb8w== X-Gm-Message-State: AOJu0YyMm34pYekBUyvPaZ3+9hH/BwYBRO3VczfR0qijFggbC9Uegs7V N9CEpAoV6sLQEMsJMqlVDUNqgODy5IMdF4lnJP/l0k67Glf8yB+jwu9z6kV88JBRErXsLoMyzNH EhlyVTZrdLLG6MQRJwgg= X-Received: by 2002:a05:6512:31cc:b0:504:3499:7c37 with SMTP id j12-20020a05651231cc00b0050434997c37mr19294430lfe.60.1696938989369; Tue, 10 Oct 2023 04:56:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUNLj2zYfDDVYclmRrRBT4aK5U29aVeDrL1DDyk7ja1G4bBIV8dbVLk0QSnYZk9gy67mPrczSMRFC9gbPSXJI= X-Received: by 2002:a05:6512:31cc:b0:504:3499:7c37 with SMTP id j12-20020a05651231cc00b0050434997c37mr19294408lfe.60.1696938989015; Tue, 10 Oct 2023 04:56:29 -0700 (PDT) MIME-Version: 1.0 References: <20230928073056.359356-2-mattias.ronnblom@ericsson.com> <20231009181711.440865-1-mattias.ronnblom@ericsson.com> <20231009181711.440865-3-mattias.ronnblom@ericsson.com> In-Reply-To: <20231009181711.440865-3-mattias.ronnblom@ericsson.com> From: David Marchand Date: Tue, 10 Oct 2023 13:56:17 +0200 Message-ID: Subject: Re: [PATCH v6 2/3] test: add dispatcher test suite To: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= Cc: dev@dpdk.org, Jerin Jacob , techboard@dpdk.org, harry.van.haaren@intel.com, hofors@lysator.liu.se, Peter Nilsson , Heng Wang , Naga Harish K S V , Pavan Nikhilesh , Gujjar Abhinandan S , Erik Gabriel Carrillo , Shijith Thotton , Hemant Agrawal , Sachin Saxena , Liang Ma , Peter Mccarthy , Zhirun Yan X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Mon, Oct 9, 2023 at 8:22=E2=80=AFPM Mattias R=C3=B6nnblom wrote: > +static int > +test_dispatcher(void) > +{ > + return unit_test_suite_runner(&test_suite); > +} > + > +REGISTER_FAST_TEST(dispatcher_autotest, false, true, test_dispatcher); Since this test expects some lcores, wdyt of adding: @@ -1044,6 +1044,12 @@ static struct unit_test_suite test_suite =3D { static int test_dispatcher(void) { + if (rte_lcore_count() < NUM_SERVICE_CORES + 1) { + printf("Not enough cores for dispatcher_autotest, expecting at least %u\n", + NUM_SERVICE_CORES + 1); + return TEST_SKIPPED; + } + return unit_test_suite_runner(&test_suite); } This should avoid the failures we get with some CI env. (additionnally, I tested this on my laptop and the test runs fine) --=20 David Marchand