public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] nfs-utils: add testing infrastructure to nfs-utils
@ 2009-12-16 19:40 Jeff Layton
  2009-12-16 19:40 ` [PATCH 1/2] nfs-utils: introduce new statd testing simulator Jeff Layton
  2009-12-16 19:40 ` [PATCH 2/2] nfs-utils: add initial tests for statd that run via "make check" Jeff Layton
  0 siblings, 2 replies; 8+ messages in thread
From: Jeff Layton @ 2009-12-16 19:40 UTC (permalink / raw)
  To: steved; +Cc: linux-nfs

This set is the same as the one I sent a month or so ago, with some
small changes to account for header file changes in Chuck's tree. This
patchset depends on the patches that add libnsm.a to nfs-utils.

This patchset is intended as a starting point for an automated test
suite for nfs-utils. The idea here is to start simply and add a suite of
tests that we can run via "make check" -- the standard automake method
for running tests.

Clearly there are limits to what we can test without a multi-host test
harness. My hope is that this should help keep us from breaking basic
functionality by allowing us to test it in a very simple fashion. At
some point in the future we should also consider how to best handle
multi-machine testing, but I see that as complimenting this code rather
than replacing it.

For this set, the focus is on testing statd, which is particularly
susceptible to subtle breakage. Problems with it are often not noticed
until lock recovery breaks, and that may greatly lag the actual
breakage.

To faciitate statd testing, I've added a "statdtest" program that can
serve as a synthetic statd client and an NLM simulator. It's very
loosely based on the old statd simulator code. That program is dependent
on some of Chuck Lever's recent statd patches -- notably the ones that
break out common NSM code into libnsm.a.

For this initial drop, I'm just adding a single test that tests mon and
unmon functionality with statd. Adding more tests should fairly simple
to do.

Jeff Layton (2):
  nfs-utils: introduce new statd testing simulator
  nfs-utils: add initial tests for statd that run via "make check"

 Makefile.am                          |    2 +-
 configure.ac                         |    4 +-
 tests/Makefile.am                    |    7 +
 tests/statdtest/Makefile.am          |   45 ++++
 tests/statdtest/README               |   12 +
 tests/statdtest/nlm_sm_inter.x       |   43 +++
 tests/statdtest/statdtest.c          |  464 ++++++++++++++++++++++++++++++++++
 tests/t0001-statd-basic-mon-unmon.sh |   55 ++++
 tests/test-lib.sh                    |   41 +++
 9 files changed, 671 insertions(+), 2 deletions(-)
 create mode 100644 tests/Makefile.am
 create mode 100644 tests/statdtest/Makefile.am
 create mode 100644 tests/statdtest/README
 create mode 100644 tests/statdtest/nlm_sm_inter.x
 create mode 100644 tests/statdtest/statdtest.c
 create mode 100755 tests/t0001-statd-basic-mon-unmon.sh
 create mode 100755 tests/test-lib.sh


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH 0/2] nfs-utils: add testing infrastructure to nfs-utils
@ 2009-10-26 12:52 Jeff Layton
  2009-10-26 12:52 ` [PATCH 2/2] nfs-utils: add initial tests for statd that run via "make check" Jeff Layton
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Layton @ 2009-10-26 12:52 UTC (permalink / raw)
  To: linux-nfs

This patchset is intended as a starting point for an automated test
suite for nfs-utils. The idea here is to start simply and add a suite of
tests that we can run via "make check" -- the standard automake method
for running tests.

Clearly there are limits to what we can test with out a multi-host test
harness, but my hope is that this should keep us from breaking basic
functionality by allowing us to test it in a very simple fashion. At
some point in the future we should also consider how to best handle
multi-machine testing, but I see that as complimenting this code rather
than replacing it.

For this set, the focus is on testing statd, which is particularly
susceptible to subtle breakage. Problems with it are often not noticed
until lock recovery breaks, and that may greatly lag the actual
breakage.

To faciitate statd testing, I've added a "statdtest" program that can
serve as a synthetic statd client and an NLM simulator. It's very
loosely based on the old statd simulator code. That program is dependent
on some of Chuck's recent statd patches -- notably the ones that break
out common NSM code into libnsm.a.

For this initial drop, I'm just adding a single test that tests
mon and unmon functionality with statd. Adding more tests shouldn't be
too hard, however.

At this point, I'm mostly interested in general feedback on the concept.
Does this seem like a reasonable starting point for automated nfs-utils

Jeff Layton (2):
  nfs-utils: introduce new statd testing simulator
  nfs-utils: add initial tests for statd that run via "make check"

 Makefile.am                          |    2 +-
 configure.ac                         |    4 +-
 tests/Makefile.am                    |    7 +
 tests/statdtest/Makefile.am          |   45 ++++
 tests/statdtest/README               |   12 +
 tests/statdtest/nlm_sm_inter.x       |   43 ++++
 tests/statdtest/statdtest.c          |  462 ++++++++++++++++++++++++++++++++++
 tests/t0001-statd-basic-mon-unmon.sh |   56 ++++
 tests/test-lib.sh                    |   41 +++
 9 files changed, 670 insertions(+), 2 deletions(-)
 create mode 100644 tests/Makefile.am
 create mode 100644 tests/statdtest/Makefile.am
 create mode 100644 tests/statdtest/README
 create mode 100644 tests/statdtest/nlm_sm_inter.x
 create mode 100644 tests/statdtest/statdtest.c
 create mode 100755 tests/t0001-statd-basic-mon-unmon.sh
 create mode 100755 tests/test-lib.sh


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-12-29 16:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-16 19:40 [PATCH 0/2] nfs-utils: add testing infrastructure to nfs-utils Jeff Layton
2009-12-16 19:40 ` [PATCH 1/2] nfs-utils: introduce new statd testing simulator Jeff Layton
2009-12-16 19:40 ` [PATCH 2/2] nfs-utils: add initial tests for statd that run via "make check" Jeff Layton
2009-12-24 13:27   ` Steve Dickson
     [not found]     ` <4B336C25.7000705-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2009-12-25  0:20       ` Jeff Layton
     [not found]         ` <20091224192007.217a9ed5-PC62bkCOHzGdMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2009-12-29 15:38           ` Chuck Lever
2009-12-29 16:09             ` Jeff Layton
  -- strict thread matches above, loose matches on Subject: below --
2009-10-26 12:52 [PATCH 0/2] nfs-utils: add testing infrastructure to nfs-utils Jeff Layton
2009-10-26 12:52 ` [PATCH 2/2] nfs-utils: add initial tests for statd that run via "make check" Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox