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 AAF2345A12; Mon, 23 Sep 2024 21:26:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD83B40614; Mon, 23 Sep 2024 21:26:39 +0200 (CEST) Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mails.dpdk.org (Postfix) with ESMTP id 61B8540647 for ; Mon, 23 Sep 2024 21:26:38 +0200 (CEST) Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-206e614953aso45347815ad.1 for ; Mon, 23 Sep 2024 12:26:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1727119597; x=1727724397; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qZOa0j/nUcHPvZs5Y4ZRSmU06vcEjyX/W3mGvY2NKJ8=; b=E/xGJu2rAaWFgls9LzCIkmVMOapcTb0OTyeI91eAa+JwjJ/cT45LjsJJnv4USNAXZ/ A9v7ppeGEchzEHuZ2YKCJDx8CYu7RFyUKGEDVP3Azug16H+c/9IlLQwF6Esrhm6wIxg4 kPqDvXdI/dNunvLUyalc75dvR/ntyG9YfLXMk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727119597; x=1727724397; 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=qZOa0j/nUcHPvZs5Y4ZRSmU06vcEjyX/W3mGvY2NKJ8=; b=n6vbD2MkdtD53gfj8R8P6pSrvaBMcYy/WZUd5yIqrsCIfMx9ukrfYzKJbA5mjZcm5G pXYRiFKl3261sdiAyMtjUpHPVlOillvJOB8DO5CvXCcfGbqAkw3IES7dfyaTQSBiNyJA OqBArRKoiDx02ZkBUFVqmzOCTvfbkYws65I5XN0zM9+nZ3tC5Y8DuTIRS4D8vUV54Z7K i83RNEG3CKCEcCbIB60NDf9FNrpd3vl8JtT3HM/8tvpC1WG/bDAShen+/k3GOpaUHJFb kGZ1LgKmZbX3BiWp/toi7nSUja+WxKJb2k0Y+Itgg1UbS7Qu5l6d7T3G3EUDcdk53+Of rnUg== X-Forwarded-Encrypted: i=1; AJvYcCUaBZYAmUDCNAOskq3HGGP00F/4BcAlWKzrtit4JaGT/Wv2/aJ7Msc0f0NNbFb0HWSp7qI=@dpdk.org X-Gm-Message-State: AOJu0YzbKUl2by5+4FQKkbhoaZlWNLfASApwI3ywxnmZnzfyQxX/IJ3S dmSxfY3m77vxgiF282HXYMl3AY13pSLHSB0GXwTOyv9h3RsZBF72vKRBAycD9NZAsrSpSA/yygh 9HPS0ToDgdZBU2VMI89VVb/37phwFW1R5kaSj3g== X-Google-Smtp-Source: AGHT+IFd9PNEPFd2yP0Jh2bmYsNLsvyHwCIq9+OjFLD1CJrTNCG+vOfv5cuxEALnucCGv1GjX/hEkVsod6bctOIuA+M= X-Received: by 2002:a17:903:32c8:b0:207:1737:2c66 with SMTP id d9443c01a7336-208d83dea30mr183034585ad.35.1727119595871; Mon, 23 Sep 2024 12:26:35 -0700 (PDT) MIME-Version: 1.0 References: <20240301155416.96960-1-juraj.linkes@pantheon.tech> <20240923150210.57269-1-juraj.linkes@pantheon.tech> <20240923150210.57269-8-juraj.linkes@pantheon.tech> In-Reply-To: <20240923150210.57269-8-juraj.linkes@pantheon.tech> From: Jeremy Spewock Date: Mon, 23 Sep 2024 15:26:25 -0400 Message-ID: Subject: Re: [PATCH v4 08/11] dts: add topology capability To: =?UTF-8?Q?Juraj_Linke=C5=A1?= Cc: thomas@monjalon.net, Honnappa.Nagarahalli@arm.com, paul.szczepanek@arm.com, Luca.Vizzarro@arm.com, alex.chapman@arm.com, probb@iol.unh.edu, npratte@iol.unh.edu, dmarx@iol.unh.edu, dev@dpdk.org 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, Sep 23, 2024 at 11:02=E2=80=AFAM Juraj Linke=C5=A1 wrote: > > Add support for marking test cases as requiring a certain topology. The > default topology is a two link topology and the other supported > topologies are one link and no link topologies. > > The TestProtocol of test suites and cases is extended with the topology > type each test suite or case requires. Each test case starts out as > requiring a two link topology and can be marked as requiring as > topology directly (by decorating the test case) or through its test > suite. If a test suite is decorated as requiring a certain topology, all > its test cases are marked as such. If both test suite and a test case > are decorated as requiring a topology, the test case cannot require a > more complex topology than the whole suite (but it can require a less > complex one). If a test suite is not decorated, this has no effect on > required test case topology. > > Since the default topology is defined as a reference to one of the > actual topologies, the NoAliasEnum from the aenum package is utilized, > which removes the aliasing of Enums so that TopologyType.two_links and > TopologyType.default are distinct. This is needed to distinguish between > a user passed value and the default value being used (which is used when > a test suite is or isn't decorated). > > Signed-off-by: Juraj Linke=C5=A1 > Reviewed-by: Dean Marx Reviewed-by: Jeremy Spewock