Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1295066ybg; Fri, 18 Oct 2019 15:22:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8OWA0jNwRzTuOt+7VIGY+WLEls4Sa7JbDCH9/eIT05/SAqqgQRHirjQB84M88OZd7Ov0q X-Received: by 2002:aa7:d44d:: with SMTP id q13mr12560085edr.48.1571437365506; Fri, 18 Oct 2019 15:22:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571437365; cv=none; d=google.com; s=arc-20160816; b=cd5c/kbsX7Bb2LExC8lMmeeXTR20nRZexSMux01JuITFwkJFJPsJG2sGlhZLNzY45t LodkGQKj8ujYcKCY8DoC4BlAiE4HH9NiF/fVRnBCCQPv3miKZjMDYW6Ywhld46EsUMBg RaX6aah6hWoiVkEP0TZugX1UfR79oSlMX/QRvDe/OVaCnPoR4wERkJhaMRa5tzjtaQ2i yajOTIe/taHKK/MbHy0hn2AKrhS7jKJmKWt8UxA+oaXbJ+TUhz7Bn1kJmAySSwwFY6vD BkwR7MZ3+XgNsukC29w+GGAGdBpTCN+I1dYkHOrp5EYRw2G3ezTAgOOsJ0wc1l0rijFO Tccg== 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=C+0CPSRvyze3i0OAGF6jRt0Y0jvNCqBQ68QSaFSVjuI=; b=JnVSlE44eAkwQTAJB15RYbTiyzTXJPx306FeqDpjRMr45qMXDhuoqLi4t4a8ljUGph qKN5C8y+JZLfQ1n2AqlKNd4vCTit6+8HGQufM40KL0O6KcdUDWnvn0liL29PvrNJFQAr KGCajyzwWQ+LHct2CnJQyiaoazPZrVCtob7XVTcUKeZxs1RW4HuqPCnPphyFTWQ2KDu/ a4PrPmB8Po0vy287izxDW0XFaKgx+1baknnmwwyL1Im7wR0gPKBsQMzdP8/yxCpRMz/w TZRpqOcdlVUj3FwQCvvRlLBhVE0aWcNeBBR+lgqXzWDK+YepBBEqzxduve4kBSH/mU4a DYeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=GBAMPTBU; 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 b56si4896849edb.418.2019.10.18.15.22.21; Fri, 18 Oct 2019 15:22:45 -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=GBAMPTBU; 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 S2438343AbfJQXMk (ORCPT + 99 others); Thu, 17 Oct 2019 19:12:40 -0400 Received: from mail-il1-f196.google.com ([209.85.166.196]:34381 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2441544AbfJQXMk (ORCPT ); Thu, 17 Oct 2019 19:12:40 -0400 Received: by mail-il1-f196.google.com with SMTP id c12so3813196ilm.1 for ; Thu, 17 Oct 2019 16:12:39 -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=C+0CPSRvyze3i0OAGF6jRt0Y0jvNCqBQ68QSaFSVjuI=; b=GBAMPTBUAfZXEXI1lTBZvycDc1mCCN+6vmkXr3B8tr6pMw0VZj4013p22j40XQgYRX fpb67SZ/2Ogpm3FkoKlYuqdbN/eKlHx9GmoNczUCbzhchnzCXf0MwlFPLLrGX415b1eQ DmimY56OyDY61MB8fB7G8q+PBsYZtysxeUwAU= 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=C+0CPSRvyze3i0OAGF6jRt0Y0jvNCqBQ68QSaFSVjuI=; b=B+iMKOIKhGUQSRpwvSXXkPhNLWKcsZqFYUppztYU8KMJqtbVfqycZyQKY9Zuf0dbY4 BTc8bD3MYCM+6lCceheqdImZF0p92PKFetF1h9Q9ljO3w8bC3VBHmMPrivs2uYTO1okZ K6pVyj5Mool/y3bveT+KX6KTiwjYq2z35rnlAYZdCfEjqY+OAXzL42C3kOj8DV0wEPKF Ajqr9c0wpl4A3/6SA9kMRxE7RXZPr5Zjmrd1nnrk3SxmfxCOqU4PvTKeu0hXyqoBFKml 6UHj3jSUGZrKJN1bCYPkp1oq1pvpf+eelKDaEPssApYboGKtnBRzie6hghHxkzIwElRq RysQ== X-Gm-Message-State: APjAAAUlQiAdOCBN7tW7E9qf0YBs4KQz7VdwEsP+FKppeRbLdqECS3zw BWwJelUthcKHQGNfZpog+mafL4k73cNh/w== X-Received: by 2002:a92:5e4d:: with SMTP id s74mr6818458ilb.8.1571353958914; Thu, 17 Oct 2019 16:12:38 -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 c9sm1722506ilf.0.2019.10.17.16.12.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Oct 2019 16:12:38 -0700 (PDT) Subject: Re: [PATCH linux-kselftest/test v2] ext4: add kunit test for decoding extended timestamps To: Iurii Zaikin Cc: "Theodore Y. Ts'o" , Brendan Higgins , "open list:KERNEL SELFTEST FRAMEWORK" , linux-ext4@vger.kernel.org, adilger.kernel@dilger.ca, KUnit Development , "skh >> Shuah Khan" References: <20191010023931.230475-1-yzaikin@google.com> <2f2ea7b0-f683-1cdd-f3f2-ecdf44cb4a97@linuxfoundation.org> <20191011131902.GC16225@mit.edu> <1e6611e6-2fa6-6f7d-bc7f-0bc2243d9342@linuxfoundation.org> <20191017120833.GA25548@mit.edu> <957434b6-32cc-487f-f48e-f9c4416b3f60@linuxfoundation.org> From: Shuah Khan Message-ID: <40073fc9-1de1-9253-e2f9-9cf9ee4308d4@linuxfoundation.org> Date: Thu, 17 Oct 2019 17:12:36 -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: 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/17/19 5:07 PM, Iurii Zaikin wrote: >> Having the ability to take test data doesn't make it non-deterministic >> though. It just means that if user wants to test with a different set >> of data, there is no need to recompile the test. This could be helpful >> to test cases the test write didn't think about. >> > Again, unit tests are not meant to be babysat. They are intended to become > a part of the codebase and be run against every proposed change to ensure > the change doesn't break anything. > The whole process is supposed to be fully automated. > Imagine a KUnit test run for all tests that gets kicked off as soon as a patch > shows up in Patchwork and the maintainers getting the test run results. > If you can think of a test that the change author didn't for a new corner case, > then you as the maintainer ask the change author to add such test. > Or if some corner case comes up as a result of a bug then the new case is > submitted with the fix. > This is how unit testing is deployed in the larger software world. In the most > enlightened places a change will not be accepted unless it's accompanied by > the unit tests that offer good coverage for the possible inputs and code paths. > A change that breaks existing tests is either incorrect and has to be fixed or > the existing tests need to be updated for the behavior change. > Okay. I am asking for an option to override the test data. You didn't address that part. You can do all of this and allow users to supply another set of data. It doesn't gave to be one or the other. thanks, -- Shuah