aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-24 00:49:40 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-02-24 00:57:16 +0200
commit4213ec5ef9695aa504938c0e764ba9a4f08921b2 (patch)
tree88ac2b2eb01337f0924d687df38b2a163bc94e11 /tests
parent337a06f32fb530e0e0884fef2f5f630cca9911a1 (diff)
downloadwydawca-4213ec5ef9695aa504938c0e764ba9a4f08921b2.tar.gz
wydawca-4213ec5ef9695aa504938c0e764ba9a4f08921b2.tar.bz2
Initial implementation of daemon mode.
* gconf/gconf-gram.y (string_to_sockaddr_: Take struct gconf_sockaddr as the first argument. * gconf/gconf.h (struct gconf_sockaddr): New data type. * src/job.c, src/net.c, src/pidfile.c: New files. * src/Makefile.am (wydawca_SOURCES): Add job.c, net.c, pidfile.c * src/cmdline.opt: New options: --cron (change semantics), --force, --foreground, --single-process, --spool * src/wydawca.c: New daemon mode. * src/config.c: New statements: spool.alias, daemon, foreground, single-process, wakeup-interval, pidfile, listen * src/directive.c, src/diskio.c, src/gpg.c, src/mail.c, src/null.c, src/process.c, src/triplet.c, src/verify.c, src/vtab.c, src/wydawca.h: use static struct spool wherever feasible. * src/triplet.c: New meta-variable "spool" * tests/etc/wydawca.rcin: Update. * tests/upload-dry.at: Update.
Diffstat (limited to 'tests')
-rw-r--r--tests/etc/wydawca.rcin3
-rw-r--r--tests/mailstats.at2
-rw-r--r--tests/notify-upl.at2
-rw-r--r--tests/upload-dry.at10
-rw-r--r--tests/upload.at2
5 files changed, 10 insertions, 9 deletions
diff --git a/tests/etc/wydawca.rcin b/tests/etc/wydawca.rcin
index f897cf9..36ef7a2 100644
--- a/tests/etc/wydawca.rcin
+++ b/tests/etc/wydawca.rcin
@@ -78,3 +78,4 @@ access-method gpg-key {
-spool ftp://wydawca.test {
+spool test {
+ url ftp://wydawca.test;
source "@WD_SRC@";
diff --git a/tests/mailstats.at b/tests/mailstats.at
index b26c832..ff16f2a 100644
--- a/tests/mailstats.at
+++ b/tests/mailstats.at
@@ -21,3 +21,2 @@ AT_DATA([errtmpl],
wydawca: [[NOTICE]] file.directive.asc: COMMENT: Gnupload for Wydawca testsuite
-wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
wydawca: [[INFO]] errors: 0
@@ -35,2 +34,3 @@ wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
+wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
diff --git a/tests/notify-upl.at b/tests/notify-upl.at
index ca57846..9efe1d9 100644
--- a/tests/notify-upl.at
+++ b/tests/notify-upl.at
@@ -21,3 +21,2 @@ AT_DATA([errtmpl],
wydawca: [[NOTICE]] file.directive.asc: COMMENT: Gnupload for Wydawca testsuite
-wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
wydawca: [[INFO]] errors: 0
@@ -35,2 +34,3 @@ wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
+wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
diff --git a/tests/upload-dry.at b/tests/upload-dry.at
index 306f6f3..6ea1f2d 100644
--- a/tests/upload-dry.at
+++ b/tests/upload-dry.at
@@ -21,6 +21,6 @@ AT_DATA([template],
wydawca: [[DEBUG]] @WD_SRC@ -> @WD_DST@
-wydawca: [[DEBUG]] file file is a distributive, root file
-wydawca: [[DEBUG]] file file.directive.asc is a signed upload directive, root file
-wydawca: [[DEBUG]] file file.sig is a detached signature, root file
-wydawca: [[DEBUG]] processing files for ftp://wydawca.test (@WD_DST@)
+wydawca: [[DEBUG]] found file file: distributive, stem: file
+wydawca: [[DEBUG]] found file file.directive.asc: signed upload directive, stem: file
+wydawca: [[DEBUG]] found file file.sig: detached signature, stem: file
+wydawca: [[DEBUG]] processing spool test (@WD_DST@)
wydawca: [[DEBUG]] FILE file, DIST=file, SIG=file.sig, DIRECTIVE=file.directive.asc
@@ -34,3 +34,2 @@ wydawca: [[DEBUG]] installing file to @WD_DST@/proj
wydawca: [[DEBUG]] installing file.sig to @WD_DST@/proj
-wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
wydawca: [[INFO]] errors: 0
@@ -48,2 +47,3 @@ wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
+wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
diff --git a/tests/upload.at b/tests/upload.at
index 1f3696c..1968658 100644
--- a/tests/upload.at
+++ b/tests/upload.at
@@ -21,3 +21,2 @@ AT_DATA([template],
wydawca: [[NOTICE]] file.directive.asc: COMMENT: Gnupload for Wydawca testsuite
-wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
wydawca: [[INFO]] errors: 0
@@ -35,2 +34,3 @@ wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
+wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])

Return to:

Send suggestions and report system problems to the System administrator.