File: 01-dry-run

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 (22 lines) | stat: -rw-r--r-- 412 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
#!/bin/sh

mdiff Mail
assert $? 0 "mdiff failed"

test -f db.txt.new
assert $? 0 "mdiff not generating .new file"

mv db.txt.new db.txt

mdiff -d Mail
assert $? 0 "mdiff -d failed"

test -f db.txt.new
assert $? 1 "mdiff generating .new file even if -d is passed"

mdiff --dry-run Mail
assert $? 0 "mdiff --dry-run failed"

test -f db.txt.new
assert $? 1 "mdiff generating .new file even if --dry-run is passed"