testing methods

Chuck Robey chuckr at telenix.org
Fri Jul 4 18:40:38 PDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I need to see if there isn't some method to do testing for an input module.
Don't jump to conclusions here, hear me out.  I started this hegira (writing my
graphic tablet input driver) by writing a complete proof-of-concept thing, but
it used no X11 stuff at all, and it's output was just printed to stdout.  What
I'm looking at now, is some way to write a program, something that would just
contact the server, but not acting as an input module, so that I could test,
function by function, all of the things that I pick up from my reading.

Rhw functions that I'll be putting into it will all be destined finally for my
driver.  I won't force the same hierarchy, but I need to know that the config
and input fucntions work the way I think they do.  For my proof-of-concept, it
proved fairly direct to do something like this.

Understand, if there was any docs, I wouldn't probably need to do this, but I
haven't any experience at all with writing the Xorg input drivers, and I need to
have at least some sort of method to prove that my take on how a particular
function works is the same thing that Xorg thinks.

So, I'm after some sort of test program template.  If you have any sort of
template like this, so I know what's needed, don't need to neaten it up, just
point me at it and I'll see if  I can't figure it out.

Thanks for any help.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhu0RYACgkQz62J6PPcoOm/SQCfVMxx/MWLH6fvlhDXe+Jrj5Xo
OXwAn2IzTJgpyunwJN0c900r0CrLMgkQ
=T4nk
-----END PGP SIGNATURE-----



More information about the xorg mailing list