From patchwork Mon Sep 23 17:51:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 11157415 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 9F95414ED for ; Mon, 23 Sep 2019 17:52:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8746A20882 for ; Mon, 23 Sep 2019 17:52:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389799AbfIWRwI (ORCPT ); Mon, 23 Sep 2019 13:52:08 -0400 Received: from mga17.intel.com ([192.55.52.151]:1322 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389763AbfIWRwH (ORCPT ); Mon, 23 Sep 2019 13:52:07 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Sep 2019 10:52:07 -0700 X-IronPort-AV: E=Sophos;i="5.64,541,1559545200"; d="scan'208";a="193167541" Received: from iweiny-desk2.sc.intel.com (HELO localhost) ([10.3.52.157]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Sep 2019 10:52:06 -0700 From: ira.weiny@intel.com To: fstests@vger.kernel.org, Eryu Guan Cc: john.hubbard@gmail.com, Dave Chinner , Jan Kara , Jason Gunthorpe , dan.j.williams@intel.com, Jeff Layton , Ira Weiny Subject: [PATCH V2 00/16] Fix locktest and add lease testing to it Date: Mon, 23 Sep 2019 10:51:48 -0700 Message-Id: <20190923175204.2139-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 Add lease tests[1] to locktest because they share so much code. Make running of lease tests separate as an '-L' option. 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. Changes from V1: Create a new option '-L' to run lease testing Created 568 test script which shared common code with 131 Moved 2 patches earlier in the series [PATCH V2 09/16] src/locktest: Clean up error output [PATCH V2 10/16] src/locktest: Audit all debug output Added 3 patches [PATCH V2 11/16] src/locktest: Add run() function [PATCH V2 15/16] common/locktest: Add common locktest functions [PATCH V2 16/16] generic/568: Add lease testing Ira Weiny (16): 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: Clean up error output src/locktest: Audit all debug output src/locktest: Add run() function src/locktest: Add simple lease testing src/locktest: Add lease testing for basic signal reception src/locktest: Add truncate lease tests common/locktest: Add common locktest functions generic/568: Add lease testing common/locktest | 95 ++++ src/locktest.c | 999 +++++++++++++++++++++++++++--------------- tests/generic/131 | 54 +-- tests/generic/568 | 32 ++ tests/generic/568.out | 2 + tests/generic/group | 1 + 6 files changed, 786 insertions(+), 397 deletions(-) create mode 100644 common/locktest create mode 100755 tests/generic/568 create mode 100644 tests/generic/568.out