path: root/tests/
authorSergey Poznyakoff <>2010-01-02 11:22:20 (GMT)
committer Sergey Poznyakoff <>2010-01-02 11:22:20 (GMT)
commita510f517e1aff073e6b37a5fa9e8ed825de836af (patch) (side-by-side diff)
tree426c03127fadf2b4b5c505b8b6af645160120149 /tests/
parentc8b326ef70fbfc06483ae249219a1d4ab09c8bfe (diff)
Implement distribution tarball checking.
* src/config.c (event_args): New event "check-failure" (event_types): New event type ev_check_fail. (spool_kw,wydawca_kw): New keyword check-script. * src/directive.c (save_script) (stderr_redirector,run_check_script): New functions. (external_check): New function. (process_directives): Call external_check before actually moving the files. * src/gpg.c (homedir): Rename to temp_homedir, now global. * src/net.c (trim_crlf): Remove static qualifier. * src/triplet.c (hash_triplet_free): Free check_diag. (expand_triplet_full,expand_triplet_upload) (expand_triplet_sig,expand_triplet_directive): Rename to expand_triplet_ls_full,expand_triplet_ls_upload, expand_triplet_ls_sig,expand_triplet_ls_directive, correspondigly. (expand_check_diagn,expand_check_result) (expand_triplet_dist,expand_triplet_sig) (expand_triplet_dir): New functions. (triplet_meta): Renames: triplet:full => triplet:ls:full triplet:upload => triplet:ls:upload triplet:dist => triplet:ls:dist triplet:sig => triplet:ls:sig triplet:dir => triplet:ls:dir New keywords: triplet:dist, triplet:sig, triplet:dir, check:result, check:diagn. * src/wydawca.c (default_check_script): New global. (stat_name): New statistics counter "check failures". * src/wydawca.h (struct file_triplet): New members check_result, check_diag. (struct spool): New member check_script. (wydawca_stat): New value STAT_CHECK_FAIL. (notification_event): New value ev_check_fail. (default_check_script, temp_homedir): New externs. (concat_dir, copy_file, trim_crlf): New protos. * doc/wydawca.texi: Update. *, NEWS: Version 2.0.90 * etc/notify.rc: Update. * Update. * Update. * Update. * Update.
Diffstat (limited to 'tests/') (more/less context) (ignore whitespace changes)
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ b/tests/
index 78a2453..4bd9252 100644
--- a/tests/
+++ b/tests/
@@ -32,6 +32,7 @@ wydawca: [[INFO]] files uploaded: 2
wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 0
wydawca: [[INFO]] symlinks removed: 0
+wydawca: [[INFO]] check failures: 0

Return to:

Send suggestions and report system problems to the System administrator.