From: SooChan Lim Date: Tue, 31 Oct 2017 00:44:48 +0000 (+0900) Subject: utest: rename the ut to the utests X-Git-Tag: accepted/tizen/unified/20171124.064515~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a92540b450ed2b67099b3d349302e6815b9093ac;p=platform%2Fcore%2Fuifw%2Flibtbm.git utest: rename the ut to the utests Change-Id: I23f1191421ad9897870ab15781e779ed5719cd00 --- diff --git a/Makefile.am b/Makefile.am index feda427..ff28ee4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ if HAVE_UTEST -SUBDIRS = src ut +SUBDIRS = src utests else SUBDIRS = src endif diff --git a/configure.ac b/configure.ac index 7d6de1a..88a4960 100644 --- a/configure.ac +++ b/configure.ac @@ -51,11 +51,11 @@ AC_ARG_WITH(bufmgr-module-path, AS_HELP_STRING([--with-bufmgr-module-path=PATH], [ BUFMGR_MODULE_PATH="$withval" ], [ BUFMGR_MODULE_PATH="${DEFAULT_BUFMGR_MODULE_PATH}" ]) -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_DEFINE(BUFMGR_MODULE_DIR, "${BUFMGR_MODULE_PATH}", [Directory for the modules of tbm_bufmgr]) AC_DEFINE_UNQUOTED(BUFMGR_MODULE_DIR, "${BUFMGR_MODULE_PATH}", [Directory for the modules of tbm_bufmgr]) @@ -112,7 +112,7 @@ AC_OUTPUT([ src/Makefile Makefile libtbm.pc - ut/Makefile]) + utests/Makefile]) echo "" echo "CFLAGS : $CFLAGS" diff --git a/packaging/libtbm.spec b/packaging/libtbm.spec index 715a562..70b478a 100644 --- a/packaging/libtbm.spec +++ b/packaging/libtbm.spec @@ -1,6 +1,6 @@ %bcond_with x %bcond_with wayland -%bcond_with utest +%define UTEST_PACKAGE 0 Name: libtbm Version: 2.1.7 @@ -34,7 +34,7 @@ The library for Tizen Buffer Manager. Development Files. -%if %{with utest} +%if "%{UTEST_PACKAGE}" == "1" %package utests Summary: Tizen Buffer Manager unit tests package Group: System/Libraries @@ -52,15 +52,15 @@ cp %{SOURCE1001} . %build UTEST="no" -%if %{with utest} +%if "%{UTEST_PACKAGE}" == "1" UTEST="yes" %endif %if %{with wayland} -%reconfigure --prefix=%{_prefix} --with-tbm-platform=WAYLAND --with-utest=${UTEST} \ +%reconfigure --prefix=%{_prefix} --with-tbm-platform=WAYLAND --with-utests=${UTEST} \ CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed" %else -%reconfigure --prefix=%{_prefix} --with-tbm-platform=X11 --with-utest=${UTEST} \ +%reconfigure --prefix=%{_prefix} --with-tbm-platform=X11 --with-utests=${UTEST} \ CFLAGS="${CFLAGS} -Wall -Werror" LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed" %endif @@ -108,8 +108,8 @@ rm -f %{_unitdir_user}/basic.target.wants/tbm-drm-auth-user.path %{_libdir}/libtbm.so %{_libdir}/pkgconfig/libtbm.pc -%if %{with utest} +%if "%{UTEST_PACKAGE}" == "1" %files utests %defattr(-,root,root,-) -%{_bindir}/tbm_utests +%{_bindir}/tbm-utests %endif diff --git a/ut/Makefile.am b/utests/Makefile.am similarity index 94% rename from ut/Makefile.am rename to utests/Makefile.am index 86bee9c..3eb74a2 100644 --- a/ut/Makefile.am +++ b/utests/Makefile.am @@ -1,4 +1,4 @@ -bin_PROGRAMS = tbm_utests +bin_PROGRAMS = tbm-utests tbm_utests_SOURCES = \ src/main_tests.cpp \ @@ -33,4 +33,4 @@ tbm_utests_LDFLAGS = \ --coverage check: - ./tbm_utests + ./tbm-utests diff --git a/ut/src/main_tests.cpp b/utests/src/main_tests.cpp similarity index 100% rename from ut/src/main_tests.cpp rename to utests/src/main_tests.cpp diff --git a/ut/src/ut_tbm_bufmgr.cpp b/utests/src/ut_tbm_bufmgr.cpp similarity index 100% rename from ut/src/ut_tbm_bufmgr.cpp rename to utests/src/ut_tbm_bufmgr.cpp diff --git a/ut/src/ut_tbm_bufmgr.h b/utests/src/ut_tbm_bufmgr.h similarity index 100% rename from ut/src/ut_tbm_bufmgr.h rename to utests/src/ut_tbm_bufmgr.h diff --git a/ut/src/ut_tbm_bufmgr_backend.cpp b/utests/src/ut_tbm_bufmgr_backend.cpp similarity index 100% rename from ut/src/ut_tbm_bufmgr_backend.cpp rename to utests/src/ut_tbm_bufmgr_backend.cpp diff --git a/ut/src/ut_tbm_surface.cpp b/utests/src/ut_tbm_surface.cpp similarity index 100% rename from ut/src/ut_tbm_surface.cpp rename to utests/src/ut_tbm_surface.cpp diff --git a/ut/src/ut_tbm_surface_internal.cpp b/utests/src/ut_tbm_surface_internal.cpp similarity index 100% rename from ut/src/ut_tbm_surface_internal.cpp rename to utests/src/ut_tbm_surface_internal.cpp diff --git a/ut/src/ut_tbm_surface_queue.cpp b/utests/src/ut_tbm_surface_queue.cpp similarity index 100% rename from ut/src/ut_tbm_surface_queue.cpp rename to utests/src/ut_tbm_surface_queue.cpp diff --git a/ut/stubs/pthread_stubs.cpp b/utests/stubs/pthread_stubs.cpp similarity index 100% rename from ut/stubs/pthread_stubs.cpp rename to utests/stubs/pthread_stubs.cpp diff --git a/ut/stubs/pthread_stubs.h b/utests/stubs/pthread_stubs.h similarity index 100% rename from ut/stubs/pthread_stubs.h rename to utests/stubs/pthread_stubs.h diff --git a/ut/stubs/stdlib_stubs.cpp b/utests/stubs/stdlib_stubs.cpp similarity index 100% rename from ut/stubs/stdlib_stubs.cpp rename to utests/stubs/stdlib_stubs.cpp diff --git a/ut/stubs/stdlib_stubs.h b/utests/stubs/stdlib_stubs.h similarity index 100% rename from ut/stubs/stdlib_stubs.h rename to utests/stubs/stdlib_stubs.h diff --git a/ut/stubs/tbm_bufmgr_stubs.h b/utests/stubs/tbm_bufmgr_stubs.h similarity index 100% rename from ut/stubs/tbm_bufmgr_stubs.h rename to utests/stubs/tbm_bufmgr_stubs.h