Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libksieve
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
libksieve
Commits
92f21026
Commit
92f21026
authored
May 17, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mroe autotests
parent
3180a14d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
src/ksieveui/autocreatescripts/autotests/data/test-envelop-subadress-ref.siv
...eatescripts/autotests/data/test-envelop-subadress-ref.siv
+14
-0
src/ksieveui/autocreatescripts/autotests/data/test-envelop-subadress.siv
...tocreatescripts/autotests/data/test-envelop-subadress.siv
+11
-0
src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
...escripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
+1
-1
No files found.
src/ksieveui/autocreatescripts/autotests/data/test-envelop-subadress-ref.siv
0 → 100644
View file @
92f21026
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
src/ksieveui/autocreatescripts/autotests/data/test-envelop-subadress.siv
0 → 100644
View file @
92f21026
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;
}
src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
View file @
92f21026
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment