comparison tests/test-eol.t @ 23172:e955549cd045

tests: write hgrc of more than two lines by using shell heredoc Here document should be readable than repeating echo commands.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 04 Nov 2014 23:41:46 +0900
parents fb3e63c603e8
children b44ab288358e
comparison
equal deleted inserted replaced
23171:8afae1d5d108 23172:e955549cd045
406 406
407 #endif 407 #endif
408 408
409 Test cleverencode: and cleverdecode: aliases for win32text extension 409 Test cleverencode: and cleverdecode: aliases for win32text extension
410 410
411 $ echo '[encode]' >> $HGRCPATH 411 $ cat <<EOF >> $HGRCPATH
412 $ echo '**.txt = cleverencode:' >> $HGRCPATH 412 > [encode]
413 $ echo '[decode]' >> $HGRCPATH 413 > **.txt = cleverencode:
414 $ echo '**.txt = cleverdecode:' >> $HGRCPATH 414 > [decode]
415 > **.txt = cleverdecode:
416 > EOF
415 417
416 $ hg init win32compat 418 $ hg init win32compat
417 $ cd win32compat 419 $ cd win32compat
418 $ printf "foo\r\nbar\r\nbaz\r\n" > win.txt 420 $ printf "foo\r\nbar\r\nbaz\r\n" > win.txt
419 $ printf "foo\nbar\nbaz\n" > unix.txt 421 $ printf "foo\nbar\nbaz\n" > unix.txt