summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 7ee560b3f7d2498b73dfb2717089a4eabd8426dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
SUBDIRS = . invoke scanner

EXTRA_DIST = \
	array.gir	\
	boxed.gir	\
	enum.gir	\
	errors.gir	\
	function.gir	\
	gobject.gir	\
	interface.gir	\
	object.gir	\
	struct.gir	\
	types.gir	\
	union.gir	\
	xref1.gir	\
	xref2.gir

GIRTESTS = 			\
	boxed.gir.test  	\
	constant.gir.test	\
	enum.gir.test  		\
	gobject.gir.test	\
	object.gir.test		\
	struct.gir.test

%.gir.test: %.gir
	@echo Testing $<:
	$(top_builddir)/tools/g-ir-compiler --raw $< > $<.1; \
	$(top_builddir)/tools/g-ir-generate --raw $<.1 > $<.2; \ 
	diff -u $< $<.2; rm $<.1 $<.2

check-local: $(GIRTESTS)
	@echo Running PEP8 on Python sources
	@find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pep8.py --repeat
	@echo Running Pyflakes on Python sources
	@find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pyflakes.py