/*++ /* NAME /* dict_sqlite_test 1t /* SUMMARY /* dict_sqlite unit test /* SYNOPSIS /* ./dict_sqlite_test /* DESCRIPTION /* dict_sqlite_test runs and logs each configured test, reports if /* a test is a PASS or FAIL, and returns an exit status of zero if /* all tests are a PASS. /* /* Each test creates a temporary test database and a corresponding /* Postfix sqlite client configuration file, both having unique /* names. Otherwise, each test is hermetic. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema porcupine.org
/*--*/
/* *TODO(wietse)Openthedatabasefile,prepareandexecutecommandsto *populatethedatabase,andclosethedatabase.
*/ if (commands) {
msg_fatal("commands are not yet supported");
}
}
/* *Teststoflagnon-recommendedqueryforms.Thesecreateanemptytest *database,andopenitwiththedict_sqliteclientwithoutqueryingit.
*/
{.label = "no_dynamic_payload",
.action = test_flag_non_recommended_query,
.settings = "query = select a from b where c = 5",
},
{.label = "dynamic_payload_inside_recommended_quotes",
.action = test_flag_non_recommended_query,
.settings = "query = select a from b where c = 'xx%syy'",
},
{.label = "dynamic_payload_without_quotes",
.action = test_flag_non_recommended_query,
.settings = "query = select s from b where c = xx%syy",
.exp_warning = "contains >%s< without the recommended '' quotes",
},
{.label = "payload_inside_double_quotes",
.action = test_flag_non_recommended_query,
.settings = "query = select s from b where c = \"xx%syy\"",
.exp_warning = "contains >%s< without the recommended '' quotes",
},
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.26Bemerkung:
(vorverarbeitet am 2026-08-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.