[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH RFC 2/5] tests: New make target check-headers
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH RFC 2/5] tests: New make target check-headers |
Date: |
Thu, 23 Jun 2016 13:33:12 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 06/23/2016 10:12 AM, Markus Armbruster wrote:
> For each header "FOO.h", the test checks whether
>
> #include "qemu/osdep.h"
> #include "FOO.h"
> #include "FOO.h"
>
> compiles. A large number of headers don't pass this test, by design
> or by accident. These are all excluded with a blacklist for now. Add
> make target check-blacklisted-headers to help with examinating how
s/examinating/examining/
> they fail.
>
> Signed-off-by: Markus Armbruster <address@hidden>
> ---
> tests/Makefile.include | 426
> +++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 426 insertions(+)
>
> diff --git a/tests/Makefile.include b/tests/Makefile.include
> index a2ed83b..e20f437 100644
> --- a/tests/Makefile.include
> +++ b/tests/Makefile.include
> @@ -413,6 +413,421 @@ test-obj-y = tests/check-qint.o tests/check-qstring.o
> tests/check-qdict.o \
> $(test-obj-y): QEMU_INCLUDES += -Itests
> QEMU_CFLAGS += -I$(SRC_PATH)/tests
>
> +# All headers
> +headers := $(filter %.h, $(shell cd $(SRC_PATH) && git ls-files)
> $(GENERATED_HEADERS))
Hard-coded to only work on a git checkout, but I guess that's okay.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH RFC 3/5] include/qemu/typedefs.h: Restore alphabetical order, (continued)