if HAVE_UTEST
-SUBDIRS = src ut
+SUBDIRS = src utests
else
SUBDIRS = src
endif
[ 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])
src/Makefile
Makefile
libtbm.pc
- ut/Makefile])
+ utests/Makefile])
echo ""
echo "CFLAGS : $CFLAGS"
%bcond_with x
%bcond_with wayland
-%bcond_with utest
+%define UTEST_PACKAGE 0
Name: libtbm
Version: 2.1.7
Development Files.
-%if %{with utest}
+%if "%{UTEST_PACKAGE}" == "1"
%package utests
Summary: Tizen Buffer Manager unit tests package
Group: System/Libraries
%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
%{_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
-bin_PROGRAMS = tbm_utests
+bin_PROGRAMS = tbm-utests
tbm_utests_SOURCES = \
src/main_tests.cpp \
--coverage
check:
- ./tbm_utests
+ ./tbm-utests