X11 server performance test program. Doubles as a decent
XWayland/Glamor stress test.

Signed-off-by: Lucas Stach <[email protected]>
---
 rules/x11perf.in   | 11 +++++++++++
 rules/x11perf.make | 49 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)
 create mode 100644 rules/x11perf.in
 create mode 100644 rules/x11perf.make

diff --git a/rules/x11perf.in b/rules/x11perf.in
new file mode 100644
index 000000000000..4bdc5c7f0cc8
--- /dev/null
+++ b/rules/x11perf.in
@@ -0,0 +1,11 @@
+## SECTION=test_suites
+
+config X11PERF
+       tristate
+       prompt "x11perf"
+       select XORG_LIB_X11
+       select XORG_LIB_XMU
+       select XORG_LIB_XRENDER
+       select XORGPROTO
+       help
+         X11 server performance test program
diff --git a/rules/x11perf.make b/rules/x11perf.make
new file mode 100644
index 000000000000..84732c632f57
--- /dev/null
+++ b/rules/x11perf.make
@@ -0,0 +1,49 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2024 by Lucas Stach <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_X11PERF) += x11perf
+
+#
+# Paths and names
+#
+X11PERF_VERSION                := 1.7.0
+X11PERF_MD5            := c740047b28c2a55829849c7043d523c9
+X11PERF                        := x11perf-$(X11PERF_VERSION)
+X11PERF_SUFFIX         := tar.xz
+X11PERF_URL            := 
https://www.x.org/releases/individual/test/$(X11PERF).$(X11PERF_SUFFIX)
+X11PERF_SOURCE         := $(SRCDIR)/$(X11PERF).$(X11PERF_SUFFIX)
+X11PERF_DIR            := $(BUILDDIR)/$(X11PERF)
+X11PERF_LICENSE                := MIT
+X11PERF_LICENSE_FILES  := file://COPYING;md5=428ca4d67a41fcd4fc3283dce9bbda7e
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+X11PERF_CONF_TOOL      := autoconf
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/x11perf.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, x11perf)
+       @$(call install_fixup, x11perf,PRIORITY,optional)
+       @$(call install_fixup, x11perf,SECTION,base)
+       @$(call install_fixup, x11perf,AUTHOR,"Lucas Stach 
<[email protected]>")
+       @$(call install_fixup, x11perf,DESCRIPTION,missing)
+
+       @$(call install_copy, x11perf, 0, 0, 0755, -, /usr/bin/x11perf)
+
+       @$(call install_finish, x11perf)
+
+       @$(call touch)
-- 
2.39.5


Reply via email to