From: Alexandru Copot <alex.mihai.c@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: netdev@vger.kernel.org, akpm@linux-foundation.org,
davem@davemloft.net, willemb@google.com, dborkman@redhat.com,
ebiederm@xmission.com, gorcunov@openvz.org, palewis@adobe.com,
edumazet@google.com, Alexandru Copot <alex.mihai.c@gmail.com>,
Daniel Baluta <dbaluta@ixiacom.com>
Subject: [PATCH 0/3 RFC v2] selftests: Basic framework for tests
Date: Thu, 25 Apr 2013 14:04:57 +0300 [thread overview]
Message-ID: <1366887900-24769-1-git-send-email-alex.mihai.c@gmail.com> (raw)
This series adds a generic test abstraction that can make
writing testcases easier. A generic_test structure is
used to define a test and its methods: prepare, run, cleanup.
This is a generic implementation so it was placed in selftests/lib.
The second patch updates the socket tests to use the
new framework and the third patch creates new tests
for [set/get]sockopt with some IPV6_* options.
Signed-of-by Alexandru Copot <alex.mihai.c@gmail.com>
Cc: Daniel Baluta <dbaluta@ixiacom.com>
Changes since v1:
- moved the implementation to selftests/lib
- use goto instead of directly returning
Alexandru Copot (3):
selftests: introduce testing abstractions
selftests/net: update socket test to use new testing framework
selftests/net: add socket options test with IPv6 testcases
tools/testing/selftests/Makefile | 3 +-
tools/testing/selftests/lib/Makefile | 14 ++
tools/testing/selftests/lib/selftests.c | 57 +++++++++
tools/testing/selftests/lib/selftests.h | 67 ++++++++++
tools/testing/selftests/net/Makefile | 17 ++-
tools/testing/selftests/net/run_netsocktests | 10 ++
tools/testing/selftests/net/socket.c | 108 +++++++++++-----
tools/testing/selftests/net/sockopt.c | 185 +++++++++++++++++++++++++++
8 files changed, 425 insertions(+), 36 deletions(-)
create mode 100644 tools/testing/selftests/lib/Makefile
create mode 100644 tools/testing/selftests/lib/selftests.c
create mode 100644 tools/testing/selftests/lib/selftests.h
create mode 100644 tools/testing/selftests/net/sockopt.c
--
1.8.2.1
next reply other threads:[~2013-04-25 11:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-25 11:04 Alexandru Copot [this message]
2013-04-25 11:04 ` [PATCH 1/3 RFC v2] selftests: introduce testing abstractions Alexandru Copot
2013-04-25 18:19 ` Daniel Borkmann
2013-04-26 8:39 ` Alexandru Copot
2013-04-25 11:04 ` [PATCH 2/3 RFC v2] selftests/net: update socket test to use new testing framework Alexandru Copot
2013-04-25 11:05 ` [PATCH 3/3 RFC v2] selftests/net: add socket options test with IPv6 testcases Alexandru Copot
2013-04-25 11:27 ` [PATCH 0/3 RFC v2] selftests: Basic framework for tests Daniel Borkmann
2013-04-25 11:36 ` Alexandru Copot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1366887900-24769-1-git-send-email-alex.mihai.c@gmail.com \
--to=alex.mihai.c@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=dbaluta@ixiacom.com \
--cc=dborkman@redhat.com \
--cc=ebiederm@xmission.com \
--cc=edumazet@google.com \
--cc=gorcunov@openvz.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=palewis@adobe.com \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).