aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2021-03-08rust: fix cargo clippyMarc-André Lureau2-1/+7
Fix clippy error about missing main(). Fix various clippy warnings "help: consider removing `'static`: `&str`" Run clippy with the rust test. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-02-12tests: add rust testMarc-André Lureau4-1/+59
2021-02-12tests: fix argument orderMarc-André Lureau1-48/+48
Fixes: 7381b9bfadd31c ("Introduce separate args for title & subtitle with docs generator") Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2018-02-02add header file generatorsPaolo Bonzini1-26/+58
keymap-gen can create header files that include the length of the array. Using ARRAY_SIZE on the array becomes then possible, and this can be preferrable to the "x_len" symbols because static analysis cannot necessarily see the value of "x_len". Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-08-07Build tests with warnings enabledDaniel P. Berrange1-2/+2
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-08-02Use STL types for C++ outputPierre Ossman2-27/+3
This give us much nicer lookup for string keys, boundary checks and better introspection when it comes to iteration. Signed-off-by: Pierre Ossman <ossman@cendio.se>
2017-08-02Provide array size constant for C outputPierre Ossman2-8/+24
The array might not be in the same unit as the code using it, so we need a way of indicating the number of entries. Signed-off-by: Pierre Ossman <ossman@cendio.se>
2017-08-02Add support for JavaScript outputPierre Ossman3-1/+83
Signed-off-by: Pierre Ossman <ossman@cendio.se>
2017-08-02Handle string based codesPierre Ossman5-3/+115
Some systems use string identifiers rather than integers. Signed-off-by: Pierre Ossman <ossman@cendio.se>
2017-08-02Add tests for name-tablePierre Ossman5-3/+17
Signed-off-by: Pierre Ossman <ossman@cendio.se>
2017-08-02Add tests for name-mapPierre Ossman5-3/+24
Signed-off-by: Pierre Ossman <ossman@cendio.se>
2017-08-02Add tests for code-tablePierre Ossman5-3/+17
Signed-off-by: Pierre Ossman <ossman@cendio.se>
2017-08-02Add basic testsPierre Ossman7-0/+87
Signed-off-by: Pierre Ossman <ossman@cendio.se>