[utest] Add 25 test cases.
[platform/core/uifw/libtdm.git] / utests / Makefile.am
index 2588801..c95689c 100644 (file)
@@ -1,26 +1,12 @@
 bin_PROGRAMS = tdm-utests
 
 tdm_utests_SOURCES = \
-       src/main_tests.cpp \
+       src/ut_main.cpp \
        src/ut_tdm.cpp \
-       src/ut_tdm_backend.cpp \
-       src/ut_tdm_buffer.cpp \
-       src/ut_tdm_capture.cpp \
-       src/ut_tdm_display.cpp \
-       src/ut_tdm_event_loop.cpp \
-       src/ut_tdm_helper.cpp \
        src/ut_tdm_pp.cpp \
-       src/ut_tdm_thread.cpp \
-       src/ut_tdm_vblank.cpp \
-       stubs/tbm_stubs.cpp \
-       stubs/tdm_log.cpp \
-       stubs/tdm_server.cpp \
-       stubs/stub_pthread.cpp \
-       stubs/stub_dlfcn.cpp \
-       stubs/stub_stdlib.cpp \
-       stubs/tdm_backend_module_subs.cpp \
-       stubs/stub_unistd.cpp \
-       stubs/stub_backend.cpp
+       src/ut_tdm_capture.cpp \
+       src/ut_tdm_output.cpp \
+       src/ut_tdm_layer.cpp
 
 tdm_utests_CXXFLAGS = \
        $(CXXFLAGS) \
@@ -28,9 +14,10 @@ tdm_utests_CXXFLAGS = \
        -I../src \
        -I../include \
        -I./src \
-       -I./stubs \
        -I$(includedir)/gtest \
        -fpermissive \
+       -rdynamic \
+       -DFAIL_ON_UNSUPPORTED \
        -w
 # The flag -w is used, because there are many warnings in libtdm's sources.
 # Warnings occur because we build project with g++.
@@ -39,9 +26,8 @@ tdm_utests_CXXFLAGS = \
 tdm_utests_LDFLAGS = \
        ${LDFLAGS} \
        $(TDM_LIBS) \
-       -lgtest \
-       -ldl \
-       -pthread
+       $(top_builddir)/src/libtdm.la \
+       -lgtest
 
 check:
        ./tdm-utests