Mercurial > hg
comparison tests/test-config.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 | c5df4af17110 |
children | bbe56e07e07a |
comparison
equal
deleted
inserted
replaced
23171:8afae1d5d108 | 23172:e955549cd045 |
---|---|
42 | 42 |
43 $ echo > .hg/hgrc | 43 $ echo > .hg/hgrc |
44 | 44 |
45 Test case sensitive configuration | 45 Test case sensitive configuration |
46 | 46 |
47 $ echo '[Section]' >> $HGRCPATH | 47 $ cat <<EOF >> $HGRCPATH |
48 $ echo 'KeY = Case Sensitive' >> $HGRCPATH | 48 > [Section] |
49 $ echo 'key = lower case' >> $HGRCPATH | 49 > KeY = Case Sensitive |
50 > key = lower case | |
51 > EOF | |
50 | 52 |
51 $ hg showconfig Section | 53 $ hg showconfig Section |
52 Section.KeY=Case Sensitive | 54 Section.KeY=Case Sensitive |
53 Section.key=lower case | 55 Section.key=lower case |
54 | 56 |