Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Test against libeverything #44

Open
sundermann opened this issue Mar 3, 2018 · 1 comment
Open

Test against libeverything #44

sundermann opened this issue Mar 3, 2018 · 1 comment
Milestone

Comments

@sundermann
Copy link
Collaborator

g-ir-scanner can generate .c files which are used internally for testing by gobject-introspection. These files provide very basic methods.

# generate c files
$(AM_V_GEN) $(INTROSPECTION_SCANNER) $(INTROSPECTION_SCANNER_ARGS)	\
	--generate-typelib-tests=Everything,everything.h,everything.c	\
	--function-decoration=_GI_TEST_EXTERN	\
	--include-first-in-src=config.h	\
--include-last-in-header=gitestmacros.h
# compile
...
# run introspection parser to get .gir files
$(AM_V_GEN) $(INTROSPECTION_SCANNER) $(INTROSPECTION_SCANNER_ARGS) --warn-all --warn-error --reparse-validate \
	--namespace=Everything --nsversion=1.0 \
	--libtool="$(LIBTOOL)" \
	--add-include-path=$(top_builddir) --include=Gio-2.0 \
	--library=libeverything-1.0.la --output=$@ \
	-I$(srcdir) \
everything.h everything.c

We can generate bindings for the test library and see if pinvoking into the library works.

@decriptor decriptor added this to the milestone 0 milestone Mar 4, 2018
@decriptor
Copy link
Contributor

I just saw this 16:09 < ptomato[m]> mortisha: "libeverything" is now called "libregress".
Is it libregress that we want then?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants