diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-12-04 10:29:39 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2020-12-04 11:35:35 +0100 |
commit | d6b4c6b8488e38d57da9727e774e47f6cf99f4c8 (patch) | |
tree | 4a3d207ffadb761a93dea3117b154ee16adc36bf | |
parent | 29f118a4349f69ccd7ae70327193c0368ba6d2ce (diff) | |
download | libayatana-indicator-d6b4c6b8488e38d57da9727e774e47f6cf99f4c8.tar.gz libayatana-indicator-d6b4c6b8488e38d57da9727e774e47f6cf99f4c8.tar.bz2 libayatana-indicator-d6b4c6b8488e38d57da9727e774e47f6cf99f4c8.zip |
tests/Makefile.am: Wrap test-indicator-ng around Xvfb and dbus-runner.
-rw-r--r-- | tests/Makefile.am | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 3d7ea3b..87430f6 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -499,8 +499,20 @@ test_indicator_ng_LDADD = \ -L$(top_builddir)/libayatana-indicator/.libs \ $(INDICATOR_LIB) -TESTS += test-indicator-ng -DISTCLEANFILES += test-indicator-ng + +test-indicator-ng-dbus-runner: test-indicator-ng Makefile.am + @echo "#!/bin/sh" > $@ + @echo $(DBUS_RUNNER) --task ./test-indicator-ng >> $@ + @chmod +x $@ + +test-indicator-ng-tester: test-indicator-ng-dbus-runner Makefile.am + @echo "#!/bin/bash" > $@ + @echo $(XVFB_RUN) >> $@ + @echo gtester -k --verbose -o=$(XML_REPORT) ./test-indicator-ng-dbus-runner >> $@ + @chmod +x $@ + +TESTS += test-indicator-ng-tester +DISTCLEANFILES += test-indicator-ng-tester test-indicator-ng-dbus-runner test-indicator-ng # Mock indicator service check_PROGRAMS += indicator-test-service |