summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-11-26 10:03:56 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2020-11-30 09:08:13 +1000
commit3627b194c43dc4c07445f7007db9d0ef3783892a (patch)
tree49a5919645b4a2f9f34c93abe70b4a0bcadfb9e9
parentd0847fc23054b4c1478b978087b8fa0a211a5fd1 (diff)
Unconditionally require evemu
This condition was introduced when evemu was a new project and not available everywhere. That hasn't been true for years anymore, let's just make this unconditional and drop some of the ifdefs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--aclocal/xorg-gtest.m42
-rw-r--r--configure.ac15
-rw-r--r--include/xorg/gtest/xorg-gtest.h3
-rw-r--r--src/xorg-gtest-all.cpp3
-rw-r--r--test/device-test.cpp4
-rw-r--r--test/xserver-test.cpp2
6 files changed, 2 insertions, 27 deletions
diff --git a/aclocal/xorg-gtest.m4 b/aclocal/xorg-gtest.m4
index 6bd0d4f..9453156 100644
--- a/aclocal/xorg-gtest.m4
+++ b/aclocal/xorg-gtest.m4
@@ -61,7 +61,7 @@ AC_DEFUN([CHECK_XORG_GTEST],
[have_xorg_gtest_evemu=yes],
[have_xorg_gtest_evemu=no])])
AS_IF([test "x$have_xorg_gtest_evemu" = xyes],
- [XORG_GTEST_CPPFLAGS="$XORG_GTEST_CPPFLAGS -DHAVE_EVEMU"])
+ [XORG_GTEST_CPPFLAGS="$XORG_GTEST_CPPFLAGS"])
AS_IF([test "x$have_xorg_gtest" = xyes],
[AC_SUBST(GTEST_SOURCE)]
diff --git a/configure.ac b/configure.ac
index 80e1c67..68e9ae5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,27 +26,14 @@ XORG_ENABLE_INTEGRATION_TESTS([yes])
XORG_WITH_DOXYGEN
PKG_CHECK_MODULES(X11, x11 xi)
+PKG_CHECK_MODULES(EVEMU, evemu)
AC_ARG_WITH(logfile-dir, [AS_HELP_STRING([--with-logfile-dir=/tmp]),
[Base path for log files used as defaults and during tests (default: /tmp)]],
[LOGFILE_DIR="$withval"], [LOGFILE_DIR="/tmp"])
AC_DEFINE_DIR(LOGFILE_DIR, LOGFILE_DIR, [Log file path])
AC_SUBST(DUMMY_CONF_PATH, ['${LOGFILE_DIR}'])
-
-# Check if we should include support for evemu
-AC_ARG_WITH([evemu],
- [AS_HELP_STRING([--with-evemu],
- [support Linux input device recording playback (default: enabled if available)])],
- [],
- [with_evemu=check])
-PKG_CHECK_MODULES(EVEMU, [evemu >= 1.0.10] , [have_evemu=yes], [have_evemu=no])
-
-AS_IF([test "x$with_evemu" == xyes && test "x$have_evemu" != xyes],
- AC_MSG_ERROR([package 'evemu' not found]))
-
-AM_CONDITIONAL([HAVE_EVEMU], [test "x$have_evemu" = "xyes"])
-AS_IF([test "x$have_evemu" = xyes], [AC_DEFINE([HAVE_EVEMU])])
AC_SUBST(SOURCEDIR, ['${prefix}/src/xorg-gtest'])
AC_SUBST(DUMMY_CONF_PATH, ['${datarootdir}/xorg/gtest/dummy.conf'])
diff --git a/include/xorg/gtest/xorg-gtest.h b/include/xorg/gtest/xorg-gtest.h
index ccb3caa..47525e6 100644
--- a/include/xorg/gtest/xorg-gtest.h
+++ b/include/xorg/gtest/xorg-gtest.h
@@ -32,10 +32,7 @@
#include "xorg-gtest-process.h"
#include "xorg-gtest-xserver.h"
#include "xorg-gtest-test.h"
-
-#ifdef HAVE_EVEMU
#include "evemu/xorg-gtest-device.h"
-#endif
#define XORG_TESTCASE(message) \
SCOPED_TRACE("\n::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\n" \
diff --git a/src/xorg-gtest-all.cpp b/src/xorg-gtest-all.cpp
index 85e17c0..3f46cff 100644
--- a/src/xorg-gtest-all.cpp
+++ b/src/xorg-gtest-all.cpp
@@ -29,7 +29,4 @@
#include "src/process.cpp"
#include "src/xserver.cpp"
#include "src/test.cpp"
-
-#ifdef HAVE_EVEMU
#include "src/device.cpp"
-#endif
diff --git a/test/device-test.cpp b/test/device-test.cpp
index b7b411b..0f22d5c 100644
--- a/test/device-test.cpp
+++ b/test/device-test.cpp
@@ -1,7 +1,6 @@
#include <gtest/gtest.h>
#include <xorg/gtest/xorg-gtest.h>
-#ifdef HAVE_EVEMU
#ifndef BTN_TOOL_QUINTTAP
#define BTN_TOOL_QUINTTAP 0x148
#endif
@@ -190,9 +189,6 @@ TEST(Device, AbsAxisData) {
}
}
-
-#endif
-
int main(int argc, char *argv[]) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
diff --git a/test/xserver-test.cpp b/test/xserver-test.cpp
index ac37f5f..45e47f0 100644
--- a/test/xserver-test.cpp
+++ b/test/xserver-test.cpp
@@ -166,7 +166,6 @@ TEST(XServer, WaitForDeviceEventMask)
delete m.mask;
}
-#ifdef HAVE_EVEMU
TEST(XServer, WaitForExistingDevice)
{
XORG_TESTCASE("WaitForDevice() returns true for already existing device");
@@ -202,7 +201,6 @@ TEST(XServer, WaitForNewDevice)
ASSERT_TRUE(XServer::WaitForDevice(dpy, "PIXART USB OPTICAL MOUSE", 1000));
}
-#endif
TEST(XServer, IOErrorException)
{