Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3245849lfo; Sun, 22 May 2022 23:46:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzReEmdGg8H6JtuwMW6nD8TB/1u/aqScH1lANCXkSFaiXQd2Jrr5aDOO47yJN6y3Wg8YcoH X-Received: by 2002:a63:f545:0:b0:3c2:8620:af6b with SMTP id e5-20020a63f545000000b003c28620af6bmr18702639pgk.569.1653288376385; Sun, 22 May 2022 23:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653288376; cv=none; d=google.com; s=arc-20160816; b=TqvK/fG0g9uKnmpbOsF7lPM8iVb05B57HOqzKxDlEeYvep+nXNydQOOIovLCBDrHwq gmhKX1iLmHAalw4xRRn5N49RZwH2JEZWSdzfOzIW5iJOvkN3ICLZSMoiO6xHW6uxvgCE vs0WAU7gVhhr/ZWKYN01DL2FI8BGCi78F3IN82AxrBzbnpmn4DZ0+jEHpfihnwTMssR6 uvO+8HbABmn6csmHcPKyo5Z4gwLu0WWo7F5dCZytixvOS9dt6Rq8J7cZlSRGg9Q0VUwd Qo2RxkPHbj5LBzcwoSR5JLO1u2bs8zMy66SFE+gnUmF9RrAte+82ra9av1CbplkmbxVk iGoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=diEsMUAPJX4u0FJo9NkDwZ5Xz9iATJQSF3lAp/gYU1A=; b=thndLja7dN6FOkDEizg3Dqw4IFxSD8h0J8ESXfnSLWi/tRiyw0NCXNPhCPezmciPGu fqQ6G1JPaoSePGYXlHVmv98j4gs0tj7KHhn2WMQUw2wUc5PzAECN3okqOBWLD0yRh/Fp 5lK/DahjfDZ/cudeuSUZAO7KVVwRWrPetpevPSHW5y1sjLeq6JBwfakvRrnfmRSiotlG RsyBMrGxfeHeE2R7CtLOJ8XcoCXxdx7BwX3GGrAj+HW2W+tZuUQfGm+4q5Vbmd/Pt75L QauW9jjfE8t+ecDoDN2k9/5iDna1lFP4hAUvLvsmaVm/CD+qmLPbquO41surhBZcvM9J J+cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=I87RLclj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o17-20020a170902e29100b00159071eb8f6si7867119plc.502.2022.05.22.23.46.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:46:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=I87RLclj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 115151EC42; Sun, 22 May 2022 23:16:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352488AbiETSNl (ORCPT + 99 others); Fri, 20 May 2022 14:13:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352493AbiETSNj (ORCPT ); Fri, 20 May 2022 14:13:39 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91F7B18FF12 for ; Fri, 20 May 2022 11:13:32 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id g12so11788411edq.4 for ; Fri, 20 May 2022 11:13:32 -0700 (PDT) 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=diEsMUAPJX4u0FJo9NkDwZ5Xz9iATJQSF3lAp/gYU1A=; b=I87RLcljCH0RuSbiTrRQexejctdo+oMuIRy59YA+r+nR+yZwS2t6yeUqhQNO3I0sho 0kvV9fopy2diCllarPTabCkUVUGiHFwYWAYnpqsf7Pa7SmkSmgcM/rzj7catq+4TMWVq EOkLlq6rMWfkrLiGFfbgaoxEz78RbWy5Oc2a54iNQCB2Z21hIlbfiTzpkuWY21YUjOEi dmYO4mZ0+WM6qw5mmauUQf69pAkPy5b5D915wxqgN/EmALrVJq6ly76nBGi5VWw8gjcI 4O3Ns1t1LgkRbhOcQmhON3hCYwT5gZGIJh2HAja7zlFXEjHIUtl5AWU9yAa2BjipS9x3 BCDA== 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=diEsMUAPJX4u0FJo9NkDwZ5Xz9iATJQSF3lAp/gYU1A=; b=NBp8YRJn3kAIp9yaAST1pozT0WAk0p5LCFHO7x6eela9qgo5D89cJF0wr+8h6LxB7z wmsTzV3QS8OtAtywMVRRcPYJGwVn7L/Km+BiacbXZE3QOISjqx1mwlaW0ZMvmXhoxyIc Eo6/kw38gNOmuYym97OFkPE2MnkE2nbgn2J2gvZIoCko8sACH0Pd6mvvnbaDgMcp4Ce8 tQLIcl/uZXQG9xIi8zmHB2o+ozomThGAvmn+EEtHwddYSg3SBDBsIppuxG3Z6ZeQlNe5 X4ubEiFSCsTWCP6OdQ2SF2mzBP0CU8ZXU8aDgeng34jz/QvcbY4SnSjGjWTApK/47GYa mkyw== X-Gm-Message-State: AOAM532p0TNp0Mlq7b17nnHWHaN8MRMGJy98nRMfyMJDIdZKLnvyMAaV jNv3wP0icoQ761K8NP6zUwGHJKyqi1pdqeTun8mq3A== X-Received: by 2002:a05:6402:84a:b0:426:262d:967e with SMTP id b10-20020a056402084a00b00426262d967emr12527519edz.286.1653070410982; Fri, 20 May 2022 11:13:30 -0700 (PDT) MIME-Version: 1.0 References: <20220519164512.3180360-1-dlatypov@google.com> In-Reply-To: From: Daniel Latypov Date: Fri, 20 May 2022 11:13:19 -0700 Message-ID: Subject: Re: [PATCH] kunit: tool: refactor internal kconfig handling, allow overriding To: David Gow Cc: Brendan Higgins , Linux Kernel Mailing List , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Shuah Khan Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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-kernel@vger.kernel.org On Thu, May 19, 2022 at 11:13 PM David Gow wrote: > > I like this, but do think there are a few gaps this doesn't handle > properly. (Though exactly how we'd deal with them, I'm not yet sure.) > > In particular, it's not possible to disable a pair of options where > one depends on the other: disabling the parent option will result in > the child one not being present in the generated config. This will > conflict both with "=y" and "=n/not set": we'd need a way to _remove_ > a kconfig option for that to work. Do you have an example? Because what you describe sounds like how we want it to work, but I'm not sure if I'm misunderstanding the scenario you describe. I was considering the case mentioned in the commit description. I.e. we do --kunitconfig_add=CONFIG_KUNIT=n to the default kunitconfig. That gives us complaints about these CONFIG_KUNIT_EXAMPLE_TEST=y, CONFIG_KUNIT_TEST=y, CONFIG_KUNIT_ALL_TESTS=y options no longer being in the generated .config. And I think that's exactly how it _should_ work, as this flag is a low-level tool for tweaking individual options. IMO, anything complicated should be done by editing the kunitconfig/qemu_config files, in which case it's a lot less cumbersome to disable multiple options by just deleting them. Daniel