Mercurial > hg
comparison tests/test-config.t @ 22275:d9a8017dce10
test-config: add tests for invalid syntax
This was not tested and there is more to come in the next patch.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 20 Aug 2014 22:52:56 -0700 |
parents | 7d82ad4b3727 |
children | b13b99d39a46 |
comparison
equal
deleted
inserted
replaced
22274:10e87c67f1c7 | 22275:d9a8017dce10 |
---|---|
1 hide outer repo | 1 hide outer repo |
2 $ hg init | 2 $ hg init |
3 | |
4 Invalid syntax: no value | |
5 | |
6 $ cat > .hg/hgrc << EOF | |
7 > novaluekey | |
8 > EOF | |
9 $ hg showconfig | |
10 hg: parse error at $TESTTMP/.hg/hgrc:1: novaluekey | |
11 [255] | |
12 | |
13 Invalid syntax: no key | |
14 | |
15 $ cat > .hg/hgrc << EOF | |
16 > =nokeyvalue | |
17 > EOF | |
18 $ hg showconfig | |
19 hg: parse error at $TESTTMP/.hg/hgrc:1: =nokeyvalue | |
20 [255] | |
21 | |
22 Reset hgrc | |
23 | |
24 $ echo > .hg/hgrc | |
3 | 25 |
4 Test case sensitive configuration | 26 Test case sensitive configuration |
5 | 27 |
6 $ echo '[Section]' >> $HGRCPATH | 28 $ echo '[Section]' >> $HGRCPATH |
7 $ echo 'KeY = Case Sensitive' >> $HGRCPATH | 29 $ echo 'KeY = Case Sensitive' >> $HGRCPATH |