Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6115484ybf; Thu, 5 Mar 2020 13:27:49 -0800 (PST) X-Google-Smtp-Source: ADFU+vujgUBUuK6BfSh0oPRIgx5an0F8dac/NEGZ5FIuGxexUn6J/a1YMDMZOHOCiqjkNNZvus6x X-Received: by 2002:a9d:615d:: with SMTP id c29mr461830otk.100.1583443669776; Thu, 05 Mar 2020 13:27:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583443669; cv=none; d=google.com; s=arc-20160816; b=vQlpHuJj5OFeGW4mJC/vcNzTIzfWLeS1GJiF6ZMFby12ujjMBafWCSb6eVlMuPiNXH D8NFCYz85fbSlRWZM3XxzoDpBIJ+KHEZlDEa83+oOqBBsu1bUdW1cv6t0gL0Xf5oiGbr r67AcVWph0dKP0itjo+u4J5AE29NoY+cWl1Dy8JMAWLpf0rTEJdSevS1Yeyo09EixK6n /r3TKk+13Umz8LoHgWl/wHNU5uokDyRltqydvBbT+k7oRmIditY94gGcx0llzFkQ8E4C fc8Bu7EzhWgEmJ9jOWKBax7GlbRqYvkzxVgV67+jNfACxk4WNuUl8RjeIJlcqXe+nKIn lFIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FtiKzPpj8LFUymwSB7yTCNI/ZF3QVUV6m/8sRe74jM4=; b=ksfc6tNqaQ8MU5I3XD/BFUb/+LdqWFaA8jc+ssv+oPPuHrOSWRPK2OzCU+9IqrCwnQ osSdNaiIKAx03tlj5bmGJ+9Y88cWydy8XxSdnIrJpcPdFKUN7N5v2Ya02AzpM6Dyi+OT +zBRZFzAxEOYCQSNcI7DzIsWeXz0v4qiKuKQ9vun7qVwReiZb/HAoPgZC12kdphkosWa eHOou4G5C6rjaPjqvc6cdGWw2MarOZeEpcWkbL1iVEXsgQht8C/7gaE6QGRbyh1m171h fsZFfW/Oic+HEAZyBRCucRzPFde3wJY30i/RvIJzlfYKzqcvQAiqKIs+RuAsUfgrYiKb X/KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=oRBr4FLi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t5si114406otr.30.2020.03.05.13.27.37; Thu, 05 Mar 2020 13:27:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=oRBr4FLi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726243AbgCEV1G (ORCPT + 99 others); Thu, 5 Mar 2020 16:27:06 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:40223 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgCEV1G (ORCPT ); Thu, 5 Mar 2020 16:27:06 -0500 Received: by mail-pg1-f196.google.com with SMTP id t24so32205pgj.7 for ; Thu, 05 Mar 2020 13:27:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FtiKzPpj8LFUymwSB7yTCNI/ZF3QVUV6m/8sRe74jM4=; b=oRBr4FLijrduwoNUKzThW1pzbMbuel52u18sGML2FWtMFIppQsC5WrydR18VOc2DVW hPGyQlUvw2GvTRfe2Zd5SmqiARI1lYo9r0C2mchmdOKvUC+IO9X2QES5eu7CcSRdnkhs XpSaKYEA4NgV/zoDKF0l6wUjuqj567yZbzxbidkawyB5EvM9/vjsriViU0aaz0xzbOv2 TvyPuQsJEElz9CngC8iqddtlNanSmDUoNQC8TYVM0fodKKnirkZP3SlCxUS9XhR64ayR V+Q2T4DL5gx7NjaOTb0nqMm3a5XMg2TaF06BC+NLW9IPpcFXCCjN1selMaZgT5CLsBOM 4UgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FtiKzPpj8LFUymwSB7yTCNI/ZF3QVUV6m/8sRe74jM4=; b=mvHX+HYtgG5IoJ8kfSE3Z/vwSW1n+4iNrmgE0OSb0sEANFkNQ8HuObpAGIcmkrEgoJ DEjgaV86D1sNvYXkUGxkBc2ybMskWNh3ejOcJe5AJFKdtI0gVF+fnFICou2YOxUc6+Ew UzMtu/uZmsFXyd19o0LdinZLrmlZvp7saAdUGqSZW5juAC+7pKAnQTXZFVlFzOkqQ42h uRXyfHpjsVTpVb1vyDWoIPqmknbDke8O7V0jZrj//ipt9K5gjH7Aa/bILM+CfiAJ6UkW i8n9yVxQEJLETq2XbUFgdhOAhHPvaLIAmLswIvxY0Skg+HosyphSbUJ9gYEXiPep8nrS eoCQ== X-Gm-Message-State: ANhLgQ1xAvoscNG1qZ2l5OpXTsVhMm9K0nJkO0/m6c2mHYup+zhdKD5a 3eKBQT7ih2eRVDSr5FkyjMqZMcOioaSsD4iikwNA8A== X-Received: by 2002:a63:6cc6:: with SMTP id h189mr102259pgc.201.1583443625213; Thu, 05 Mar 2020 13:27:05 -0800 (PST) MIME-Version: 1.0 References: <20200305200409.239406-1-heidifahim@google.com> <20200305200409.239406-2-heidifahim@google.com> In-Reply-To: <20200305200409.239406-2-heidifahim@google.com> From: Brendan Higgins Date: Thu, 5 Mar 2020 13:26:54 -0800 Message-ID: Subject: Re: [PATCH v2 2/2] kunit: Run all KUnit tests through allyesconfig To: Heidi Fahim Cc: Linux Kernel Mailing List , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 5, 2020 at 12:04 PM Heidi Fahim wrote: > > Implemented the functionality to run all KUnit tests through kunit_tool > by specifying an --alltests flag, which builds UML with allyesconfig > enabled, and consequently runs every KUnit test. A new function was > added to kunit_kernel: make_allyesconfig. > Firstly, if --alltests is specified, kunit.py triggers build_um_kernel > which call make_allyesconfig. This function calls the make command, > disables the broken configs that would otherwise prevent UML from > building, then starts the kernel with all possible configurations > enabled. All stdout and stderr is sent to test.log and read from there > then fed through kunit_parser to parse the tests to the user. Also added > a signal_handler in case kunit is interrupted while running. > Tested: Run under different conditions such as testing with > --raw_output, testing program interrupt then immediately running kunit > again without --alltests and making sure to clean the console. > > Signed-off-by: Heidi Fahim Reviewed-by: Brendan Higgins Thanks!