File: 18-exclude

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 (23 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

mpull -t
assert $? 0 "failed mpull -t"

echo 'EXCLUDE="Mail/cur Mail/w%20space"'  >> target/.smd/config.default

mkdir target/Mail
mkdir -p 'Mail/w space/cur'
mkdir -p 'Mail/x/cur'
cp -r Mail/cur 'Mail/w space/cur'
cp -r Mail/cur 'Mail/x/cur'

mcheck
assert $? 0 "check failed"

mpull
assert $? 0 "mpull failed"

test ! -d target/Mail/cur
assert $? 0 "mpull pulled excluded stuff 1"
test ! -d 'target/Mail/w space'
assert $? 0 "mpull pulled excluded stuff 2"