Preload plugins configured in tests
authorMartin Willi <martin@revosec.ch>
Tue, 23 Nov 2010 09:58:39 +0000 (10:58 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 5 Jan 2011 15:45:49 +0000 (16:45 +0100)
src/conftest/conftest.c

index f18ad7e..304cacf 100644 (file)
@@ -384,6 +384,11 @@ int main(int argc, char *argv[])
        {
                return 1;
        }
+       if (!lib->plugins->load(lib->plugins, NULL,
+                       conftest->test->get_str(conftest->test, "preload", "")))
+       {
+               return 1;
+       }
        if (!charon->initialize(charon))
        {
                return 1;