File: 01-confdir

package info (click to toggle)
syncmaildir 1.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,104 kB
  • sloc: ansic: 6,643; sh: 1,780; makefile: 247
file content (18 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

rm -rf .smd target/.smd

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

for d in "" "log" "fifo" "hooks/pre-pull.d" "hooks/post-pull.d" "hooks/pre-push.d" "hooks/post-push.d" ; do
	test -d target/.smd/$d
	assert $? 0 "missing dir .smd/$d"
done

test -f target/.smd/config.default
assert $? 0 "missing config.default"

rm -rf target/.smd/
rmdir target
assert $? 0 "target dir not empty, -t should not sync"