tests: Add unit tests for permissions
[platform/upstream/gstreamer.git] / tests / check / Makefile.am
1 include $(top_srcdir)/common/check.mak
2
3 CHECK_REGISTRY = $(top_builddir)/tests/check/test-registry.reg
4 TEST_FILES_DIRECTORY = $(top_srcdir)/tests/files
5
6 REGISTRY_ENVIRONMENT = \
7         GST_REGISTRY_1_0=$(CHECK_REGISTRY)
8
9 TESTS_ENVIRONMENT = \
10         CK_DEFAULT_TIMEOUT=120                                  \
11         GST_STATE_IGNORE_ELEMENTS="$(STATE_IGNORE_ELEMENTS)"    \
12         $(REGISTRY_ENVIRONMENT)                                 \
13         GST_PLUGIN_SYSTEM_PATH_1_0=                                     \
14         GST_PLUGIN_PATH_1_0=$(GST_PLUGINS_DIR):$(GSTPB_PLUGINS_DIR):$(GSTPG_PLUGINS_DIR)        \
15         GST_PLUGIN_LOADING_WHITELIST="gstreamer:gst-plugins-base:gst-plugins-good"
16
17
18 # ths core dumps of some machines have PIDs appended
19 CLEANFILES = core.* test-registry.*
20
21 clean-local: clean-local-check
22
23 $(CHECK_REGISTRY):
24         $(TESTS_ENVIRONMENT)
25
26 TESTS = $(check_PROGRAMS)
27
28 check_PROGRAMS = \
29         gst/rtspserver \
30         gst/client \
31         gst/mountpoints \
32         gst/mediafactory \
33         gst/media \
34         gst/addresspool \
35         gst/threadpool
36         gst/permissions
37
38 # these tests don't even pass
39 noinst_PROGRAMS =
40
41 AM_CFLAGS = -I$(top_srcdir)/gst/rtsp-server \
42         $(GST_PLUGINS_BASE_CFLAGS) \
43         $(GST_BASE_CFLAGS) \
44         $(GIO_CFLAGS) \
45         $(GST_CFLAGS) \
46         $(GST_CHECK_CFLAGS) \
47         -DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\"" \
48         -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
49 AM_CXXFLAGS = $(GST_CXXFLAGS) $(GST_CHECK_CFLAGS) \
50         -DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\"" \
51         -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
52 LDADD = $(top_builddir)/gst/rtsp-server/libgstrtspserver-@GST_API_VERSION@.la \
53         $(GST_PLUGINS_BASE_LIBS) -lgstrtp-@GST_API_VERSION@ \
54         -lgstrtsp-@GST_API_VERSION@ -lgstsdp-@GST_API_VERSION@ \
55         $(GST_BASE_LIBS) $(GIO_LIBS) \
56         $(GST_LIBS) $(GST_CHECK_LIBS) $(GST_RTSP_SERVER_LIBS)
57
58 SUPPRESSIONS = $(top_srcdir)/common/gst.supp