Skip to content
Snippets Groups Projects
Commit 632ffdc2 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

Testsuite: added execution tests for core actions (to find segfaults).

parent f6d0011c
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,11 @@ TESTSUITE_BIN = $(top_srcdir)/src/testsuite/testsuite
test_cases = \
tests/testsuite.svtest\
tests/control-structures.svtest \
tests/compile/compile.svtest \
tests/compile/examples.svtest \
tests/compile/errors.svtest \
tests/execute/errors.svtest \
tests/execute/actions.svtest \
tests/exists.svtest \
tests/header.svtest \
tests/address.svtest \
......@@ -53,11 +58,7 @@ test_cases = \
tests/extensions/subaddress/basic.svtest \
tests/extensions/subaddress/rfc.svtest \
tests/extensions/vacation/errors.svtest \
tests/extensions/vacation/execute.svtest \
tests/compile/compile.svtest \
tests/compile/examples.svtest \
tests/compile/errors.svtest \
tests/execute/errors.svtest
tests/extensions/vacation/execute.svtest
$(test_cases):
@$(TESTSUITE_BIN) $@
......
require "vnd.dovecot.testsuite";
test_set "message" text:
To: nico@vestingbar.nl
From: stephan@rename-it.nl
Subject: Test
Test.
.
;
test "Fileinto" {
if not test_compile "actions/fileinto.sieve" {
test_fail "compile failed";
}
if not test_execute {
test_fail "execute failed";
}
}
test "Redirect" {
if not test_compile "actions/redirect.sieve" {
test_fail "compile failed";
}
if not test_execute {
test_fail "execute failed";
}
}
File moved
File moved
require "vnd.dovecot.testsuite";
test_set "message" text:
To: nico@vestingbar.nl
From: stephan@rename-it.nl
Subject: Test
Test.
.
;
test "Execute" {
if not test_compile "execute/basic.sieve" {
test_fail "compile failed";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.