File: 09-copy-mail-cp-error

package info (click to toggle)
syncmaildir 1.3.0-1~bpo9%2B1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 1,188 kB
  • sloc: ansic: 6,321; sh: 1,995; makefile: 232; xml: 14
file content (24 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash


msync 1

cp Mail/cur/`ls Mail/cur/ | head -n 1` Mail/cur/copied_here
cp -r target/Mail target/Mail.old
chmod a-w target/Mail/cur

msync 2

chmod u+w target/Mail/cur

test_eq target/Mail.old target/Mail 

X=`grep '^COPY ' log.s2c | wc -l`
assert $X 1 "missing COPY in s2c"

X=`grep '^GET ' log.c2s | wc -l`
assert $X 0 "GET present in c2s, should not"

X=`grep '^ABORT$' log.c2s | wc -l`
assert $X 1 "missing ABORT in c2s"