tests: add code, public-code and private-code tests

First one is deprecated in favour of the second option.

The latter is newly introduced and annotates the generated symbols
accordingly.

v2: Don't introduce small-public-code.c - reuse small-code.c (Pekka)

Cc: Pekka Paalanen <ppaalanen@gmail.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
This commit is contained in:
Emil Velikov 2018-02-22 11:23:39 +00:00 committed by Pekka Paalanen
parent bd92689382
commit b02c4013e3
3 changed files with 77 additions and 1 deletions

View file

@ -299,7 +299,8 @@ EXTRA_DIST += tests/scanner-test.sh \
tests/data/small-server.h \
tests/data/small-code-core.c \
tests/data/small-client-core.h \
tests/data/small-server-core.h
tests/data/small-server-core.h \
tests/data/small-private-code.c
tests/scanner-test.sh: $(top_builddir)/wayland-scanner