prosody: add passthru tests

This commit is contained in:
Félix Baylac-Jacqué 2020-05-24 21:05:42 +02:00
parent 7dc2d5eb9f
commit ac9a44eff9
No known key found for this signature in database
GPG key ID: EFD315F31848DBA4

View file

@ -1,5 +1,6 @@
{ stdenv, fetchurl, lib, libidn, openssl, makeWrapper, fetchhg
, lua5, luasocket, luasec, luaexpat, luafilesystem, luabitop
, nixosTests
, withLibevent ? true, luaevent ? null
, withDBI ? true, luadbi ? null
# use withExtraLibs to add additional dependencies of community modules
@ -71,7 +72,13 @@ stdenv.mkDerivation rec {
--prefix LUA_CPATH ';' "$LUA_CPATH"
'';
passthru.communityModules = withCommunityModules;
passthru = {
communityModules = withCommunityModules;
tests = {
main = nixosTests.prosody;
mysql = nixosTests.prosodyMysql;
};
};
meta = {
description = "Open-source XMPP application server written in Lua";