summaryrefslogtreecommitdiff
path: root/scripts/group-qemu-caps.py
Commit message (Collapse)AuthorAgeFilesLines
* scripts: group-qemu-caps: Add capability name as comment to capability stringPeter Krempa2021-08-181-3/+40
| | | | | | | | | | | | | | Add a cross reference of the enum value name with the string representation. This allows a quick cross-reference of the values without having to open the header and implementation files separately. To achieve this the checker code at first obtains a list of the flags and cross-references them when checking the grouping in syntax-check, thus we are guaranteed to stay in sync. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
* scripts: Actually print filename of offending filePeter Krempa2021-01-151-2/+2
| | | | | | | | | | | The error message printed by scripts/group-qemu-caps.py and scripts/test-wrap-argv.py doesn't actually print the filename of the offending file: Incorrect line wrapping in $file Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
* tests: rewrite qemu capability grouper in PythonDaniel P. Berrangé2019-12-201-0/+121
As part of a goal to eliminate Perl from libvirt build tools, rewrite the group-qemu-caps.pl tool in Python. This was a straight conversion, manually going line-by-line to change the syntax from Perl to Python. Thus the overall structure of the file and approach is the same. Tested-by: Cole Robinson <crobinso@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>