From 62758ace16e756050f15b81e66ee5ab3bdd062ab Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 19 Feb 2009 21:07:28 +0200 Subject: Improve testsuite * src/mail.c (mail_send_message): Fix diagnostics. (mail_stats): Bail out if admin_address is not defined. * tests/mailstats.at: New file. * tests/Makefile.am (TESTSUITE_AT): Add mailstats.at * tests/testsuite.at: Add mailstats.at * tests/etc/mailstats.rc: New file. * tests/etc/Makefile.am (EXTRA_DIST): Add missing files. * tests/etc/wydawca.rcin: Define admin-address, enforce newline at EOF. * tests/notify-upl.at, tests/upload-dry.at, tests/upload.at: Fix descriptions. --- tests/etc/Makefile.am | 8 +++++++- tests/etc/mailstats.rc | 42 ++++++++++++++++++++++++++++++++++++++++++ tests/etc/notify.rc | 16 ++++++++++++++++ tests/etc/wydawca.rcin | 20 +++++++++++++++++++- 4 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 tests/etc/mailstats.rc (limited to 'tests/etc') diff --git a/tests/etc/Makefile.am b/tests/etc/Makefile.am index 267beef..dd2ea5b 100644 --- a/tests/etc/Makefile.am +++ b/tests/etc/Makefile.am @@ -17,7 +17,13 @@ GPGFILES = secring.gpg pubring.gpg noinst_DATA = @WYDAWCA_GPGFILES@ -EXTRA_DIST = pubring.asc secring.asc wydawca.rcin +EXTRA_DIST = \ + pubring.asc\ + secring.asc\ + wydawca.rcin\ + notify.rc\ + nullmail\ + mailstats.rc GPG_FLAGS = --quiet --no-permission-warning --homedir . pubring.gpg secring.gpg: $(srcdir)/pubring.asc $(srcdir)/secring.asc diff --git a/tests/etc/mailstats.rc b/tests/etc/mailstats.rc new file mode 100644 index 0000000..febad11 --- /dev/null +++ b/tests/etc/mailstats.rc @@ -0,0 +1,42 @@ +# This file is part of Wydawca testsuite +# Copyright (C) 2009 Sergey Poznyakoff +# +# Wydawca is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# Wydawca is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Wydawca. If not, see . + +mail-statistics { + statistics all; + message <. + # Notify the user about successful uploads notify-event { event success; diff --git a/tests/etc/wydawca.rcin b/tests/etc/wydawca.rcin index f8a8ce4..452f7c9 100644 --- a/tests/etc/wydawca.rcin +++ b/tests/etc/wydawca.rcin @@ -1,3 +1,19 @@ +# This file is part of Wydawca testsuite +# Copyright (C) 2009 Sergey Poznyakoff +# +# Wydawca is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# Wydawca is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Wydawca. If not, see . + statistics all; umask 022; @@ -66,6 +82,8 @@ directory ftp://wydawca.test { archive none; } +admin-address "root@localhost"; from-address "wydawca-noreply@localhost"; -mailer "| @WD_CONFSRC@/nullmail @WD_DST@/mail.out -F ${sender} ${rcpt}"; \ No newline at end of file +mailer "| @WD_CONFSRC@/nullmail @WD_DST@/mail.out -F ${sender} ${rcpt}"; + -- cgit v1.2.1