Skip to content

Commit

Permalink
contrib/dbus-test-runner: new package (19.04.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
anixedn authored and q66 committed Mar 22, 2024
1 parent 24ce29f commit a5d4d7f
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/dbus-test-runner-devel
13 changes: 13 additions & 0 deletions contrib/dbus-test-runner/patches/ignore-test-output.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 4f4aad9..275f809 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -154,7 +154,7 @@ test-no-tasks: Makefile.am
@chmod +x $@
XFAIL_TESTS += test-no-tasks

-TESTS += test-output
+#TESTS += test-output
test-output: Makefile.am
@echo "#!/bin/sh -e" > $@
@echo "$(DBUS_RUNNER) --task cat --parameter \"$(top_srcdir)/src/dbus-test-runner.c\" --task-name \"cat1\" --task cat --parameter \"$(top_srcdir)/src/dbus-test-runner.c\" --task-name \"cat2\" > testcat.output.txt" >> $@
13 changes: 13 additions & 0 deletions contrib/dbus-test-runner/patches/no-dbus-glib.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/configure.ac b/configure.ac
index d925acb..dd97b6b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,7 +32,7 @@ GIO_REQUIRED_VERSION=2.30
PKG_CHECK_MODULES(DBUS_TEST_RUNNER, glib-2.0 >= $GLIB_REQUIRED_VERSION
gio-2.0 >= $GIO_REQUIRED_VERSION
gio-unix-2.0 >= $GIO_REQUIRED_VERSION
- dbus-glib-1 >= $DBUS_REQUIRED_VERSION)
+ )
AC_SUBST(DBUS_TEST_RUNNER_CFLAGS)
AC_SUBST(DBUS_TEST_RUNNER_LIBS)

30 changes: 30 additions & 0 deletions contrib/dbus-test-runner/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
pkgname = "dbus-test-runner"
pkgver = "19.04.0"
pkgrel = 0
build_style = "gnu_configure"
configure_args = ["--disable-static"]
make_cmd = "gmake"
hostmakedepends = [
"automake",
"gettext-devel",
"gmake",
"intltool",
"libtool",
"pkgconf",
]
makedepends = [
"glib-devel",
]
depends = ["dbus"]
checkdepends = ["bash", "dbus", "python-dbusmock"]
pkgdesc = "Test executables under a new DBus session"
maintainer = "avgwst <avgwst@tutanota.de>"
license = "GPL-3.0-only"
url = "https://launchpad.net/dbus-test-runner"
source = f"{url}/{pkgver[:pkgver.rfind('.')]}/{pkgver}/+download/{pkgname}-{pkgver}.tar.gz"
sha256 = "645a32fbd909baf2c01438f0cbda29dc9cd01a7aba5504c45610d88e8a57cb76"


@subpackage("dbus-test-runner-devel")
def _devel(self):
return self.default_devel()

0 comments on commit a5d4d7f

Please sign in to comment.