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
817a90a6
Commit
817a90a6
authored
May 23, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more autotests
parent
ade03496
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
src/ksieveui/autocreatescripts/autotests/data/failed-if-in-if-ref.siv
.../autocreatescripts/autotests/data/failed-if-in-if-ref.siv
+7
-0
src/ksieveui/autocreatescripts/autotests/data/failed-if-in-if.siv
...veui/autocreatescripts/autotests/data/failed-if-in-if.siv
+7
-0
src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
...escripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
+3
-1
No files found.
src/ksieveui/autocreatescripts/autotests/data/failed-if-in-if-ref.siv
0 → 100644
View file @
817a90a6
if not envelope :contains "from" "corpdomain.com" {
if envelope :contains "to" "betty@corpdomain.com" {
reject "Betty is not allowed to receive Email from the outside. Please contact
sales@corpdomain.com";
stop;
}
}
src/ksieveui/autocreatescripts/autotests/data/failed-if-in-if.siv
0 → 100644
View file @
817a90a6
if not envelope :contains "from" "corpdomain.com" {
if envelope :contains "to" "betty@corpdomain.com" {
reject "Betty is not allowed to receive Email from the outside. Please contact
sales@corpdomain.com";
stop;
}
}
src/ksieveui/autocreatescripts/autotests/sieveeditorgraphicalmodewidgettest.cpp
View file @
817a90a6
...
...
@@ -97,7 +97,8 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts()
QEXPECT_FAIL
(
"foreverypart"
,
"Expected failure on foreverypart file. A lot of parsing errors."
,
Continue
);
QEXPECT_FAIL
(
"failed-1"
,
"Expected failure on failed-1 file. anyof + allof."
,
Continue
);
QEXPECT_FAIL
(
"failed-2"
,
"Expected failure on failed-2 file. Problem with body + text."
,
Continue
);
QEXPECT_FAIL
(
"failed-if-in-if"
,
"Expected failure on failed-if-in-if file. Problem with if in another if."
,
Continue
);
QCOMPARE
(
proc
.
exitCode
(),
0
);
}
}
...
...
@@ -182,6 +183,7 @@ void SieveEditorGraphicalModeWidgetTest::shouldLoadScripts_data()
//Failed
QTest
::
newRow
(
"failed-1"
)
<<
QStringLiteral
(
"failed-1"
)
<<
true
<<
true
;
QTest
::
newRow
(
"failed-2"
)
<<
QStringLiteral
(
"failed-2"
)
<<
true
<<
true
;
QTest
::
newRow
(
"failed-if-in-if"
)
<<
QStringLiteral
(
"failed-if-in-if"
)
<<
true
<<
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