utest: rename the ut to the utests 86/158286/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 31 Oct 2017 00:21:40 +0000 (09:21 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 31 Oct 2017 00:40:11 +0000 (09:40 +0900)
Change-Id: Id22d254e82d3451535a7a665d35afee52a238941

50 files changed:
Makefile.am
configure.ac
packaging/libtdm.spec
utests/Makefile.am [moved from ut/Makefile.am with 95% similarity]
utests/src/main_tests.cpp [moved from ut/src/main_tests.cpp with 100% similarity]
utests/src/ut_tdm.cpp [moved from ut/src/ut_tdm.cpp with 100% similarity]
utests/src/ut_tdm_backend.cpp [moved from ut/src/ut_tdm_backend.cpp with 100% similarity]
utests/src/ut_tdm_buffer.cpp [moved from ut/src/ut_tdm_buffer.cpp with 100% similarity]
utests/src/ut_tdm_capture.cpp [moved from ut/src/ut_tdm_capture.cpp with 100% similarity]
utests/src/ut_tdm_display.cpp [moved from ut/src/ut_tdm_display.cpp with 100% similarity]
utests/src/ut_tdm_event_loop.cpp [moved from ut/src/ut_tdm_event_loop.cpp with 100% similarity]
utests/src/ut_tdm_helper.cpp [moved from ut/src/ut_tdm_helper.cpp with 100% similarity]
utests/src/ut_tdm_pp.cpp [moved from ut/src/ut_tdm_pp.cpp with 100% similarity]
utests/src/ut_tdm_thread.cpp [moved from ut/src/ut_tdm_thread.cpp with 100% similarity]
utests/src/ut_tdm_vblank.cpp [moved from ut/src/ut_tdm_vblank.cpp with 100% similarity]
utests/stubs/stub_backend.cpp [moved from ut/stubs/stub_backend.cpp with 100% similarity]
utests/stubs/stub_backend.h [moved from ut/stubs/stub_backend.h with 100% similarity]
utests/stubs/stub_dlfcn.cpp [moved from ut/stubs/stub_dlfcn.cpp with 100% similarity]
utests/stubs/stub_dlfcn.h [moved from ut/stubs/stub_dlfcn.h with 100% similarity]
utests/stubs/stub_fcntl.h [moved from ut/stubs/stub_fcntl.h with 100% similarity]
utests/stubs/stub_pthread.cpp [moved from ut/stubs/stub_pthread.cpp with 100% similarity]
utests/stubs/stub_pthread.h [moved from ut/stubs/stub_pthread.h with 100% similarity]
utests/stubs/stub_stdio.h [moved from ut/stubs/stub_stdio.h with 100% similarity]
utests/stubs/stub_stdlib.cpp [moved from ut/stubs/stub_stdlib.cpp with 100% similarity]
utests/stubs/stub_stdlib.h [moved from ut/stubs/stub_stdlib.h with 100% similarity]
utests/stubs/stub_tdm.h [moved from ut/stubs/stub_tdm.h with 100% similarity]
utests/stubs/stub_tdm_buffer.h [moved from ut/stubs/stub_tdm_buffer.h with 100% similarity]
utests/stubs/stub_tdm_capture.h [moved from ut/stubs/stub_tdm_capture.h with 100% similarity]
utests/stubs/stub_tdm_display.h [moved from ut/stubs/stub_tdm_display.h with 100% similarity]
utests/stubs/stub_tdm_event_loop.h [moved from ut/stubs/stub_tdm_event_loop.h with 100% similarity]
utests/stubs/stub_tdm_helper.h [moved from ut/stubs/stub_tdm_helper.h with 100% similarity]
utests/stubs/stub_tdm_pp.h [moved from ut/stubs/stub_tdm_pp.h with 100% similarity]
utests/stubs/stub_tdm_server.h [moved from ut/stubs/stub_tdm_server.h with 100% similarity]
utests/stubs/stub_tdm_thread.h [moved from ut/stubs/stub_tdm_thread.h with 100% similarity]
utests/stubs/stub_tdm_vblank.h [moved from ut/stubs/stub_tdm_vblank.h with 100% similarity]
utests/stubs/stub_unistd.cpp [moved from ut/stubs/stub_unistd.cpp with 100% similarity]
utests/stubs/stub_unistd.h [moved from ut/stubs/stub_unistd.h with 100% similarity]
utests/stubs/tbm_bufmgr.h [moved from ut/stubs/tbm_bufmgr.h with 100% similarity]
utests/stubs/tbm_stubs.cpp [moved from ut/stubs/tbm_stubs.cpp with 100% similarity]
utests/stubs/tbm_stubs.h [moved from ut/stubs/tbm_stubs.h with 100% similarity]
utests/stubs/tbm_surface.h [moved from ut/stubs/tbm_surface.h with 100% similarity]
utests/stubs/tbm_surface_internal.h [moved from ut/stubs/tbm_surface_internal.h with 100% similarity]
utests/stubs/tbm_surface_queue.h [moved from ut/stubs/tbm_surface_queue.h with 100% similarity]
utests/stubs/tbm_type.h [moved from ut/stubs/tbm_type.h with 100% similarity]
utests/stubs/tdm_backend_module_subs.cpp [moved from ut/stubs/tdm_backend_module_subs.cpp with 100% similarity]
utests/stubs/tdm_event_loop_stubs.h [moved from ut/stubs/tdm_event_loop_stubs.h with 100% similarity]
utests/stubs/tdm_log.cpp [moved from ut/stubs/tdm_log.cpp with 100% similarity]
utests/stubs/tdm_server.cpp [moved from ut/stubs/tdm_server.cpp with 100% similarity]
utests/stubs/wayland-server-core.h [moved from ut/stubs/wayland-server-core.h with 100% similarity]
utests/stubs/wayland-tbm-drm-auth-client-protocol.h [moved from ut/stubs/wayland-tbm-drm-auth-client-protocol.h with 100% similarity]

index 8b6604d..c6a6d73 100644 (file)
@@ -1,6 +1,6 @@
 
 if HAVE_UTEST
-SUBDIRS = . include protocol common src backends client tools ut
+SUBDIRS = . include protocol common src backends client tools utests
 else
 SUBDIRS = . include protocol common src backends client tools
 endif
index 40a3816..c55f3fe 100644 (file)
@@ -31,11 +31,11 @@ LT_INIT([disable-static])
 # Enable quiet compiles on automake 1.11.
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
-AC_ARG_WITH(utest, AS_HELP_STRING([--with-utest=yes/no], [whether build/run unit tests or not]),
-                               [ utest="$withval" ],
-                               [ utest="no" ])
+AC_ARG_WITH(utests, AS_HELP_STRING([--with-utests=yes/no], [whether build/run unit tests or not]),
+                               [ utests="$withval" ],
+                               [ utests="no" ])
 
-AM_CONDITIONAL(HAVE_UTEST, test "x$utest" = "xyes")
+AM_CONDITIONAL(HAVE_UTEST, test "x$utests" = "xyes")
 
 AC_PATH_PROG([wayland_scanner], [wayland-scanner])
 if test x$wayland_scanner = x; then
@@ -95,7 +95,7 @@ AC_OUTPUT([
        client/libtdm-client.pc
        client/Makefile
        tools/Makefile
-       ut/Makefile])
+       utests/Makefile])
 
 echo ""
 echo "$PACKAGE_STRING will be compiled with:"
index a21d427..6496af0 100644 (file)
@@ -1,4 +1,4 @@
-%bcond_with utest
+%define UTEST_PACKAGE 0
 
 Name:           libtdm
 Version:        1.8.2
@@ -44,7 +44,7 @@ Requires:       libtdm-devel
 %description client-devel
 Tizen Display Manager Client Library headers
 
-%if %{with utest}
+%if "%{UTEST_PACKAGE}" == "1"
 %package utests
 Summary: Tizen Display Manager unit tests package
 Group: Development/Libraries
@@ -70,11 +70,11 @@ cp %{SOURCE1001} .
 %build
 UTEST="no"
 
-%if %{with utest}
+%if "%{UTEST_PACKAGE}" == "1"
 UTEST="yes"
 %endif
 
-%reconfigure --disable-static --with-utest=${UTEST} \
+%reconfigure --disable-static --with-utests=${UTEST} \
              CFLAGS="${CFLAGS} -Wall -Werror" \
              LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
 make %{?_smp_mflags}
@@ -140,10 +140,10 @@ rm -f %{_unitdir_user}/basic.target.wants/tdm-socket-user.path
 %attr(750,root,root) %{_bindir}/tdm-test-server
 %{_bindir}/tdm-test-client
 
-%if %{with utest}
+%if "%{UTEST_PACKAGE}" == "1"
 %files utests
 %defattr(-,root,root,-)
-%{_bindir}/tdm_utests
+%{_bindir}/tdm-utests
 %endif
 
 %changelog
similarity index 95%
rename from ut/Makefile.am
rename to utests/Makefile.am
index 57dd954..2588801 100644 (file)
@@ -1,4 +1,4 @@
-bin_PROGRAMS = tdm_utests
+bin_PROGRAMS = tdm-utests
 
 tdm_utests_SOURCES = \
        src/main_tests.cpp \
@@ -44,4 +44,4 @@ tdm_utests_LDFLAGS = \
        -pthread
 
 check:
-       ./tdm_utests
+       ./tdm-utests
similarity index 100%
rename from ut/src/ut_tdm.cpp
rename to utests/src/ut_tdm.cpp
similarity index 100%
rename from ut/stubs/stub_tdm.h
rename to utests/stubs/stub_tdm.h
similarity index 100%
rename from ut/stubs/tbm_type.h
rename to utests/stubs/tbm_type.h