diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-19 02:33:23 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-19 02:33:23 +0200 |
commit | 288ad3a8baf196011e791988b3251bbedb5f6cc2 (patch) | |
tree | 5215a3a561eec921df9a68c978f56fd0eb9f51ac /tests/notify-upl.at | |
parent | 8c4ab07dbf003ba07bec6e77fd803b9c54b91e52 (diff) | |
download | wydawca-288ad3a8baf196011e791988b3251bbedb5f6cc2.tar.gz wydawca-288ad3a8baf196011e791988b3251bbedb5f6cc2.tar.bz2 |
Lots of bugfixes + new testsuite
* configure.ac: Disable sendfile by default.
* src/builtin.c (builtin_run): Fix value returned of failure.
* src/config.c (target_args): Fix ordering
* src/meta.c (meta_expand_string): Fix handling of unexpanded macros.
* src/triplet.c (fill_user_data): Fix conditional.
* src/verify.c (make_default_meta): Fix trailing null.
* tests/.gitignore: Add source and dest
* tests/Makefile.am (EXTRA_DIST): Add dist.
(TESTSUITE_AT): Add new tests.
* tests/atlocal.in: Update.
* etc/.gitignore: Add wydawca.rc
* tests/etc/Makefile.am: Add wydawca.rcin
* tests/testsuite.at: Add new tests
* tests/dist/file: New file.
* tests/dist/file.directive.asc: New file.
* tests/dist/file.sig: New file.
* tests/etc/notify.rc: New file.
* tests/etc/nullmail: New file.
* tests/etc/wydawca.rcin: New file.
* tests/notify-upl.at: New file.
* tests/upload-dry.at: New file.
* tests/upload.at: New file.
Diffstat (limited to 'tests/notify-upl.at')
-rw-r--r-- | tests/notify-upl.at | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/tests/notify-upl.at b/tests/notify-upl.at new file mode 100644 index 0000000..bac8755 --- /dev/null +++ b/tests/notify-upl.at @@ -0,0 +1,96 @@ +# Checking wydawca version -*- Autotest -*- +# 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/>. + +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 +wydawca: [[INFO]] access violation attempts: 0 +wydawca: [[INFO]] complete triplets: 1 +wydawca: [[INFO]] incomplete triplets: 0 +wydawca: [[INFO]] bad triplets: 0 +wydawca: [[INFO]] expired triplets: 0 +wydawca: [[INFO]] triplet successes: 1 +wydawca: [[INFO]] files uploaded: 2 +wydawca: [[INFO]] files archived: 0 +wydawca: [[INFO]] symlinks created: 0 +wydawca: [[INFO]] symlinks removed: 0 +]) + +AT_DATA([outtmpl], +[-F wydawca-noreply@localhost proj-owner@localhost +========= +To: "Project Admin" <proj-owner@localhost> +Subject: Upload of proj successful +X-Mailer: AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) + +Wydawca Test User (@USER@@localhost) successfully uploaded files +for proj to ftp://wydawca.test/proj. Files uploaded: + +listing of file +listing of file.sig + +Regards, +Wydawca +The Project Submission Robot +-F wydawca-noreply@localhost @USER@@localhost +========= +To: "Wydawca Test User" <@USER@@localhost> +Subject: Upload of proj successful +X-Mailer: AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) + +Upload of proj to ftp://wydawca.test/proj finished successfully. +Files uploaded: + +listing of file +listing of file.sig + +Regards, +Wydawca +The Project Submission Robot +]) + +AT_DATA([ls.sin], +[s,^-[[rwx-]]\{9\} @USER@.*file$,listing of file, +s,^-[[rwx-]]\{9\} @USER@.*file.sig$,listing of file.sig, +]) + +AT_CHECK([ +wydawca_init_testdirs +wydawca_config wydawca.rc +cat $WD_CONFSRC/notify.rc >> wydawca.rc +wydawca_upload file file.directive.asc file.sig + +wydawca_expandmeta errtmpl experr +wydawca_expandmeta outtmpl expout +wydawca_expandmeta ls.sin ls.sed + +wydawca --no-preproc -c wydawca.rc || exit $? +wydawca_cmp proj file file.sig +cat $WD_DST/mail.out | sed -f ls.sed +], +[0], +[expout], +[experr]) + +wydawca_clean_testdirs + +AT_CLEANUP |