Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1774998ybg; Sat, 19 Oct 2019 02:14:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwk3XomhIS7Q5EcrvgCwVsoKuDn1t/2jKlJjXz8/0hPp0htVgt7ATTfMwttaacoWXpF/MM/ X-Received: by 2002:a50:fb84:: with SMTP id e4mr14108953edq.181.1571476472407; Sat, 19 Oct 2019 02:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571476472; cv=none; d=google.com; s=arc-20160816; b=BsZFMCx1Sxypn380hbllqG4RilovKG7+doCA5/i4o/TC2qUqBb1GKE7BKmDC8sWbJf hf0XBdQnop5CDuoF8ePmtypuR8LqTkNa8g69yMJpzztT3vDj/AjST13ofFmci9t411m/ zGHoywWcGgCwG3IK9aqi2go8jNo83YXY58a4TlvX0SMCj5g/OyqE8IcRlo+9c/0mRGhy oue7dfx1sHaFJgUGieTBC7UsCfWOJlnnPHTDqY7QbpfBrplCszdifS8bFWRmoVdwpYSA tdwboN5Nm4IJ/q3Nos1gX7/0BwGCE5uiC4ab4s9kXC74qvbxjp8+cUeAoQ6jRz8n5u7L g8YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=NuSCTuHLyeIME2hbrerbprSKbzeZs/hKIavOLJRoGRQ=; b=0zUtBe9gqmaYsaKVMx3Xa7vrOySsby110LjilGm133CtjVLpx2LdbKAb9PTU4po9jG IKjYivH+/J5RzpS6NUDLuxjCBEU4VkobTiZF9FBdvk1Ufrq22ZSPRyRHCi9jyt+UTrgP qonAD5UnVdkxVrLvrJJAJlVFtb5B+w3hNgUUzFYV7PCP+ZH5sUdmXb/sxFyhMeeeWN8k x0kxcmjMQ4+T0OqE9zD9Gm+kd06ryg7Cs1wGD5JHVh3HAJw4Zm41hoJRtWYONCO/XDYW GdmwDyBdOENddimf8gx8uII07tOVGZNbK4e2wxIz18CNZC5i/Jp5H7S/xSt2xfg18O5l vG4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=HtCk0A8C; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si303320ejq.72.2019.10.19.02.14.03; Sat, 19 Oct 2019 02:14:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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=@linuxfoundation.org header.s=google header.b=HtCk0A8C; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2443418AbfJRUYx (ORCPT + 99 others); Fri, 18 Oct 2019 16:24:53 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:43765 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2443423AbfJRUYq (ORCPT ); Fri, 18 Oct 2019 16:24:46 -0400 Received: by mail-io1-f67.google.com with SMTP id v2so8916029iob.10 for ; Fri, 18 Oct 2019 13:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=NuSCTuHLyeIME2hbrerbprSKbzeZs/hKIavOLJRoGRQ=; b=HtCk0A8CHBSeN/vkbSv/7Y2ykRo+7yexMnvlVxS0NDBJHW3+GiIXbExrf6RB731B6o a4ARGEbe+sW4LYEuHqWT5/bhoeDx+edmwvMwzONWe+5H5uxyGZOUEsi34JWviWu56Fe6 /JclB31wrotM6MfNpR/Wqa8lSJOJV7CUEFiJw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NuSCTuHLyeIME2hbrerbprSKbzeZs/hKIavOLJRoGRQ=; b=YcTJR08VjdF70CHJEuTu/KW6f5VIW5Cgnl0/NAfVxtwusP6KR4YfS0AOjgM/aHGUAZ rzVPImpWkXP2sYowLbN80npN0LJ1BMk6JFyK0ozd3+ymcTi1lHsVWfg1H8ugwd+fvAx/ yfhAm8qn9MTvTWOARutUoWsrlunC8E/E5JTQcaQuVByGf4GfXp3TRPbFEa3tPAx2iAFg dJaOZV0wXvKOmrvjX16Mg4e91GksdkVK1YiS1G+yvudtU000CtQjnFbufhVX2NNSctiU G59Ors0M6e4RCKlTb2bM/SQZqn2fF6nqYQNxPQvxhQsz4P9eczglfYnV9DggpU00cKPb 075A== X-Gm-Message-State: APjAAAUXvOPM73ttBpeSbDZcz43D4dlnQMonnAjXV02gJLf/toZO6m/u AQTCK+Ct/MxBnKPImgGEpc/PSQ== X-Received: by 2002:a5d:8185:: with SMTP id u5mr4375511ion.147.1571430285037; Fri, 18 Oct 2019 13:24:45 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id s24sm2019056iog.26.2019.10.18.13.24.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2019 13:24:44 -0700 (PDT) Subject: Re: [PATCH linux-kselftest/test v2] ext4: add kunit test for decoding extended timestamps To: "Theodore Y. Ts'o" , Tim.Bird@sony.com Cc: brendanhiggins@google.com, yzaikin@google.com, linux-kselftest@vger.kernel.org, linux-ext4@vger.kernel.org, adilger.kernel@dilger.ca, kunit-dev@googlegroups.com, Shuah Khan References: <20191011131902.GC16225@mit.edu> <1e6611e6-2fa6-6f7d-bc7f-0bc2243d9342@linuxfoundation.org> <20191017120833.GA25548@mit.edu> <20191017225637.GB6371@mit.edu> <20191018014027.GA21137@mit.edu> <20191018152746.GF21137@mit.edu> From: Shuah Khan Message-ID: Date: Fri, 18 Oct 2019 14:24:43 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191018152746.GF21137@mit.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 10/18/19 9:27 AM, Theodore Y. Ts'o wrote: > On Fri, Oct 18, 2019 at 02:40:50AM +0000, Tim.Bird@sony.com wrote: >> We're just talking past each other. My original e-mail was a rebuttal >> to your assertion that any test that was data-driven or non-deterministic >> was a fuzzer. I still believe that's just not the case. This is independent >> of the mechanics or speed of how the data is input. > > Apologies, I was still focused on the original context of this thread, > which was about suggested improvements to Iurii's ext4 kunit test, or > perhaps adding new features to Kunit. > >> I also conceded (multiple times) that externally data-driven >> techniques are probably more aptly applied to non-unit tests. I've >> heard your pitch about speed, and I'm sympathetic. My point is that >> I believe there is a place for data-driven tests. > As such what this current test does is data driven right. What we are discussing is how the data is supplied? In this case it is embedded. > I guess I would put it differently. The key goal is it should be > really easy for developers to run, create, and extend tests. > Data-driven tests is certainly one technique to make it easier to > extend tests, and indeed fs/ext4/inode-test.c is data-driven with the > goal to make it easier to add additional tests. > Again I would make the distinction that "how the data supplied". Embedded in the test vs. having the flexibility to accept external test data. From what I can tell, I didn't see anybody say that the embedded data is it and nothing more needed. Instead of adding the ability to read, the suggestion is for modifying the data. This gets real tedious and don't think anybody will take the time to do it. On the other hand, is there a few test data files to run with, it makes it easier to exercise different cases. > Having the data for the test be external is certainly one option, and > there will be cases where it will make sense. However, the overhead > in creating the parser for the data, and additional complexity > required to get the test data to be fed to the test program means that > that benefits need to be pretty large in order to balance the > additional costs of having an external data file, especially for > Kunit. > Let's explore it further before deciding whether is useful or not. > In terms of the abstract question, is there a place for data-driven > tests, I'm in complete agreement with you. I've used this many times > personally, especially when writing tests which are implemented in > terms of shell scripts. Examples of this include e2fsprogs's > regression test suite and xfstests. I don't consider that a terribly > interesting question though; I view that as on the same order as "is > the sky blue?" or "are apple pies yummy?" > > The more interesting, and more concrete question is whether there is a > place for external data-driven tests in Kunit, and there I am *much* > more skeptical. This is what I am interested in exploring. I do think it will add value. I can see some use-cases that could benefit from this. I am not suggesting that this should happen soon. This is something that can be looked into for the future. I have a few use-cases in mind that could benefit. btw. I am by no means suggesting to that this test going in is dependent on the external data. I already sent my Reviewed-by for the v6 and planning to pull it into linux-kselftest test for 5.5-rc1. thanks, -- Shuah