From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE78AC63797 for ; Thu, 22 Jul 2021 14:41:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A2EEB60FEE for ; Thu, 22 Jul 2021 14:41:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232434AbhGVOBK (ORCPT ); Thu, 22 Jul 2021 10:01:10 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:34346 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232427AbhGVOBK (ORCPT ); Thu, 22 Jul 2021 10:01:10 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 16MEfT9E009131 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Jul 2021 10:41:29 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 10B6315C37C0; Thu, 22 Jul 2021 10:41:29 -0400 (EDT) Date: Thu, 22 Jul 2021 10:41:29 -0400 From: "Theodore Ts'o" To: Dave Chinner Cc: Damien Le Moal , Qu Wenruo , Eryu Guan , Qu Wenruo , "fstests@vger.kernel.org" , "linux-btrfs@vger.kernel.org" Subject: Re: [PATCH RFC] fstests: allow running custom hooks Message-ID: References: <20210720064317.GC2031856@dread.disaster.area> <20210720075748.GJ60846@e18g06458.et15sqa> <3fd6494b-8f03-4d97-9d00-21343e0e8152@gmx.com> <6b7699a9-fc5e-32d9-78c5-9c0e3cf92895@gmx.com> <20210721011105.GA2112234@dread.disaster.area> <20210721232830.GC2112234@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210721232830.GC2112234@dread.disaster.area> Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Thu, Jul 22, 2021 at 09:28:30AM +1000, Dave Chinner wrote: > > I'm thinking that it is something relatively simple like this: > > fstests/tests/hooks > - directory containing library of hook scripts I'd suggest fstests/common/hooks instead, since the hook scripts aren't actually *tests* per so, but rather utility scripts, and common would be a better place for it, I think. > fstests/hooks/ > - directory containing symlinks to hook scripts This might be a good default, but it might be better if the location of the hook directory could be overridden via an environment variable. In some cases, instead of having run-time configuration inside the fstests directtory with .gitignore, it might be more convenient for it if were made available externally (for example, via a 9p file system in a case where tests are being run via KVM using a rootfs test image with qmeu's snapshot mode so the hook directory could be supplied from the host). - Ted