Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp603804pxa; Tue, 4 Aug 2020 13:14:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypGr2cpn24yT08FrKTyaiUKtcA+0/qlIyVxX5u4ikoUocmVYygJL/LIIOn6ukwCvnuPKR4 X-Received: by 2002:a17:906:3a51:: with SMTP id a17mr23166999ejf.433.1596572040329; Tue, 04 Aug 2020 13:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596572040; cv=none; d=google.com; s=arc-20160816; b=TZ/jZ8YW4fQP3yb6zbOLcSdju0bLHNSj5uQPtaLPcBwDChRIz8+7dNRwxMaRTbMF6x Awc3alU8+KcKBXDT5XYHiyTAgW6XJC8lPFg+LZebekYQPV5Z7L7qSmW8Zsclrf7F2eRZ 6MzCiCtmwZgTzkEG7rLdDC6XznF2qbuVE+M8KKIIYz+4Rw96xGs6lGlnYDlm68kc5iHe 4nNR8XWa29HX5qbVBAx4l/EM3KCXhzHW82P2k4MS70F2r7cUYN/Diw0o6kfcN4JCUv63 hF0M4GWVDAPf3baiGBT2hW+VQQPe+IqJCJqlO6Bth/j4fdoKdKmLgJk61JPphlyR17Gf F2iw== 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=X2mYBNPQlfulBGUiUF3OgK7lyVU+rDyXfhP91vVVFlg=; b=e+q40arwg1n1eldwc2dJpTuhR5v9n/oxNq7/dw8E11SuauBAaTRcHJu6dXkyzGHXc1 MbUAi2IKLLseVAhkKTp0+IJS21s58GYimfzL3C/7I5g4TaJQdZzXftSlMU+6YOI3IufA 5ue7DG8iAWEJQx2mYIGY2Z/El6hkFmq0DJR21wu2YU1awY+1Dbn4ryewHKfd+VaylUHT cTDzK6TuCxB3AbmJ2l+e4i/yhLy1Oh5AkKdGmt3kHHmwteA1Vb9du+VZJ5g1rJK33vLn wcqJN723jNzUklpGChGxC5c7KQsIkbOmMwypncE6ysRJe97+Ia4JJnI0+EALrXJqB0ob cwZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GJ9lUIQl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn4si3604473ejb.490.2020.08.04.13.13.36; Tue, 04 Aug 2020 13:14:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GJ9lUIQl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726752AbgHDULO (ORCPT + 99 others); Tue, 4 Aug 2020 16:11:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726534AbgHDULL (ORCPT ); Tue, 4 Aug 2020 16:11:11 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E8CAC061756 for ; Tue, 4 Aug 2020 13:11:11 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id kr4so3159007pjb.2 for ; Tue, 04 Aug 2020 13:11:11 -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=X2mYBNPQlfulBGUiUF3OgK7lyVU+rDyXfhP91vVVFlg=; b=GJ9lUIQlhroAI9Qx0p4xmfgldOZs2AAE7pAVHI5pia4oB28x7V5RY15F/VqXapy6iy +vXVYP7NjtUN1l+aR0ZQnHCWlDFuL18tWhTXS/PwSPqoVO3hBNUKm43IZoIJZ/06Ir+M zH6FXNGCHY+XcwW1EyKxk9ytILNMg0DKJ+cTJguzuIjlYGvDn4t/3GhtAD/UWaeBYO1v K2o4QW831rzwLDp53xjnW/cQLdUOy+++a/SctmAFLEQVtM2BJawtJ1+KySFzPmYfPrLg dFKXIFv4DQyGBXPiAZ2QRblRglMrrSdG39E+6Hcr+1HX6L6jjj+vcUfCC2N62nXow1AS wMaA== 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=X2mYBNPQlfulBGUiUF3OgK7lyVU+rDyXfhP91vVVFlg=; b=eNUFDo6tJlqAvwvL2KFMXrocxSs0niqe6tSxObpa/eCtvBaFmajQe+e2rFDI6yjbuk MU4brwxeN4OgVneg8kTPs3JED/p/64yp/p1uV4yBTbuIJyX5f1Lj5iVeffsaxjkyoM87 hQ9F1VS0HlYz+JrFZmS0z3+G4dXmeanvxxoIYH85oNTLEHozW4b3q7yjqfduOzEnpe9q T8gGopmAhv0mljdTyyPfpakMZjFgzRiZNLU14xcehs5yrq+hFHxMmPguHM/DzCKoAcPi VBDLOXzPZKYmGbOt0Zu13CEILZdGb8AttYZyjV9gVD9sFp4+i6KqSc/1GITPzWduj53E G06g== X-Gm-Message-State: AOAM532fqNOOMx4nRLevkKGcJD2VBJJiMPEWyvAb9sa5NQ1uW/pv7SEf BeB+PYAHiYL705byrZ1armioWpVTeRduNRCbn1bOmA== X-Received: by 2002:a17:90a:c593:: with SMTP id l19mr6141441pjt.20.1596571870728; Tue, 04 Aug 2020 13:11:10 -0700 (PDT) MIME-Version: 1.0 References: <20200626210917.358969-1-brendanhiggins@google.com> <20200626210917.358969-10-brendanhiggins@google.com> <202006261434.119AE33DBB@keescook> In-Reply-To: <202006261434.119AE33DBB@keescook> From: Brendan Higgins Date: Tue, 4 Aug 2020 13:10:59 -0700 Message-ID: Subject: Re: [PATCH v5 09/12] kunit: test: add test plan to KUnit TAP format To: Kees Cook Cc: Jeff Dike , Richard Weinberger , Anton Ivanov , Arnd Bergmann , Shuah Khan , Alan Maguire , Iurii Zaikin , David Gow , Andrew Morton , rppt@linux.ibm.com, Frank Rowand , catalin.marinas@arm.com, will@kernel.org, Michal Simek , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Chris Zankel , jcmvbkbc@gmail.com, Greg KH , Stephen Boyd , Logan Gunthorpe , Luis Chamberlain , linux-um , linux-arch@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Kernel Mailing List , "open list:DOCUMENTATION" , Linux ARM , linuxppc-dev@lists.ozlabs.org, linux-xtensa@linux-xtensa.org 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 Fri, Jun 26, 2020 at 2:35 PM Kees Cook wrote: > > On Fri, Jun 26, 2020 at 02:09:14PM -0700, Brendan Higgins wrote: > > TAP 14 allows an optional test plan to be emitted before the start of > > the start of testing[1]; this is valuable because it makes it possible > > for a test harness to detect whether the number of tests run matches the > > number of tests expected to be run, ensuring that no tests silently > > failed. > > > > Link[1]: https://github.com/isaacs/testanything.github.io/blob/tap14/tap-version-14-specification.md#the-plan > > Signed-off-by: Brendan Higgins > > Reviewed-by: Stephen Boyd > > Look good, except... > > > diff --git a/tools/testing/kunit/test_data/test_is_test_passed-all_passed.log b/tools/testing/kunit/test_data/test_is_test_passed-all_passed.log > > index 62ebc0288355c4b122ccc18ae2505f971efa57bc..bc0dc8fe35b760b1feb74ec419818dbfae1adb5c 100644 > > GIT binary patch > > delta 28 > > jcmbQmGoME|#4$jjEVZaOGe1wk(1goSPtRy09}gP > > > delta 23 > > ecmbQwGmD2W#4$jjEVZaOGe1wk&}5@94;uhhkp{*9 > > > > diff --git a/tools/testing/kunit/test_data/test_is_test_passed-crash.log b/tools/testing/kunit/test_data/test_is_test_passed-crash.log > > index 0b249870c8be417a5865bd40a24c8597bb7f5ab1..4d97f6708c4a5ad5bb2ac879e12afca6e816d83d 100644 > > GIT binary patch > > delta 15 > > WcmX>hepY;fFN>j`p3z318g2k9Uj*m? > > > > delta 10 > > RcmX>renNbL@5Z2NZU7lr1S$Xk > > > > diff --git a/tools/testing/kunit/test_data/test_is_test_passed-failure.log b/tools/testing/kunit/test_data/test_is_test_passed-failure.log > > index 9e89d32d5667a59d137f8adacf3a88fdb7f88baf..7a416497e3bec044eefc1535f7d84ee85703ba97 100644 > > GIT binary patch > > delta 28 > > jcmZ3&yOLKp#4$jjEVZaOGe1wk(1goSPtRy0-!wJ=eKrU$ > > > > delta 23 > > ecmZ3 > What is happening here?? Those logs appear as text to me. Why did git > freak out? That's because this is all test data; it's all plaintext, but out of necessity some of the test data is kind of munged up and causes checkpatch to complain, so Shuah asked us to mark it as binary since it isn't actually code and so checkpatch will stop flagging it.