summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sinksh/syntax_modules/sink_selftest.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/sinksh/syntax_modules/sink_selftest.cpp b/sinksh/syntax_modules/sink_selftest.cpp
index 8ad4f60..0609720 100644
--- a/sinksh/syntax_modules/sink_selftest.cpp
+++ b/sinksh/syntax_modules/sink_selftest.cpp
@@ -41,11 +41,6 @@ namespace SinkSelfTest
41 41
42bool selfTest(const QStringList &args_, State &state) 42bool selfTest(const QStringList &args_, State &state)
43{ 43{
44 if (args_.isEmpty()) {
45 state.printError(QObject::tr("Options: $type [--resource $resource] stresstest"));
46 return false;
47 }
48
49 using namespace Sink::ApplicationDomain; 44 using namespace Sink::ApplicationDomain;
50 auto options = SyntaxTree::parseOptions(args_); 45 auto options = SyntaxTree::parseOptions(args_);
51 if (options.positionalArguments.contains("stresstest")) { 46 if (options.positionalArguments.contains("stresstest")) {
@@ -136,6 +131,14 @@ bool selfTest(const QStringList &args_, State &state)
136 131
137 return true; 132 return true;
138 } 133 }
134
135 state.printLine("Looking for resource plugins:");
136 if (!Sink::ResourceFactory::load("sink.imap")) {
137 state.printLine("Error: Failed to load the imap resource", 1);
138 } else {
139 state.printLine("Success: Managed to load the imap resource", 1);
140 }
141
139 return false; 142 return false;
140} 143}
141 144