Run the rawdog-plugins test suite, if present. v2.15rc2
authorAdam Sampson <ats@offog.org>
Fri, 12 Jul 2013 12:38:57 +0000 (12:38 +0000)
committerAdam Sampson <ats@offog.org>
Fri, 12 Jul 2013 12:38:57 +0000 (12:38 +0000)
NEWS
test-rawdog

diff --git a/NEWS b/NEWS
index 7706222ebceb57f01cd16798195c851b2a74e844..d97942a3fd258944c4b1762d5cfe28179ffc41c1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,8 @@ fetch), and generally tidy it up.
 Add test-rawdog, a simple test suite for rawdog with a built-in
 webserver. You should be able to run this from the rawdog source
 directory to check that much of rawdog is working correctly.
+(If you have the rawdog plugins repo in a subdirectory called
+"rawdog-plugins", it'll run tests on some of the plugins too.)
 
 Add a -V option, which is like -v but appends the verbose output to a
 file. This is mostly useful for testing.
index 2212bfe992edf8d3080bad6a66ba7ba9c26fcef0..9fdac242f110b9a9afbdf6670fba83e4404e1451 100644 (file)
@@ -1109,3 +1109,7 @@ add "feed 3h $httpurl/1.rss"
 add "feed 3h $httpurl/2.rss"
 rune "not in the config file" -r $httpurl/3.rss
 
+# Run the plugins test suite if it's there.
+if [ -e rawdog-plugins/test-plugins ]; then
+       . rawdog-plugins/test-plugins
+fi