Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp2036777rdb; Tue, 5 Sep 2023 12:17:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDD2HG3kdvZAhhOs2y9AuWifeTVqvkuUMVVmi5C2E7Wtx0ynHiex+Z/bm46anA/a4ewZ7V X-Received: by 2002:a05:6e02:de9:b0:349:2d48:66ac with SMTP id m9-20020a056e020de900b003492d4866acmr14155439ilj.12.1693941470953; Tue, 05 Sep 2023 12:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693941470; cv=none; d=google.com; s=arc-20160816; b=cGwu+Hlgu9kZT5QZQouF9ZFVxMnl3jakUd1ynvsaCfgGcthGyg2xsbzx07Fk7myzRW BcUVM04JCJkKj6rUkKC/KRSo3CUchhelZprx75vqvS3KNfM5XtFwvtUvGNS/oUeuA5DE TevHvbkXrBiGloW3zc2M85Bte7jDe71l+J8v9yY+inLvUNxTeQI0Bi32bylziQdiLN8M OZz7RoOd+DUxZ1tX9HxpsoZBVSjTy2rSn9iRwt5NqYMYMWqlOyE0zS5CpTqdKgjHNADr ys7CLRLE+T/n6zP6qzs4WbdvbWLa1VEl7p30ic1IdTT9P2hOv4DmOs9RePhf2nQH2MWJ 0QEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=eCM//Ti6GPO8Yb8AfW2rdS4uETmUyeQyZGxVtlCKM9w=; fh=8tgdJ8BrdqGtLap0d6Gva7u4fOvjTTWbh0emnQqxwiY=; b=DdEa18ZQZRx8Ci5dJel5BldOkhk8xGLJP7Yk3CsVHqJfvqsVjM4xe3XDSBKqZGQhw/ /W/f3i4+5osEzQwYw4T1Yo1Q9iblEBVczKlTRjFlEnsQiM7EmFYa49yFJxHtkQdyGIrx xpXO1YYQndAMBQ2RJce7u7CZ3nF2vk6CrVMspsNYNNDurG8a1eoZETCjr7rCnYKoZ15e hF2iY0zKBpnTDyEoL9PK9HQTBUnXYmRQaRvDfqu4ZEXn4D1Wz0SHJ0rwCEQm4CEHCmjH /dMm8XisaMFavP0q4T1c/XrdvuxQzJc8rcD6bitG5wHV2BfvEiVT0hGhsy/l+6tFavq+ DHfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tFmppNXH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p3-20020a63c143000000b00565e9707d07si9723884pgi.795.2023.09.05.12.17.50 for ; Tue, 05 Sep 2023 12:17:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tFmppNXH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241887AbjIDPW2 (ORCPT ); Mon, 4 Sep 2023 11:22:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234615AbjIDPW2 (ORCPT ); Mon, 4 Sep 2023 11:22:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE153E6A for ; Mon, 4 Sep 2023 08:22:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 874B161864 for ; Mon, 4 Sep 2023 15:22:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE7FCC433C8; Mon, 4 Sep 2023 15:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693840931; bh=etRCoMCTX5NlGcqqpz9AuU1aUpXkazd4SsTN45gaFHI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=tFmppNXHY1YaKMH0QkPzWyQEaRKdTwxdnoqVHmWMttKtNv6V47lrQbEnulkx/fhEg NMX2HXPU51V81cj6wLIjJYiUvwZzHwIL6jzI6NFEgyX78amKTbcKW+S/50x/B4ArUp mJFhjUGrrpmFk9X6IIuoaqQR/e2weW59QHDd7W1NhBxuONsOFfMggjdLSMyg9966/Q cJWOAX5WmTfM4wpmDbbrUrvx6zSZ/qgTszEAuvsj9sDrnqkkaJl92b69qXiBqNeO6J utxbHXedw0pwP2Gun9pfLfUpeyZF7ekrxjUfeO8uSHYqbDV4a21Y4/83rDMXmNZuNM IPYugQ6p7+j6g== From: Kalle Valo To: gregory.greenman@intel.com Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org, Johannes Berg Subject: Re: [PATCH 04/15] wifi: mac80211: add an element parsing unit test References: <20230827110532.348304-1-gregory.greenman@intel.com> <20230827135854.333bc75df13f.I0ddfeb6a88a4d89e7c7850e8ef45a4b19b5a061a@changeid> Date: Mon, 04 Sep 2023 18:23:31 +0300 In-Reply-To: <20230827135854.333bc75df13f.I0ddfeb6a88a4d89e7c7850e8ef45a4b19b5a061a@changeid> (gregory greenman's message of "Sun, 27 Aug 2023 14:05:21 +0300") Message-ID: <877cp6q7ws.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org gregory.greenman@intel.com writes: > From: Johannes Berg > > Add a unit test for the parsing of a fragmented sta profile > sub-element inside a fragmented multi-link element. > > Signed-off-by: Johannes Berg > Signed-off-by: Gregory Greenman > --- > net/mac80211/Kconfig | 11 ++++ > net/mac80211/Makefile | 2 + > net/mac80211/tests/Makefile | 3 ++ > net/mac80211/tests/elems.c | 101 ++++++++++++++++++++++++++++++++++++ > net/mac80211/tests/module.c | 10 ++++ > net/mac80211/util.c | 3 ++ > 6 files changed, 130 insertions(+) > create mode 100644 net/mac80211/tests/Makefile > create mode 100644 net/mac80211/tests/elems.c > create mode 100644 net/mac80211/tests/module.c > > diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig > index 51ec8256b7fa..037ab74f5ade 100644 > --- a/net/mac80211/Kconfig > +++ b/net/mac80211/Kconfig > @@ -57,6 +57,17 @@ endif > comment "Some wireless drivers require a rate control algorithm" > depends on MAC80211 && MAC80211_HAS_RC=n > > +config MAC80211_KUNIT_TEST > + tristate "KUnit tests for mac80211" if !KUNIT_ALL_TESTS > + depends on KUNIT > + depends on MAC80211 > + default KUNIT_ALL_TESTS > + depends on !KERNEL_6_2 > + help > + Enable this option to test mac80211 internals with kunit. > + > + If unsure, say N. Just wanted to say that this is great. Hopefully we will have more tests in the future. But what's KERNEL_6_2? I tried to grep for that in wireless-next but didn't find anything. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches