aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-03 22:41:21 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-03 22:41:21 +0200
commit826f84808dd44507eee8454eee8b3c5ec2d51c0f (patch)
tree312464d8c1aa17b1952f65da91d8e701e4dd9e45
parent1defcc371c6e286d4396dca2c4018ba1f3d9be59 (diff)
downloadlibayatana-appindicator-826f84808dd44507eee8454eee8b3c5ec2d51c0f.tar.gz
libayatana-appindicator-826f84808dd44507eee8454eee8b3c5ec2d51c0f.tar.bz2
libayatana-appindicator-826f84808dd44507eee8454eee8b3c5ec2d51c0f.zip
debian/rules: Make really really sure that unit tests are not run in parallel (although this looks ugly).
-rwxr-xr-xdebian/rules16
1 files changed, 10 insertions, 6 deletions
diff --git a/debian/rules b/debian/rules
index d4c149e..7783b5d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -61,14 +61,18 @@ override_dh_install:
dh_install -plibayatana-appindicator0.1-cil-dev --fail-missing --sourcedir=debian/tmp/gtk2; \
fi
-override_dh_auto_test: $(FLAVORS:%=dotest-%)
+override_dh_auto_test:
+ mkdir -p $(CURDIR)/debian/tmphome-gtk2
+ export HOME=$(CURDIR)/debian/tmphome-gtk2 && dh_auto_test --no-parallel --builddirectory=build/gtk2
+ # View test's log file for better debugging of problems when built in clean chroots.
+ if [ -e build/gtk2/tests/test-suite.log ]; then cat build/gtk2/tests/test-suite.log; fi
+ rm -Rf $(CURDIR)/debian/tmphome-gtk2
-dotest-%:
- mkdir -p $(CURDIR)/debian/tmphome-$*
- export HOME=$(CURDIR)/debian/tmphome-$* && dh_auto_test --no-parallel --builddirectory=build/$*
+ mkdir -p $(CURDIR)/debian/tmphome-gtk3
+ export HOME=$(CURDIR)/debian/tmphome-gtk3 && dh_auto_test --no-parallel --builddirectory=build/gtk3
# View test's log file for better debugging of problems when built in clean chroots.
- if [ -e build/$*/tests/test-suite.log ]; then cat build/$*/tests/test-suite.log; fi
- rm -Rf $(CURDIR)/debian/tmphome-$*
+ if [ -e build/gtk3/tests/test-suite.log ]; then cat build/gtk3/tests/test-suite.log; fi
+ rm -Rf $(CURDIR)/debian/tmphome-gtk3
override_dh_auto_clean:
dh_auto_clean