From patchwork Wed Sep 18 04:15:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 11149595 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E9A8E14ED for ; Wed, 18 Sep 2019 04:16:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C96A72067B for ; Wed, 18 Sep 2019 04:16:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726029AbfIREQD (ORCPT ); Wed, 18 Sep 2019 00:16:03 -0400 Received: from mga02.intel.com ([134.134.136.20]:48815 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbfIREQD (ORCPT ); Wed, 18 Sep 2019 00:16:03 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Sep 2019 21:16:02 -0700 X-IronPort-AV: E=Sophos;i="5.64,519,1559545200"; d="scan'208";a="198917875" Received: from iweiny-desk2.sc.intel.com (HELO localhost) ([10.3.52.157]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Sep 2019 21:16:01 -0700 From: ira.weiny@intel.com To: fstests@vger.kernel.org, Eryu Guan Cc: john.hubbard@gmail.com, Dave Chinner , Jason Gunthorpe , Jan Kara , dan.j.williams@intel.com, Jeff Layton , Ira Weiny Subject: [PATCH 00/13] Fix locktest and add lease testing to it Date: Tue, 17 Sep 2019 21:15:45 -0700 Message-Id: <20190918041558.2621-1-ira.weiny@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org From: Ira Weiny Rather than have a separate lease test, combine the previously proposed lease tests[1] directly to locktest because they share so much code. To make things cleaner update the lock test code and test script. This includes fixing a rather serious bug. Finally update the error output to help identify any steps which fail during testing. Ira [1] https://www.spinics.net/lists/fstests/msg12467.html Ira Weiny (13): src/locktest: Remove unnecessary sleep src/locktest: Remove OPEN macro src/locktest: Change command macro names src/locktest: Add get_cmd_str src/locktest.c: Clean up client command passing src/locktest.c: Fix return code if last test fails generic/131: Clean up pid variables generic/131: Save stderr for debugging src/locktest: Add simple lease testing src/locktest: Add lease testing for basic signal reception src/locktest: Add truncate lease tests src/locktest: Clean up error output src/locktest: Audit all debug output src/locktest.c | 957 ++++++++++++++++++++++++++++++---------------- tests/generic/131 | 72 ++-- 2 files changed, 666 insertions(+), 363 deletions(-) Reviewed-by: Jeff Layton