summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-10-26 08:55:07 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-10-26 09:10:10 +1000
commit6c59fad8c5d3700b350f298865f5a4be4a1251ca (patch)
tree2e3a1476b964d897faa40375ca23fc087f251bb8 /HACKING
parentf994d78a859bf08254a0b02ac670d0ff9f8af2da (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--HACKING25
1 files changed, 25 insertions, 0 deletions
diff --git a/HACKING b/HACKING
new file mode 100644
index 0000000..891c1d1
--- /dev/null
+++ b/HACKING
@@ -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.
+
+