summaryrefslogtreecommitdiffabout
path: root/tests/etc
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-19 19:07:28 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2009-02-19 19:07:28 (GMT)
commit62758ace16e756050f15b81e66ee5ab3bdd062ab (patch) (side-by-side diff)
tree5ca9f04bdf00988185e3df1ad2bd21854d27121a /tests/etc
parent288ad3a8baf196011e791988b3251bbedb5f6cc2 (diff)
downloadwydawca-62758ace16e756050f15b81e66ee5ab3bdd062ab.tar.gz
wydawca-62758ace16e756050f15b81e66ee5ab3bdd062ab.tar.bz2
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.
Diffstat (limited to 'tests/etc') (more/less context) (ignore whitespace changes)
-rw-r--r--tests/etc/Makefile.am8
-rw-r--r--tests/etc/mailstats.rc42
-rw-r--r--tests/etc/notify.rc16
-rw-r--r--tests/etc/wydawca.rcin20
4 files changed, 84 insertions, 2 deletions
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
@@ -19,3 +19,9 @@ 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
diff --git a/tests/etc/mailstats.rc b/tests/etc/mailstats.rc
new file mode 100644
index 0000000..febad11
--- a/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 <http://www.gnu.org/licenses/>.
+
+mail-statistics {
+ statistics all;
+ message <<EOT
+Subject: Wydawca stats
+
+This is to notify you that the recent run of wydawca
+caused the following results:
+
+errors ............................. ${stat:errors}
+warning ............................ ${stat:warnings}
+bad signatures ..................... ${stat:bad_signatures}
+access violation attempts .......... ${stat:access_violations}
+complete triplets .................. ${stat:complete_triplets}
+incomplete triplets ................ ${stat:incomplete_triplets}
+bad triplets ....................... ${stat:bad_triplets}
+expired triplets ................... ${stat:expired_triplets}
+triplet successes .................. ${stat:triplet_success}
+files uploaded ..................... ${stat:uploads}
+files archived ..................... ${stat:archives}
+symlinks created ................... ${stat:symlinks}
+symlinks removed ................... ${stat:rmsymlinks}
+
+Regards,
+Wydawca
+EOT;
+}
diff --git a/tests/etc/notify.rc b/tests/etc/notify.rc
index 00c6bda..8547b66 100644
--- a/tests/etc/notify.rc
+++ b/tests/etc/notify.rc
@@ -1 +1,17 @@
+# 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 <http://www.gnu.org/licenses/>.
+
# Notify the user about successful uploads
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 +1,17 @@
+# 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 <http://www.gnu.org/licenses/>.
+
statistics all;
@@ -68,4 +84,6 @@ directory ftp://wydawca.test {
+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}";
+

Return to:

Send suggestions and report system problems to the System administrator.