1
require "vnd.dovecot.testsuite";
8
test "Included Optional" {
9
include :optional "optional-1";
10
include :optional "optional-2";
12
if not string "${result}" " ONE TWO" {
13
test_fail "unexpected result value: ${result}";
17
include :optional "optional-3";
19
if not string "${result}" " ONE TWO" {
20
test_fail "unexpected result value after missing script: ${result}";
25
test "Included Optional - Binary" {
26
if not test_script_compile "execute/optional.sieve" {
27
test_fail "failed to compile sieve script";
30
test_binary_save "optional";
31
test_binary_load "optional";
33
if not test_script_run {
34
test_fail "failed to execute sieve script";
37
if not string "${result}" " ONE TWO" {
38
test_fail "unexpected result value: ${result}";