/* Copyright (c) 2018 Dovecot authors, see the included COPYING file */
#include "test-auth.h"
#ifdef BUILTIN_LUA
#include "istream.h"
#include "auth-settings.h"
#include "auth-request.h"
#include "db-lua.h"
void test_db_lua(void)
{
passdbs_init();
static const char *luascript =
"function auth_passdb_lookup(req)\n"
" req:log_debug(\"user \" .. req.user)\n"
" return dovecot.auth.PASSDB_RESULT_OK, req:var_expand(\"password=pass\")\n"
"end\n";
test_begin("auth db lua");
}
test_end();
}
#endif