diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-10-26 08:55:07 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-10-26 09:10:10 +1000 |
commit | 6c59fad8c5d3700b350f298865f5a4be4a1251ca (patch) | |
tree | 2e3a1476b964d897faa40375ca23fc087f251bb8 /HACKING | |
parent | f994d78a859bf08254a0b02ac670d0ff9f8af2da (diff) |
Add HACKING document describing how to write test cases
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'HACKING')
-rw-r--r-- | HACKING | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,25 @@ +Writing test for the X.Org Integration Test (XIT) suite + +== googletest == +You should be familiar with googletest +http://code.google.com/p/googletest/wiki/Documentation + +This document well not detail googletest-only specific issues, it will focus +on those parts that are specific to XIT. + +== Directory layout == +Tests are divided by general category: +tests/input .... tests for specific input driver features or bugs +tests/video .... tests for specific video driver features or bugs +tests/server ... tests for server features or bugs +tests/lib ...... tests for library features or bugs + +Each directory has a number of binaries that group the tests further. e.g. +server/grab is a set of grab-related tests. Tests should go into existing +binaries where sensible, but tests for new logical features should add new +binaries. A test binary may have multiple source files. + +Ideally, each feature or behaviour group can be tested by running one +binary. + + |