summaryrefslogtreecommitdiff
path: root/doc/testing.txt
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-02-18 18:16:40 (GMT)
committerMarius Kintel <marius@kintel.net>2012-02-18 18:16:40 (GMT)
commitcd0218d9aa665db78a0f74f6a95f29b68100494e (patch)
tree52c0d9b30fbb4c145f0717d9371889ed52ebc997 /doc/testing.txt
parent5606f457c3c4ba5dfdeb745f2c1386413e3b0b5e (diff)
Added note about adding examples
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