##// END OF EJS Templates
tests: use md5sum.py instead of sha1sum, add check
Matt Mackall -
r15389:3bece03b stable
parent child Browse files
Show More
@@ -52,6 +52,7 b' testpats = ['
52 52 (r'^diff.*-\w*N', "don't use 'diff -N'"),
53 53 (r'(^| )wc[^|]*$\n(?!.*\(re\))', "filter wc output"),
54 54 (r'head -c', "don't use 'head -c', use 'dd'"),
55 (r'sha1sum', "don't use sha1sum, use $TESTDIR/md5sum.py"),
55 56 (r'ls.*-\w*R', "don't use 'ls -R', use 'find'"),
56 57 (r'printf.*\\\d\d\d', "don't use 'printf \NNN', use Python"),
57 58 (r'printf.*\\x', "don't use printf \\x, use Python"),
@@ -48,9 +48,9 b''
48 48 normal
49 49 $ cat sub/normal2
50 50 alsonormal
51 $ sha1sum large sub/maybelarge.dat
52 2e000fa7e85759c7f4c254d4d9c33ef481e459a7 large
53 34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c sub/maybelarge.dat
51 $ "$TESTDIR/md5sum.py" large sub/maybelarge.dat
52 ec87a838931d4d5d2e94a04644788a55 large
53 1276481102f218c981e0324180bafd9f sub/maybelarge.dat
54 54
55 55 "lfconvert" adds 'largefiles' to .hg/requires.
56 56 $ cat .hg/requires
@@ -74,8 +74,8 b' add some changesets to rename/remove/mer'
74 74 $ echo blah >> normal3
75 75 $ echo blah >> sub/normal2
76 76 $ echo blah >> sub/maybelarge.dat
77 $ sha1sum sub/maybelarge.dat
78 76236b6a2c6102826c61af4297dd738fb3b1de38 sub/maybelarge.dat
77 $ "$TESTDIR/md5sum.py" sub/maybelarge.dat
78 1dd0b99ff80e19cff409702a1d3f5e15 sub/maybelarge.dat
79 79 $ hg commit -A -m"add normal3, modify sub/*"
80 80 adding normal3
81 81 created new head
@@ -151,8 +151,8 b' lfconvert with rename, merge, and remove'
151 151 $ cat stuff/normal2
152 152 alsonormal
153 153 blah
154 $ sha1sum stuff/maybelarge.dat
155 76236b6a2c6102826c61af4297dd738fb3b1de38 stuff/maybelarge.dat
154 $ "$TESTDIR/md5sum.py" stuff/maybelarge.dat
155 1dd0b99ff80e19cff409702a1d3f5e15 stuff/maybelarge.dat
156 156 $ cat .hglf/stuff/maybelarge.dat
157 157 76236b6a2c6102826c61af4297dd738fb3b1de38
158 158 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now