aboutsummaryrefslogtreecommitdiff
path: root/tests/dry_run02.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dry_run02.at')
-rw-r--r--tests/dry_run02.at51
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/dry_run02.at b/tests/dry_run02.at
new file mode 100644
index 0000000..7dcf8f2
--- /dev/null
+++ b/tests/dry_run02.at
@@ -0,0 +1,51 @@
+# Check dry-run uploads -*- Autotest -*-
+# Copyright (C) 2009-2012, 2017, 2019-2020 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([Incomplete triplet])
+AT_KEYWORDS([upload upload-single upload-inclomplete dry-run])
+AT_CHECK_UPLOAD([
+spool test {
+ url ftp://wydawca.test;
+ source "$PWD/upload";
+ destination "$PWD/dest";
+}
+],
+[wy_create_upload conversion upload/conversion-1.1.tar \
+ comment: "Dry-run upload"
+rm upload/conversion-1.1.tar.sig
+wydawca --no-preproc --dry-run --debug=0 -c wydawca.cf
+],
+[0],
+[],
+[wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) started
+wydawca: [[NOTICE]] conversion-1.1.tar.directive.asc: VERSION: 1.2
+wydawca: [[INFO]] errors: 0
+wydawca: [[INFO]] warnings: 0
+wydawca: [[INFO]] bad signatures: 0
+wydawca: [[INFO]] access violation attempts: 0
+wydawca: [[INFO]] complete triplets: 0
+wydawca: [[INFO]] incomplete triplets: 1
+wydawca: [[INFO]] bad triplets: 0
+wydawca: [[INFO]] expired triplets: 0
+wydawca: [[INFO]] triplet successes: 0
+wydawca: [[INFO]] files uploaded: 0
+wydawca: [[INFO]] files archived: 0
+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_CLEANUP
+

Return to:

Send suggestions and report system problems to the System administrator.