From patchwork Sun Mar 17 02:40:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Sakamoto X-Patchwork-Id: 780880 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D67ECC54E60 for ; Sun, 17 Mar 2024 02:43:15 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 7FBF92393; Sun, 17 Mar 2024 03:43:02 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7FBF92393 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1710643392; bh=+7cDV8phINR1H1W2BobAARDGMcLQfzXEtzNFenr5xMA=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=CYjCMTDtjZZulToyqWG2gvd/072F/o/v5iYN+AVGxCX+QajsPmV/QMWIszFVZX6I2 5kZdNRv5Q5xrG/lLSl9/xrezJIP/mRjoPGdBCRQI62NdAddnk2oLh650V587pCSepO nCZ96i7vEWFe/uZz0FbIU/7tP+FhTvNbIycIUQHU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5114DF805AE; Sun, 17 Mar 2024 03:42:39 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 9118EF8055C; Sun, 17 Mar 2024 03:42:39 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D9BEFF804E7; Sun, 17 Mar 2024 03:41:05 +0100 (CET) Received: from fhigh2-smtp.messagingengine.com (fhigh2-smtp.messagingengine.com [103.168.172.153]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E43C7F80093 for ; Sun, 17 Mar 2024 03:40:56 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E43C7F80093 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.a=rsa-sha256 header.s=fm1 header.b=Y2UQnqVK; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=E3ZvrOxV Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 6892411400D8; Sat, 16 Mar 2024 22:40:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sat, 16 Mar 2024 22:40:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm1; t=1710643255; x=1710729655; bh=WmHVOfjtWO K35eMLmsN+DCJxmeYJ3Vwg3IoKTI8rlrI=; b=Y2UQnqVKVHrmbnJpBgoadzNSQ7 ivPGo98hoHTbtbx1pB0GQkVHN/Qx4FDpEt4dGE+tpuiBZB6nXeJ0rhGtdRykXvAF JiI+uwhrGU5oecBlfV8brNG0ZXD1VMLsSsySWtd/7y5M3dciemFUwpwEPuKQ4Nh3 504UGdwB/XKZwwCOFNWLbYPLSo6QoNoHQfnPUYrsVO1L9olGfJk6jKx7GfQ3ZhuJ 6cIrOOO3w7iOp0XLt5GsbLgmENV8+1G7oSIhkAyBi6e2NVUPohLGDUUpSTN6PU2v 5Be+FPkIftoSPo0Z7u2sFEngnPCY6MJ16bFnECNTaru/PWE11pZDr4Fxj9uQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1710643255; x=1710729655; bh=WmHVOfjtWOK35eMLmsN+DCJxmeYJ 3Vwg3IoKTI8rlrI=; b=E3ZvrOxV9+rMlhFWvlywe1eVHQM589OQCCSzmrY2T4U2 mCb5XZ6pkzrxnVFhQhF1bUn78sJUf0IsbL5K5+O/EQpiiuCetLDaeL60GK/ADtKd aDj9cy97M8ShFFjXGGWWu1Jcj5iF0eZr6xOZoDBJ8KOPDJkUs+zELlQm1qO+NTZq q8D18T6b0r6DYgJhA9wzSGVrPNbflwhjiZic2y1cBj/gT2ilQT/w4BMgG0E4y/Ef yUfFduegeoKGktBsKFRgXGtVrU3VY6QXs02x2s0JmUMNeiagBAWm8tqU594k35UT ocWNKc/XdNFoLAC2HrB60IpyWn3VjUDt+DihJtRR4A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrkeefgdehudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgggfestdekredtre dttdenucfhrhhomhepvfgrkhgrshhhihcuufgrkhgrmhhothhouceoohdqthgrkhgrshhh ihesshgrkhgrmhhotggthhhirdhjpheqnecuggftrfgrthhtvghrnhepffdvueelffevke duhfetjeduffeghfettdfguedtgfdvgfeufeduheevheevkeeknecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepohdqthgrkhgrshhhihesshgrkh grmhhotggthhhirdhjph X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 16 Mar 2024 22:40:54 -0400 (EDT) From: Takashi Sakamoto To: tiwai@suse.de Cc: alsa-devel@alsa-project.org Subject: [PATCH] ALSA: core: add kunitconfig Date: Sun, 17 Mar 2024 11:40:50 +0900 Message-ID: <20240317024050.588370-1-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: CDXATDOSPSQRY5725YV4VBLUT3Q7OTBI X-Message-ID-Hash: CDXATDOSPSQRY5725YV4VBLUT3Q7OTBI X-MailFrom: o-takashi@sakamocchi.jp X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: It is helpful to add .kunitconfig if we work with the tools provided by KUnit project. The file describes the series of kernel configurations to satisfy the dependency to build the target test. For example: $ ./tools/testing/kunit/kunit.py run --arch=arm64 --cross_compile=aarch64-linux-gnu- --kunitconfig=sound/core/ [11:35:13] Configuring KUnit Kernel ... Regenerating .config ... Populating config with: $ make ARCH=arm64 O=.kunit olddefconfig CROSS_COMPILE=aarch64-linux-gnu- [11:35:19] Building KUnit Kernel ... Populating config with: $ make ARCH=arm64 O=.kunit olddefconfig CROSS_COMPILE=aarch64-linux-gnu- Building with: $ make ARCH=arm64 O=.kunit --jobs=8 CROSS_COMPILE=aarch64-linux-gnu- [11:37:35] Starting KUnit Kernel (1/1)... [11:37:35] ============================================================ Running tests with: $ qemu-system-aarch64 -nodefaults -m 1024 -kernel .kunit/arch/arm64/boot/Image.gz -append 'kunit.enable=1 console=ttyAMA0 kunit_shutdown=reboot' -no-reboot -nographic -serial stdio -machine virt -cpu max,pauth-impdef=on [11:37:35] ============== sound-core-test (10 subtests) =============== [11:37:35] [PASSED] test_phys_format_size [11:37:35] [PASSED] test_format_width [11:37:35] [PASSED] test_format_endianness [11:37:35] [PASSED] test_format_signed [11:37:35] [PASSED] test_format_fill_silence [11:37:35] [PASSED] test_playback_avail [11:37:35] [PASSED] test_capture_avail [11:37:35] [PASSED] test_card_set_id [11:37:35] [PASSED] test_pcm_format_name [11:37:35] [PASSED] test_card_add_component [11:37:35] ================= [PASSED] sound-core-test ================= [11:37:35] ============================================================ [11:37:35] Testing complete. Ran 10 tests: passed: 10 [11:37:35] Elapsed time: 142.333s total, 5.617s configuring, 136.047s building, 0.630s running Signed-off-by: Takashi Sakamoto --- sound/core/.kunitconfig | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 sound/core/.kunitconfig diff --git a/sound/core/.kunitconfig b/sound/core/.kunitconfig new file mode 100644 index 000000000000..440f974ba0b7 --- /dev/null +++ b/sound/core/.kunitconfig @@ -0,0 +1,5 @@ +CONFIG_KUNIT=y +CONFIG_SOUND=y +CONFIG_SND=y +CONFIG_SND_PCM=y +CONFIG_SND_CORE_TEST=y