summaryrefslogtreecommitdiff
path: root/doc/testing.txt
diff options
context:
space:
mode:
authorAndrew Plumb <andrew@plumb.org>2012-02-19 00:08:06 (GMT)
committerAndrew Plumb <andrew@plumb.org>2012-02-19 00:08:06 (GMT)
commit65c3acf5e66428948b9bcaaff507e962494e3bc1 (patch)
treefbcd75032aed797bf6aadda5895d3f230a683110 /doc/testing.txt
parentbd5aac6f96ac7ecf3613fd81999bd82605925562 (diff)
parentcf52a2a1ef1a7af5ed07d3e4fce1ad430f1321ef (diff)
Merge remote-tracking branch 'upstream/master' into fonts_search_example
Diffstat (limited to 'doc/testing.txt')
-rw-r--r--doc/testing.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/testing.txt b/doc/testing.txt
index 542de5d..6990c2f 100644
--- a/doc/testing.txt
+++ b/doc/testing.txt
@@ -51,6 +51,20 @@ Adding a new regression test:
7) run the test normally and verify that it passes:
$ ctest -R mytest
+Adding a new example:
+---------------------
+
+This is almost the same as adding a new regression test:
+1) Create the example under examples/
+2) run the test with the environment variable TEST_GENERATE=1, e.g.:
+ $ TEST_GENERATE=1 ctest -C Examples -R exampleNNN
+ (this will generate a exampleNNN-expected.txt file which is used for regression testing)
+3) manually verify that the output is correct (tests/regression/<testapp>/exampleNNN.<suffix>)
+4) run the test normally and verify that it passes:
+ $ ctest -C Examples -R exampleNNN
+
+
+
Troubleshooting:
------------------------------
contact: Jan Huwald // Impressum