Make xkb_map_get_as_string test more comprehensive
authorDaniel Stone <daniel@fooishbar.org>
Mon, 4 Jun 2012 12:27:41 +0000 (13:27 +0100)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 4 Jun 2012 12:27:41 +0000 (13:27 +0100)
commit0f09c3073c8d5709043cbd56344313dca1ac490f
tree1d8a35d4a2a85e459eff0c931fc3fee9b1bff094
parent64c277d9f21d2639eb2da8caba8362a981c93071
Make xkb_map_get_as_string test more comprehensive

Add a test/dump.data file which contains the result we're expecting from
xkb_map_get_as_string run on a particularly complex set of keymaps, and
assert that the string representations are the same.  This means that
any updates to xkb_map_get_as_string will also need to update the test
data, but should also ensure that we don't have any more parser
regressions.

Compared with diff to the output of setxkbmap + xkbcomp for the same
keymap; seems completely solid.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
test/dump.c
test/dump.data [new file with mode: 0644]