##// END OF EJS Templates
test-patchbomb: write in binary mode, force non-interactive mode (win32)
Patrick Mezard -
r7265:0cf3442e default
parent child Browse files
Show More
@@ -45,26 +45,26 hg email --date '1970-1-1 0:3' -n -f quu
45 fixheaders
45 fixheaders
46
46
47 echo % utf-8 patch
47 echo % utf-8 patch
48 python -c 'fp = open("utf", "w"); fp.write("h\xC3\xB6mma!\n"); fp.close();'
48 python -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();'
49 hg commit -A -d '4 0' -m 'charset=utf-8; content-transfer-encoding: base64'
49 hg commit -A -d '4 0' -m 'charset=utf-8; content-transfer-encoding: base64'
50
50
51 echo % no mime encoding for email --test
51 echo % no mime encoding for email --test
52 hg email --date '1970-1-1 0:4' -f quux -t foo -r tip -n | fixheaders > mailtest
52 hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n | fixheaders > mailtest
53 echo % md5sum of 8-bit output
53 echo % md5sum of 8-bit output
54 $TESTDIR/md5sum.py mailtest
54 $TESTDIR/md5sum.py mailtest
55 rm mailtest
55 rm mailtest
56
56
57 echo % mime encoded mbox
57 echo % mime encoded mbox
58 hg email --date '1970-1-1 0:4' -f quux -t foo -r tip -m mbox
58 hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
59 cat mbox | fixheaders
59 cat mbox | fixheaders
60 rm mbox
60 rm mbox
61
61
62 echo % iso-8859-1 patch
62 echo % iso-8859-1 patch
63 python -c 'fp = open("isolatin", "w"); fp.write("h\xF6mma!\n"); fp.close();'
63 python -c 'fp = open("isolatin", "wb"); fp.write("h\xF6mma!\n"); fp.close();'
64 hg commit -A -d '5 0' -m 'charset=us-ascii; content-transfer-encoding: 8bit'
64 hg commit -A -d '5 0' -m 'charset=us-ascii; content-transfer-encoding: 8bit'
65
65
66 echo % fake ascii mbox
66 echo % fake ascii mbox
67 hg email --date '1970-1-1 0:5' -f quux -t foo -r tip -m mbox
67 hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
68 fixheaders < mbox > mboxfix
68 fixheaders < mbox > mboxfix
69 echo % md5sum of 8-bit output
69 echo % md5sum of 8-bit output
70 $TESTDIR/md5sum.py mboxfix
70 $TESTDIR/md5sum.py mboxfix
@@ -150,7 +150,7 adding description
150 adding utf
150 adding utf
151 % no mime encoding for email --test
151 % no mime encoding for email --test
152 % md5sum of 8-bit output
152 % md5sum of 8-bit output
153 a6a3c6b9b6009cea23871a7727a282ab mailtest
153 ad877786716d09fd7843cf0ed5e3d2a8 mailtest
154 % mime encoded mbox
154 % mime encoded mbox
155 This patch series consists of 1 patches.
155 This patch series consists of 1 patches.
156
156
@@ -166,6 +166,7 Message-Id: <c3c9e37db9f4fe4882cd.240@
166 Date: Thu, 01 Jan 1970 00:04:00 +0000
166 Date: Thu, 01 Jan 1970 00:04:00 +0000
167 From: quux
167 From: quux
168 To: foo
168 To: foo
169 Cc: bar
169
170
170 IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojIE5vZGUgSUQgYzNj
171 IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojIE5vZGUgSUQgYzNj
171 OWUzN2RiOWY0ZmU0ODgyY2RhMzliYWY0MmZlZDZiYWQ4YjE1YQojIFBhcmVudCAgZmYyYzlmYTIw
172 OWUzN2RiOWY0ZmU0ODgyY2RhMzliYWY0MmZlZDZiYWQ4YjE1YQojIFBhcmVudCAgZmYyYzlmYTIw
@@ -187,4 +188,4 This patch series consists of 1 patches.
187
188
188 Writing [PATCH] charset=us-ascii; content-transfer-encoding: 8bit ...
189 Writing [PATCH] charset=us-ascii; content-transfer-encoding: 8bit ...
189 % md5sum of 8-bit output
190 % md5sum of 8-bit output
190 45cb4b77e02f39eb91955f5c95913d66 mboxfix
191 90fae277a4a85255e8262174fcefb59f mboxfix
General Comments 0
You need to be logged in to leave comments. Login now