packaging: disable ivi-shell for wearable profile
[platform/upstream/weston.git] / Makefile.am
index 543c736..b08932d 100644 (file)
@@ -56,6 +56,7 @@ AM_CPPFLAGS =                                         \
 CLEANFILES = weston.ini                                \
        ivi-shell/weston.ini                    \
        tests/weston-ivi.ini                    \
+       internal-screenshot-00.png              \
        $(BUILT_SOURCES)
 
 bin_PROGRAMS += weston
@@ -909,6 +910,8 @@ libshared_la_SOURCES =                              \
        shared/config-parser.h                  \
        shared/file-util.c                      \
        shared/file-util.h                      \
+       shared/str-util.c                       \
+       shared/str-util.h                       \
        shared/os-compatibility.c               \
        shared/os-compatibility.h
 
@@ -941,10 +944,14 @@ libshared_cairo_la_SOURCES =                      \
 # tests subdirectory
 #
 
-TESTS = $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
+TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
+
+internal_tests =                               \
+       internal-screenshot.weston
 
 shared_tests =                                 \
        config-parser.test                      \
+       strutil.test                            \
        vertex-clip.test
 
 module_tests =                                 \
@@ -988,6 +995,7 @@ noinst_LTLIBRARIES +=                       \
 
 noinst_PROGRAMS +=                     \
        $(setbacklight)                 \
+       $(internal_tests)               \
        $(shared_tests)                 \
        $(weston_tests)                 \
        $(ivi_tests)                    \
@@ -1025,6 +1033,9 @@ libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
 config_parser_test_SOURCES = tests/config-parser-test.c
 config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
 
+strutil_test_SOURCES = tests/strutil-test.c
+strutil_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
+
 vertex_clip_test_SOURCES =                     \
        tests/vertex-clip-test.c                \
        src/vertex-clipping.c                   \
@@ -1040,6 +1051,20 @@ nodist_libtest_client_la_SOURCES =               \
 libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
 libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
 
+
+#
+# Internal tests - tests functionality of the testsuite itself
+#
+
+internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
+internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
+internal_screenshot_weston_LDADD = libtest-client.la  $(CAIRO_LIBS)
+
+
+#
+# Weston Tests
+#
+
 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
 bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
 bad_buffer_weston_LDADD = libtest-client.la
@@ -1148,15 +1173,21 @@ endif
 
 if BUILD_SETBACKLIGHT
 noinst_PROGRAMS += setbacklight
-setbacklight_SOURCES =                         \
-       tests/setbacklight.c                    \
-       src/libbacklight.c                      \
+setbacklight_SOURCES =                 \
+       tests/setbacklight.c            \
+       shared/str-util.c               \
+       shared/str-util.h               \
+       src/libbacklight.c              \
        src/libbacklight.h
 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
 endif
 
-EXTRA_DIST += tests/weston-tests-env
+EXTRA_DIST +=                                                  \
+       tests/weston-tests-env                                  \
+       tests/internal-screenshot.ini                           \
+       tests/reference/internal-screenshot-bad-00.png          \
+       tests/reference/internal-screenshot-good-00.png
 
 BUILT_SOURCES +=                               \
        protocol/weston-test-protocol.c \