aboutsummaryrefslogtreecommitdiff
path: root/tests/symlink00.at
blob: 76b7ad4b7c743c2446d02e2524158707c170a38c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Check symlink creation                          -*- 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([Create symlink])
AT_KEYWORDS([symlink symlink00])

AT_CHECK_UPLOAD([
spool test {
    url ftp://wydawca.test;
    source "$PWD/upload";
    destination "$PWD/dest";
}
],
[AT_SORT_PREREQ
mkdir dest/dogana
wy_genfile dogana dest/dogana/dogana-0.file
wy_create_directive upload/symlink.directive.asc dogana \
    symlink: "dogana-0.file dogana.latest" \
    comment: "create a symlink"
set -e
wydawca --no-preproc -c wydawca.cf
find dest -type l|sort
find dest -type f|sort
],
[0],
[dest/dogana/dogana.latest
dest/dogana/dogana.latest.sig
dest/dogana/dogana-0.file
dest/dogana/dogana-0.file.sig
],
[wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) started
wydawca: [[NOTICE]] symlink.directive.asc.directive.asc: VERSION: 1.2
wydawca: [[NOTICE]] symlink.directive.asc.directive.asc: COMMENT: create a symlink
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: 0
wydawca: [[INFO]] files archived: 0
wydawca: [[INFO]] symlinks created: 2
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.