diff options
Diffstat (limited to 'tests/upl11.at')
-rw-r--r-- | tests/upl11.at | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/tests/upl11.at b/tests/upl11.at new file mode 100644 index 0000000..b5200b0 --- /dev/null +++ b/tests/upl11.at @@ -0,0 +1,63 @@ +# Check working uploads -*- Autotest -*- +# Copyright (C) 2009-2012 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([Implicit archivation (version 1.1)]) +AT_KEYWORDS([upl11]) + +AT_DATA([template], +[wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) started +wydawca: [[NOTICE]] file.directive.asc: VERSION: 1.1 +wydawca: [[NOTICE]] file.directive.asc: COMMENT: Gnupload for Wydawca testsuite +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: 2 +wydawca: [[INFO]] symlinks created: 0 +wydawca: [[INFO]] symlinks removed: 0 +wydawca: [[INFO]] check failures: 0 +wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished +]) + +AT_CHECK([ +wydawca_init_testdirs +wydawca_config wydawca.rc +destdir=$WD_DST/proj +test -d $destdir || $MKDIR_P -p $destdir +cp "$WD_DISTDIR/file" "$destdir" +cp "$WD_DISTDIR/file.sig" "$destdir" + +wydawca_upload test file + +wydawca_expandmeta template experr + +wydawca --no-preproc -c wydawca.rc || exit $? +wydawca_cmp proj file file.sig +wydawca_cmparc proj file file.sig +], +[0], +[], +[experr]) + +wydawca_clean_testdirs + +AT_CLEANUP |