MAINTAINERCLEANFILES = Makefile.in
if HAVE_UTEST
-SUBDIRS = src tool utests
+SUBDIRS = src tool unittests
else
SUBDIRS = src tool
endif
AC_PROG_CXX
AC_PROG_LIBTOOL
-AC_ARG_WITH(utests, AS_HELP_STRING([--with-utests=yes/no], [whether build/run unit tests or not]),
- [ utests="$withval" ],
- [ utests="no" ])
+AC_ARG_WITH(unittests, AS_HELP_STRING([--with-unittests=yes/no], [whether build/run unit tests or not]),
+ [ unittests="$withval" ],
+ [ unittests="no" ])
-AM_CONDITIONAL(HAVE_UTEST, test "x$utests" = "xyes")
+AM_CONDITIONAL(HAVE_UTEST, test "x$unittests" = "xyes")
AC_PATH_PROG([wayland_scanner], [wayland-scanner])
if test x$wayland_scanner = x; then
src/Makefile
test/Makefile
tool/Makefile
- utests/Makefile
+ unittests/Makefile
wayland-tbm-server.pc
wayland-tbm-client.pc
])
Development header files for use with Wayland protocol
%if "%{UTEST_PACKAGE}" == "1"
-%package utests
+%package unittests
Summary: Wayland TBM unit test package
Group: Graphics & UI Framework/Wayland Window System
-%description utests
+%description unittests
Test module for testing wayland-tbm APIs
%endif
LDFLAGS+=" -lgcov"
%endif
-%reconfigure --with-utests=${UTEST} \
+%reconfigure --with-unittests=${UTEST} \
CFLAGS="${CFLAGS} -Wall -Werror" \
CXXFLAGS="${CXXFLAGS} -Wall -Werror" \
LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
%doc README TODO
%if "%{UTEST_PACKAGE}" == "1"
-%files utests
+%files unittests
%defattr(-,root,root,-)
-%{_bindir}/wayland-tbm-utests
+%{_bindir}/wayland-tbm-unittests
%endif
%changelog
-bin_PROGRAMS = wayland-tbm-utests
+bin_PROGRAMS = wayland-tbm-unittests
-wayland_tbm_utests_CXXFLAGS = \
+wayland_tbm_unittests_CXXFLAGS = \
$(CXXFLAGS) \
$(WL_TBM_COMMON_CFLAGS) \
$(WL_TBM_CLIENT_CFLAGS) \
# Warnings occur because we build project with g++.
# In C++ we need to use explicit types conversion.
-wayland_tbm_utests_LDFLAGS = \
+wayland_tbm_unittests_LDFLAGS = \
${LDFLAGS} \
$(WL_TBM_COMMON_LIBS) \
$(WL_TBM_CLIENT_LIBS) \
$(top_builddir)/src/libwayland-tbm-server.la \
-lgtest
-wayland_tbm_utests_SOURCES = \
+wayland_tbm_unittests_SOURCES = \
src/ut_main.cpp \
src/ut_base.cpp \
src/ut_wayland_tbm.cpp
check:
- ./wayland-tbm-utests
+ ./wayland-tbm-unittests