summaryrefslogtreecommitdiffabout
path: root/tests
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-23 22:49:40 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2009-02-23 22:57:16 (GMT)
commit4213ec5ef9695aa504938c0e764ba9a4f08921b2 (patch) (side-by-side diff)
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') (more/less context) (ignore whitespace changes)
-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
@@ -76,7 +76,8 @@ access-method gpg-key {
"-----END PGP PUBLIC KEY BLOCK-----\n");
}
-spool ftp://wydawca.test {
+spool test {
+ url ftp://wydawca.test;
source "@WD_SRC@";
destination "@WD_DST@";
archive none;
diff --git a/tests/mailstats.at b/tests/mailstats.at
index b26c832..ff16f2a 100644
--- a/tests/mailstats.at
+++ b/tests/mailstats.at
@@ -19,7 +19,6 @@ AT_SETUP([Simple upload statistics])
AT_DATA([errtmpl],
[wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) started
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
wydawca: [[INFO]] warnings: 0
wydawca: [[INFO]] bad signatures: 0
@@ -33,6 +32,7 @@ wydawca: [[INFO]] files uploaded: 2
wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
+wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
AT_DATA([expout],
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
@@ -19,7 +19,6 @@ AT_SETUP([Simple upload and notification])
AT_DATA([errtmpl],
[wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) started
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
wydawca: [[INFO]] warnings: 0
wydawca: [[INFO]] bad signatures: 0
@@ -33,6 +32,7 @@ wydawca: [[INFO]] files uploaded: 2
wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
+wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
AT_DATA([outtmpl],
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
@@ -19,10 +19,10 @@ AT_SETUP([Dry-run upload])
AT_DATA([template],
[wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) started
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
wydawca: [[NOTICE]] Good signature from Wydawca (Testsuite) <bug-wydawca@gnu.org.ua>
wydawca: [[DEBUG]] file: directive file signature OK
@@ -32,7 +32,6 @@ wydawca: [[NOTICE]] file.directive.asc: COMMENT: Gnupload for Wydawca testsuite
wydawca: [[DEBUG]] good detached signature for file
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
wydawca: [[INFO]] warnings: 0
wydawca: [[INFO]] bad signatures: 0
@@ -46,6 +45,7 @@ wydawca: [[INFO]] files uploaded: 2
wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
+wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
AT_CHECK([
diff --git a/tests/upload.at b/tests/upload.at
index 1f3696c..1968658 100644
--- a/tests/upload.at
+++ b/tests/upload.at
@@ -19,7 +19,6 @@ AT_SETUP([Simple upload])
AT_DATA([template],
[wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) started
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
wydawca: [[INFO]] warnings: 0
wydawca: [[INFO]] bad signatures: 0
@@ -33,6 +32,7 @@ wydawca: [[INFO]] files uploaded: 2
wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
+wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
AT_CHECK([

Return to:

Send suggestions and report system problems to the System administrator.