All of lore.kernel.org
 help / color / mirror / Atom feed
* Where to put test code?
@ 2012-09-19 21:52 Daniel Santos
  2012-09-19 22:18 ` Frederic Weisbecker
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Santos @ 2012-09-19 21:52 UTC (permalink / raw)
  To: LKML

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



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

end of thread, other threads:[~2012-09-20 10:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-19 21:52 Where to put test code? Daniel Santos
2012-09-19 22:18 ` Frederic Weisbecker
2012-09-19 22:39   ` Daniel Santos
2012-09-20 10:51     ` Frederic Weisbecker

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.