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
# 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
client/libtdm-client.pc
client/Makefile
tools/Makefile
- ut/Makefile])
+ utests/Makefile])
echo ""
echo "$PACKAGE_STRING will be compiled with:"
-%bcond_with utest
+%define UTEST_PACKAGE 0
Name: libtdm
Version: 1.8.2
%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
%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}
%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
-bin_PROGRAMS = tdm_utests
+bin_PROGRAMS = tdm-utests
tdm_utests_SOURCES = \
src/main_tests.cpp \
-pthread
check:
- ./tdm_utests
+ ./tdm-utests