File: 34-move-fail2

package info (click to toggle)
syncmaildir 1.2.6-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 1,180 kB
  • sloc: ansic: 6,338; sh: 1,969; makefile: 258; xml: 14
file content (19 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash


msync 1

M=Mail/cur/`ls Mail/cur/ | head -n 1`

mv $M Mail/cur/copied_here
mv target/$M target/Mail/cur/copied_here

msync 2

test_eq target/Mail Mail

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

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