diff options
author | Daniil Baturin <daniil@baturin.org> | 2019-01-26 01:26:36 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2019-01-26 01:26:36 +0100 |
commit | 6d172d767360a675462da6a0bac100a24c544892 (patch) | |
tree | 02664696a996abf083ae1721e03c02b79143cfbd /tests | |
parent | 4a0027211c0cc1a56294899d0796ed923cacd209 (diff) | |
download | vyos-1x-6d172d767360a675462da6a0bac100a24c544892.tar.gz vyos-1x-6d172d767360a675462da6a0bac100a24c544892.zip |
T1193: add some tests for the config parser.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/config.valid | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/data/config.valid b/tests/data/config.valid new file mode 100644 index 000000000..353e96df4 --- /dev/null +++ b/tests/data/config.valid @@ -0,0 +1,29 @@ +/* top level leaf node */ +top-level-leaf-node foo + +top-level-valueless-node + +top-level-tag-node foo { + top-level-tag-node-child some-value +} + +top-level-tag-node bar { + top-level-tag-node-child another-value +} + +normal-node { + normal-node-child { + valueless-node + multi-node value1 + /* valueless node comment */ + another-valueless-node + multi-node value1 + tag-node foo { + } + one-more-valueless-node + tag-node bar { + some-option some-value + } + } + option-with-quoted-value "some-value" +} |