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 6B9FDC433F5 for ; Tue, 7 Dec 2021 22:47:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242347AbhLGWu6 (ORCPT ); Tue, 7 Dec 2021 17:50:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242337AbhLGWuz (ORCPT ); Tue, 7 Dec 2021 17:50:55 -0500 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A118FC061748 for ; Tue, 7 Dec 2021 14:47:24 -0800 (PST) Received: by mail-pg1-x531.google.com with SMTP id j11so398754pgs.2 for ; Tue, 07 Dec 2021 14:47:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V5/HWBzjQqRZTzFV5HrLo/i9yn5y0B3GMGZ2mf+dcNM=; b=I1u9+6yTQXf5pIIRr5J6vodUUA0vPrW9vbH2iNO99tB2FGTpLNP8QBgODKTN+lBCWA BXvW049+aMpxrrNkUIzZSHFR5vvGh5Gt1eliV7jz/tOqQjWRFtstbWTq7g3YCSyHTIJ3 BxicRAEq9Gqq1vp6EarPPCG6/zbHWheiPnQo/2/m+AsId2OFhtGtJ2O/yhCiD1h2BZ86 ThxF2VrrmzulzOVEs8zRuMWWWRQ5LuQfjbDbREwMwRQQs36PGJxGO8MTZBaEnqnNqWmP xB+TkQnd3fVBBWTtTf/nyvMsbxlZEzSbaEp6FwJNJEf7bG4XH5Js0vSXZlrWvSu6vlpQ OhsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V5/HWBzjQqRZTzFV5HrLo/i9yn5y0B3GMGZ2mf+dcNM=; b=67q80psjbC9mmAKEgFqI1rWYXR1HHZ+rv7cuPB2aZ0BaeNF8MddKonSY9BBdGo9uj9 C9Rsrxul/zMrVebYnjUpvHwUtyM7rjeelGtqZ5bShKwe2Anst5kE5ACi0qo+6o+2fY1i w07boPkTlnVpyEukaSiGpCp4XXT8WQBCkgQh+G0TvHgvHHa9gBKXTRO+y3LNS2sLNxGs tPlEHNMuivRm6YFYejsvDQs/NfC3bZgmJlE5GrMn5uS32wQfWsxz8Ym8NXk4MQTZ2Enx dbWa6PYWZGxQBpCNC6UsEmw+4Bcma3KtF7laXuwueX8dhEgQKmiL1MAMgyUhH4z7YDl+ tR9g== X-Gm-Message-State: AOAM532f9c5veGcK2twT6xm7ENxWeWZQQK0z8EbbrIL86Dw+fURE9bsN e5eYBf1XFFHXJIVHcLs5oU+1gvmUtKvOh2HxZ9f+Bw== X-Google-Smtp-Source: ABdhPJwrkum3hmHSV0oSCnXlFKjmbNvzZmpeJ51V+OnhWYeXNvDwUXEC2go397HMJNDJTTnl6qJzc1UW2NGqKo71Unc= X-Received: by 2002:a62:7ec4:0:b0:4a3:219b:7008 with SMTP id z187-20020a627ec4000000b004a3219b7008mr1986918pfc.3.1638917243861; Tue, 07 Dec 2021 14:47:23 -0800 (PST) MIME-Version: 1.0 References: <20211106013058.2621799-1-dlatypov@google.com> <20211106013058.2621799-2-dlatypov@google.com> In-Reply-To: <20211106013058.2621799-2-dlatypov@google.com> From: Brendan Higgins Date: Tue, 7 Dec 2021 17:47:12 -0500 Message-ID: Subject: Re: [PATCH 2/2] kunit: tool: add --kconfig_add to allow easily tweaking kunitconfigs To: Daniel Latypov Cc: davidgow@google.com, linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 5, 2021 at 9:31 PM 'Daniel Latypov' via KUnit Development wrote: > > E.g. run tests but with KASAN > $ ./tools/testing/kunit/kunit.py run --arch=x86_64 --kconfig_add=CONFIG_KASAN=y > > This also works with --kunitconfig > $ ./tools/testing/kunit/kunit.py run --arch=x86_64 --kunitconfig=fs/ext4 --kconfig_add=CONFIG_KASAN=y > > This flag is inspired by TuxMake's --kconfig-add, see > https://gitlab.com/Linaro/tuxmake#examples. > > Our version just uses "_" as the delimiter for consistency with > pre-existing flags like --build_dir, --make_options, --kernel_args, etc. > > Note: this does make it easier to run into a pre-existing edge case: > $ ./tools/testing/kunit/kunit.py run --arch=x86_64 --kconfig_add=CONFIG_KASAN=y > $ ./tools/testing/kunit/kunit.py run --arch=x86_64 > This second invocation ^ still has KASAN enabled! > > kunit.py won't call olddefconfig if our current .config is already a > superset of the provided kunitconfig. > > Signed-off-by: Daniel Latypov Reviewed-by: Brendan Higgins