Commit 92f21026 authored by Laurent Montel's avatar Laurent Montel 😁

Add mroe autotests

parent 3180a14d
require "envelope";
require "subaddress";
require "fileinto";
#SCRIPTNAME: Script part 0
# In this example the same user account receives mail for both
# "ken@example.com" and "postmaster@example.com"
# File all messages to postmaster into a single mailbox,
# ignoring the :detail part.
if envelope :user :is "to" "postmaster"
{
fileinto "inbox.postmaster";
stop;
}
\ No newline at end of file
require ["envelope", "subaddress", "fileinto"];
# In this example the same user account receives mail for both
# "ken@example.com" and "postmaster@example.com"
# File all messages to postmaster into a single mailbox,
# ignoring the :detail part.
if envelope :user "to" "postmaster" {
fileinto "inbox.postmaster";
stop;
}
......@@ -93,7 +93,6 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts()
QEXPECT_FAIL("regexp", "Expected failure on regexp file. Problem with header + comparator", Continue);
QEXPECT_FAIL("test-current-date", "Expected failure on current-date file. We depend against current date", Continue);
QEXPECT_FAIL("test-date", "Expected failure on date file. We depend against current date", Continue);
QEXPECT_FAIL("delete-headers-with-index", "Expected failure on delete-headers-with-index file. We depend against \"index\" feature", Continue);
QEXPECT_FAIL("foreverypart", "Expected failure on foreverypart file. A lot of parsing errors.", Continue);
QCOMPARE(proc.exitCode(), 0);
......@@ -174,6 +173,7 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts_data()
QTest::newRow("foreverypart") << QStringLiteral("foreverypart") << true << true;
QTest::newRow("test-foreverypart-complex") << QStringLiteral("test-foreverypart-complex") << false << true;
QTest::newRow("test-envelop-subadress") << QStringLiteral("test-envelop-subadress") << false << true;
}
QTEST_MAIN(SieveEditorGraphicalModeWidgetTest)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment