All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] nfs-utils: add testing infrastructure to nfs-utils (try #6)
@ 2010-01-08 14:55 Jeff Layton
  2010-01-08 14:56 ` [PATCH 1/4] nfs-utils: make private cookie to hex conversion a library routine Jeff Layton
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Jeff Layton @ 2010-01-08 14:55 UTC (permalink / raw)
  To: steved; +Cc: chuck.lever, bfields, linux-nfs

This is an updated patchset for adding test infrastructure to nfs-utils.
The main differences in this patchset are:

1) some bugfixes in the statdb_dump program

2) an extra check for root privs in the t0001 test. If the caller
doesn't have root privs, then the test is skipped

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 "nsm_client" 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 be fairly simple
to do.

Jeff Layton (4):
  nfs-utils: make private cookie to hex conversion a library routine
  nfs-utils: introduce new statd testing simulator
  nfs-utils: add statdb_dump utility
  nfs-utils: add initial tests for statd that run via "make check"

 Makefile.am                          |    2 +-
 configure.ac                         |    4 +-
 support/include/nsm.h                |    2 +
 support/nsm/file.c                   |   44 +++-
 tests/Makefile.am                    |   13 +
 tests/nsm_client/Makefile.am         |   45 ++++
 tests/nsm_client/README              |   12 +
 tests/nsm_client/nlm_sm_inter.x      |   43 +++
 tests/nsm_client/nsm_client.c        |  465 ++++++++++++++++++++++++++++++++++
 tests/statdb_dump.c                  |   99 +++++++
 tests/t0001-statd-basic-mon-unmon.sh |   58 +++++
 tests/test-lib.sh                    |   60 +++++
 12 files changed, 835 insertions(+), 12 deletions(-)
 create mode 100644 tests/Makefile.am
 create mode 100644 tests/nsm_client/Makefile.am
 create mode 100644 tests/nsm_client/README
 create mode 100644 tests/nsm_client/nlm_sm_inter.x
 create mode 100644 tests/nsm_client/nsm_client.c
 create mode 100644 tests/statdb_dump.c
 create mode 100755 tests/t0001-statd-basic-mon-unmon.sh
 create mode 100755 tests/test-lib.sh


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH 0/4] nfs-utils: add testing infrastructure to nfs-utils (try #5)
@ 2010-01-06 15:20 Jeff Layton
  2010-01-06 15:20 ` [PATCH 4/4] nfs-utils: add initial tests for statd that run via "make check" Jeff Layton
  0 siblings, 1 reply; 12+ messages in thread
From: Jeff Layton @ 2010-01-06 15:20 UTC (permalink / raw)
  To: steved; +Cc: linux-nfs, chuck.lever

This is an updated patchset for adding test infrastructure to nfs-utils.
The main differences in this patchset are mostly small cleanups and
changes response to comments from Chuck Lever.

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 "nsm_client" 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 be fairly simple
to do.

Jeff Layton (4):
  nfs-utils: make private cookie to hex conversion a library routine
  nfs-utils: introduce new statd testing simulator
  nfs-utils: add statdb_dump utility
  nfs-utils: add initial tests for statd that run via "make check"

 Makefile.am                          |    2 +-
 configure.ac                         |    4 +-
 support/include/nsm.h                |    2 +
 support/nsm/file.c                   |   44 +++-
 tests/Makefile.am                    |   13 +
 tests/nsm_client/Makefile.am         |   45 ++++
 tests/nsm_client/README              |   12 +
 tests/nsm_client/nlm_sm_inter.x      |   43 +++
 tests/nsm_client/nsm_client.c        |  465 ++++++++++++++++++++++++++++++++++
 tests/statdb_dump.c                  |   99 +++++++
 tests/t0001-statd-basic-mon-unmon.sh |   55 ++++
 tests/test-lib.sh                    |   48 ++++
 12 files changed, 820 insertions(+), 12 deletions(-)
 create mode 100644 tests/Makefile.am
 create mode 100644 tests/nsm_client/Makefile.am
 create mode 100644 tests/nsm_client/README
 create mode 100644 tests/nsm_client/nlm_sm_inter.x
 create mode 100644 tests/nsm_client/nsm_client.c
 create mode 100644 tests/statdb_dump.c
 create mode 100755 tests/t0001-statd-basic-mon-unmon.sh
 create mode 100755 tests/test-lib.sh


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH 0/4] nfs-utils: add testing infrastructure to nfs-utils (try #4)
@ 2010-01-06 12:53 Jeff Layton
  2010-01-06 12:53 ` [PATCH 4/4] nfs-utils: add initial tests for statd that run via "make check" Jeff Layton
  0 siblings, 1 reply; 12+ messages in thread
From: Jeff Layton @ 2010-01-06 12:53 UTC (permalink / raw)
  To: steved; +Cc: chuck.lever, linux-nfs

This is an updated patchset for adding test infrastructure to nfs-utils.
The main differences in this patchset are:

1) turned the routine to convert a private cookie to a hex string into
a libnsm.a routine.

2) made statdb_dump print out more fields. It now dumps out pretty
much everything.

3) have test-lib.sh set $srcdir if it isn't set and sanity check its
value. That should allow running tests outside of the automake test
harness.

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 "nsm_client" 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 be fairly simple
to do.

Jeff Layton (4):
  nfs-utils: make private cookie to hex conversion a library routine
  nfs-utils: introduce new statd testing simulator
  nfs-utils: add statdb_dump utility
  nfs-utils: add initial tests for statd that run via "make check"

 Makefile.am                          |    2 +-
 configure.ac                         |    4 +-
 support/include/nsm.h                |    2 +
 support/nsm/file.c                   |   42 +++-
 tests/Makefile.am                    |   13 +
 tests/nsm_client/Makefile.am         |   45 ++++
 tests/nsm_client/README              |   12 +
 tests/nsm_client/nlm_sm_inter.x      |   43 +++
 tests/nsm_client/nsm_client.c        |  465 ++++++++++++++++++++++++++++++++++
 tests/statdb_dump.c                  |   98 +++++++
 tests/t0001-statd-basic-mon-unmon.sh |   55 ++++
 tests/test-lib.sh                    |   48 ++++
 12 files changed, 818 insertions(+), 11 deletions(-)
 create mode 100644 tests/Makefile.am
 create mode 100644 tests/nsm_client/Makefile.am
 create mode 100644 tests/nsm_client/README
 create mode 100644 tests/nsm_client/nlm_sm_inter.x
 create mode 100644 tests/nsm_client/nsm_client.c
 create mode 100644 tests/statdb_dump.c
 create mode 100755 tests/t0001-statd-basic-mon-unmon.sh
 create mode 100755 tests/test-lib.sh


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

end of thread, other threads:[~2010-01-12 12:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-08 14:55 [PATCH 0/4] nfs-utils: add testing infrastructure to nfs-utils (try #6) Jeff Layton
2010-01-08 14:56 ` [PATCH 1/4] nfs-utils: make private cookie to hex conversion a library routine Jeff Layton
2010-01-08 14:56 ` [PATCH 2/4] nfs-utils: introduce new statd testing simulator Jeff Layton
2010-01-08 14:56 ` [PATCH 3/4] nfs-utils: add statdb_dump utility Jeff Layton
2010-01-08 14:56 ` [PATCH 4/4] nfs-utils: add initial tests for statd that run via "make check" Jeff Layton
2010-01-08 16:49   ` Chuck Lever
2010-01-08 16:56     ` Jeff Layton
     [not found]       ` <20100108115651.7a84a3c5-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2010-01-08 18:21         ` Chuck Lever
2010-01-08 16:59     ` J. Bruce Fields
2010-01-12 12:25 ` [PATCH 0/4] nfs-utils: add testing infrastructure to nfs-utils (try #6) Steve Dickson
  -- strict thread matches above, loose matches on Subject: below --
2010-01-06 15:20 [PATCH 0/4] nfs-utils: add testing infrastructure to nfs-utils (try #5) Jeff Layton
2010-01-06 15:20 ` [PATCH 4/4] nfs-utils: add initial tests for statd that run via "make check" Jeff Layton
2010-01-06 12:53 [PATCH 0/4] nfs-utils: add testing infrastructure to nfs-utils (try #4) Jeff Layton
2010-01-06 12:53 ` [PATCH 4/4] nfs-utils: add initial tests for statd that run via "make check" Jeff Layton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.