All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Santos <danielfsantos@att.net>
To: LKML <linux-kernel@vger.kernel.org>
Subject: Where to put test code?
Date: Wed, 19 Sep 2012 16:52:43 -0500	[thread overview]
Message-ID: <505A3EAB.2030002@att.net> (raw)

I'm putting the finishing touches on the generic red-black tree test
code, but I'm uncertain about where to place it exactly.

I haven't finished the test module just yet, but the idea is that the
tests can be run in userspace as well as kernelspace to make it easier
to test on multiple compilers.  It has some common sources files (used
by in both places) and then specific code for both user- and
kernel-space that I currently have as follows:

tools/testing/selftests/grbtree/       - common.{c,h}
tools/testing/selftests/grbtree/user   - user-space main.c, Makefile, etc.
tools/testing/selftests/grbtree/module - kernel-space grbtest.c,
Makefile, etc.

Would this be correct or should the common & module code go some place
else and then just have the user-space code under
tools/testing/selftests/grbtest?

Thanks
Daniel



             reply	other threads:[~2012-09-19 22:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-19 21:52 Daniel Santos [this message]
2012-09-19 22:18 ` Where to put test code? Frederic Weisbecker
2012-09-19 22:39   ` Daniel Santos
2012-09-20 10:51     ` Frederic Weisbecker

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=505A3EAB.2030002@att.net \
    --to=danielfsantos@att.net \
    --cc=daniel.santos@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 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.