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
e6da21ff
Commit
e6da21ff
authored
May 17, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more test
parent
80c49171
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
src/ksieveui/autocreatescripts/autotests/data/test-current-date-custom-ref.siv
...tescripts/autotests/data/test-current-date-custom-ref.siv
+11
-0
src/ksieveui/autocreatescripts/autotests/data/test-current-date-custom.siv
...createscripts/autotests/data/test-current-date-custom.siv
+11
-0
src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
...escripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
+3
-0
No files found.
src/ksieveui/autocreatescripts/autotests/data/test-current-date-custom-ref.siv
0 → 100644
View file @
e6da21ff
require ["variables","date","fileinto","mailbox"];
# Extract date info
if currentdate :matches "year" "*" { set "year" "${1}"; }
if currentdate :matches "month" "*" { set "month" "${1}"; }
# Archive Dovecot mailing list items by year and month.
# Create folder when it does not exist.
if header :is "list-id" "dovecot.dovecot.org" {
fileinto :create "INBOX.Lists.${year}.${month}.dovecot";
}
src/ksieveui/autocreatescripts/autotests/data/test-current-date-custom.siv
0 → 100644
View file @
e6da21ff
require ["variables","date","fileinto","mailbox"];
# Extract date info
if currentdate :matches "year" "*" { set "year" "${1}"; }
if currentdate :matches "month" "*" { set "month" "${1}"; }
# Archive Dovecot mailing list items by year and month.
# Create folder when it does not exist.
if header :is "list-id" "dovecot.dovecot.org" {
fileinto :create "INBOX.Lists.${year}.${month}.dovecot";
}
src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
View file @
e6da21ff
...
...
@@ -95,6 +95,8 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts()
QEXPECT_FAIL
(
"test-current-date"
,
"Expected failure on current-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
);
QEXPECT_FAIL
(
"test-current-date-custom"
,
"Expected failure on test-current-date-custom file. CurrentDate + variable not implemented."
,
Continue
);
QCOMPARE
(
proc
.
exitCode
(),
0
);
}
}
...
...
@@ -174,6 +176,7 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts_data()
QTest
::
newRow
(
"test-foreverypart-complex"
)
<<
QStringLiteral
(
"test-foreverypart-complex"
)
<<
false
<<
true
;
QTest
::
newRow
(
"test-envelop-subadress"
)
<<
QStringLiteral
(
"test-envelop-subadress"
)
<<
false
<<
true
;
QTest
::
newRow
(
"test-current-date-custom"
)
<<
QStringLiteral
(
"test-current-date-custom"
)
<<
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