aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-04-16 19:54:23 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-04-16 20:03:29 +0300
commita6cc8f5fcbcbf4c707149940de2ee9a33220c34d (patch)
tree3b0da6ae669a58779c9f40503191e6808a60e1b9 /tests
parent2cc5b63b5f90d2dd9b05f50ac28e379d417f1a8c (diff)
downloadwydawca-a6cc8f5fcbcbf4c707149940de2ee9a33220c34d.tar.gz
wydawca-a6cc8f5fcbcbf4c707149940de2ee9a33220c34d.tar.bz2
Rewrite as a multi-threaded program.
* NEWS: Update. * configure.ac: Version 3.1.95 * src/Makefile.am (wydawca_SOURCES): Remove job.c (LDADD): Link with libpthread. * src/job.c: Remove. * src/config.c: Remove the wakeup-interval statement. * src/net.c (wydawca_listener): Rewrite as a thread function wy_thr_listen. * src/timer.c (timer_get): Use thread-specific storage. (timer_get_count): Remove. * src/triplet.c: Rewrite using multi-thread model. * src/wydawca.c: Likewise. * src/wydawca.h: Update. * tests/check-fail.at: Update expected output. * tests/check-notify.at: Likewise. * tests/inotify-ok.at: Likewise. * tests/inotify-rmsymlink.at: Likewise. * tests/inotify-symlink.at: Likewise. * tests/inotify-unatt00.at: Likewise. * tests/inotify-unatt01.at: Likewise. * tests/upl12f.at: Likewise. * tests/upload-dry.at: Likewise. `
Diffstat (limited to 'tests')
-rw-r--r--tests/check-fail.at6
-rw-r--r--tests/check-notify.at6
-rw-r--r--tests/inotify-ok.at1
-rw-r--r--tests/inotify-rmsymlink.at1
-rw-r--r--tests/inotify-symlink.at1
-rw-r--r--tests/inotify-unatt00.at1
-rw-r--r--tests/inotify-unatt01.at1
-rw-r--r--tests/upl12f.at6
-rw-r--r--tests/upload-dry.at3
9 files changed, 14 insertions, 12 deletions
diff --git a/tests/check-fail.at b/tests/check-fail.at
index 268ca47..400e2e5 100644
--- a/tests/check-fail.at
+++ b/tests/check-fail.at
@@ -22,9 +22,6 @@ AT_DATA([experr],
wydawca: [[NOTICE]] file.directive.asc: VERSION: 1.1
wydawca: [[NOTICE]] file.directive.asc: COMMENT: Gnupload for Wydawca testsuite
wydawca: [[ERR]] spool check script for file@ckfail returned 1
-wydawca: [[NOTICE]] removing ./source/fail/file
-wydawca: [[NOTICE]] removing ./source/fail/file.sig
-wydawca: [[NOTICE]] removing ./source/fail/file.directive.asc
wydawca: [[INFO]] errors: 1
wydawca: [[INFO]] warnings: 0
wydawca: [[INFO]] bad signatures: 0
@@ -39,6 +36,9 @@ wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
wydawca: [[INFO]] check failures: 1
+wydawca: [[NOTICE]] removing ./source/fail/file
+wydawca: [[NOTICE]] removing ./source/fail/file.sig
+wydawca: [[NOTICE]] removing ./source/fail/file.directive.asc
wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
diff --git a/tests/check-notify.at b/tests/check-notify.at
index 298ebd0..b064412 100644
--- a/tests/check-notify.at
+++ b/tests/check-notify.at
@@ -22,9 +22,6 @@ AT_DATA([experr],
wydawca: [[NOTICE]] file.directive.asc: VERSION: 1.1
wydawca: [[NOTICE]] file.directive.asc: COMMENT: Gnupload for Wydawca testsuite
wydawca: [[ERR]] spool check script for file@ckfail returned 1
-wydawca: [[NOTICE]] removing ./source/fail/file
-wydawca: [[NOTICE]] removing ./source/fail/file.sig
-wydawca: [[NOTICE]] removing ./source/fail/file.directive.asc
wydawca: [[INFO]] errors: 1
wydawca: [[INFO]] warnings: 0
wydawca: [[INFO]] bad signatures: 0
@@ -39,6 +36,9 @@ wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
wydawca: [[INFO]] check failures: 1
+wydawca: [[NOTICE]] removing ./source/fail/file
+wydawca: [[NOTICE]] removing ./source/fail/file.sig
+wydawca: [[NOTICE]] removing ./source/fail/file.directive.asc
wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
diff --git a/tests/inotify-ok.at b/tests/inotify-ok.at
index 5593225..bfe7301 100644
--- a/tests/inotify-ok.at
+++ b/tests/inotify-ok.at
@@ -35,6 +35,7 @@ wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
wydawca: [[INFO]] check failures: 0
+wydawca: [[NOTICE]] shutting down on signal "Terminated"
wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
diff --git a/tests/inotify-rmsymlink.at b/tests/inotify-rmsymlink.at
index fa806ac..67819ba 100644
--- a/tests/inotify-rmsymlink.at
+++ b/tests/inotify-rmsymlink.at
@@ -35,6 +35,7 @@ wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 2
wydawca: [[INFO]] check failures: 0
+wydawca: [[NOTICE]] shutting down on signal "Terminated"
wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
diff --git a/tests/inotify-symlink.at b/tests/inotify-symlink.at
index 409804b..dd690ee 100644
--- a/tests/inotify-symlink.at
+++ b/tests/inotify-symlink.at
@@ -35,6 +35,7 @@ wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 2
wydawca: [[INFO]] symlinks removed: 0
wydawca: [[INFO]] check failures: 0
+wydawca: [[NOTICE]] shutting down on signal "Terminated"
wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
diff --git a/tests/inotify-unatt00.at b/tests/inotify-unatt00.at
index 1b6dedd..aaba627 100644
--- a/tests/inotify-unatt00.at
+++ b/tests/inotify-unatt00.at
@@ -35,6 +35,7 @@ wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
wydawca: [[INFO]] check failures: 0
+wydawca: [[NOTICE]] shutting down on signal "Terminated"
wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
diff --git a/tests/inotify-unatt01.at b/tests/inotify-unatt01.at
index c8c6da6..b198a6e 100644
--- a/tests/inotify-unatt01.at
+++ b/tests/inotify-unatt01.at
@@ -35,6 +35,7 @@ wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
wydawca: [[INFO]] check failures: 0
+wydawca: [[NOTICE]] shutting down on signal "Terminated"
wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
diff --git a/tests/upl12f.at b/tests/upl12f.at
index 51d02e9..900b221 100644
--- a/tests/upl12f.at
+++ b/tests/upl12f.at
@@ -22,9 +22,6 @@ AT_DATA([experr],
wydawca: [[NOTICE]] file.directive.asc: VERSION: 1.2
wydawca: [[NOTICE]] file.directive.asc: COMMENT: Gnupload for Wydawca testsuite
wydawca: [[ERR]] refusing to upload file because it already exists and replace is not allowed
-wydawca: [[NOTICE]] removing ./source/test/file
-wydawca: [[NOTICE]] removing ./source/test/file.sig
-wydawca: [[NOTICE]] removing ./source/test/file.directive.asc
wydawca: [[INFO]] errors: 1
wydawca: [[INFO]] warnings: 0
wydawca: [[INFO]] bad signatures: 0
@@ -39,6 +36,9 @@ wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
wydawca: [[INFO]] check failures: 0
+wydawca: [[NOTICE]] removing ./source/test/file
+wydawca: [[NOTICE]] removing ./source/test/file.sig
+wydawca: [[NOTICE]] removing ./source/test/file.directive.asc
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 7a53e4f..805dc33 100644
--- a/tests/upload-dry.at
+++ b/tests/upload-dry.at
@@ -25,8 +25,6 @@ wydawca: [[DEBUG]] ./source/test -> ./dest
wydawca: [[DEBUG]] Good signature from Wydawca (Testsuite) <bug-wydawca@gnu.org.ua>
wydawca: [[DEBUG]] file: directive file signature OK
wydawca: [[NOTICE]] file.directive.asc: VERSION: 1.1
-wydawca: [[DEBUG]] scheduling job triplet(test,file)
-wydawca: [[DEBUG]] starting job: triplet(test,file)
wydawca: [[DEBUG]] processing triplet `file'
wydawca: [[NOTICE]] file.directive.asc: COMMENT: Gnupload for Wydawca testsuite
wydawca: [[DEBUG]] good detached signature for file
@@ -46,7 +44,6 @@ wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
wydawca: [[INFO]] check failures: 0
-wydawca: [[DEBUG]] removing job: triplet(test,file)
wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])

Return to:

Send suggestions and report system problems to the System administrator.