Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2985743ybh; Mon, 16 Mar 2020 13:32:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtlxmhCD/O4BlPTTyslmmVBQhsGWIh2UCEnog7KGfozWFiB2Uc+rZCySklEhm2kptxNigIT X-Received: by 2002:aca:df0b:: with SMTP id w11mr984821oig.68.1584390732057; Mon, 16 Mar 2020 13:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584390732; cv=none; d=google.com; s=arc-20160816; b=ALDbHpu2+YA48alXU86x7hNkiANY8WRleZQZ7ifL4svoCEPyF90G4UrqCIm98Azo6N rRNjbgI7P76w+V7ETuqugRVHvqzp4NZshJsZtQE8rGwL85hIu9MNL6+GL/E5fFluLmw2 yDU/LG1ndqcU0Qm0WowJFREGu/p2I5dfTQCg+laJk+PLDT0fj42Zi2522O1hdB6abDFd dk8UU5MTZm84UlnBZLY92uO1t58MwBstyt8t4VFlBlbOb4E2+Ffq16hKuBJljm7G1KCa EnBzhU3UpQ/5bsBkglzC/d88ECUZDch79RtjUZMqd0l/NLtQKArVsogsc/kBDo6ROrBp 7uVQ== 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=jSCfrC5MVAMPvsu9dcDXiK9/v75uuFCpGC851+yHoL4=; b=oCZXD587kcAc7foUcMYHkNJ0oyjcWCBYal2cuDTGzeSh+CbSxceCt8ySvMLhdhhGeM tEUzJBiLTgSVEoSUgXfOVVZQ1D0i0Nfpk0hRJp66fSk4XAjlGjEhYUrWlMuc7Sis3N98 zOMLhEXmNA3OSfTxbv3Vhd4zoHEB21SdYKNrLDjeMrYpeg2z/sKMx1O5Z72Q7++bepIG NadHg1RwVUcdsbmMGg43ypr9f7v+3X3/C3hUjFsdaK1nQwnyWpFfqvb9DEk8dmEp6YKX 7Setblu5YjkOS3FVHM5cRK3DzfC4sFgwjiNQm0/ehgDT/U8d7XXNFQx2+lBnuVH6qY+Y jeVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ho5A8cWk; 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 j9si506639oif.164.2020.03.16.13.31.59; Mon, 16 Mar 2020 13:32:12 -0700 (PDT) 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=Ho5A8cWk; 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 S1732575AbgCPUbL (ORCPT + 99 others); Mon, 16 Mar 2020 16:31:11 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43393 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732538AbgCPUbK (ORCPT ); Mon, 16 Mar 2020 16:31:10 -0400 Received: by mail-pg1-f193.google.com with SMTP id u12so10369412pgb.10 for ; Mon, 16 Mar 2020 13:31:09 -0700 (PDT) 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=jSCfrC5MVAMPvsu9dcDXiK9/v75uuFCpGC851+yHoL4=; b=Ho5A8cWkUYfvTKQPdBbUqDGnZNatk8dR3geecakaiYgWgs2iB75NRwMFkXjpF9UfyI 44iHGvholdldIETNBdpz5nllteDz78DwJHlzrxGA6jCy8tfzoXPpc3ns1Kw/W12voUyV R1cMf81FQGaE0dbbXHdtAc4Ht3UOPMSiY9MhLNVHDMXhbmeg3aizad2/fQwBO0iXQruF icofb2Oaxa+srP2vHozKm3e2boqYtvfLuFWr4SybFNTOFJfytt+PUe4jFZrY/8cNNpB/ RMoag02LTf+ogJ7Lr2RCvjpKdd8Z1Fls3xZzPO5SVt3OTDAhqrSrx6nLNFo2mmX0tZcf jyfw== 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=jSCfrC5MVAMPvsu9dcDXiK9/v75uuFCpGC851+yHoL4=; b=sUNvsP1LvZsuNC4o6VNM3s7o+XZ+s+sDl+NRNM0BZZtQQRSJp/m2c7OT5J1UTMmi9Z ypHTGSg+IhdkvOFz6A+pWj6DqH8qyWob+K/WMNbtiCOGHEmRDGCNjW7tDFAPfbB+1WMX TcRoFAU7iWmS2I6AJXRyXgPXZZfkyuI+KgFrf+UZW2lgQVdOLtkusyA1PDivaWqR+YLa TQEG78UbBNpYeSEwFzoW0BN/EwTkc51dYl7L8Mb/w96k3ehHIGSURphXT3ebFDO0+bkl CqNsLdmBDU07+0UwlNWuvrV/pJ0UD9ir5rQfIHDPNS7cWHZQPlaNjiY0nLC1ETpDZUnP YH0Q== X-Gm-Message-State: ANhLgQ2PldNPi2v5IVaOXVlYTwVkXF/aqLAxy06WXkK4tirydRqP3pJT E9JvmDe492LNU9f3G3dlPis9GQDcaOI62Px8llujLw== X-Received: by 2002:a63:dd06:: with SMTP id t6mr1491334pgg.384.1584390668326; Mon, 16 Mar 2020 13:31:08 -0700 (PDT) MIME-Version: 1.0 References: <20200316202125.15852-1-heidifahim@google.com> <20200316202125.15852-2-heidifahim@google.com> In-Reply-To: <20200316202125.15852-2-heidifahim@google.com> From: Brendan Higgins Date: Mon, 16 Mar 2020 13:30:57 -0700 Message-ID: Subject: Re: [PATCH v3 2/2] kunit: Run all KUnit tests through allyesconfig To: Heidi Fahim Cc: shuah , 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 Mon, Mar 16, 2020 at 1:21 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