aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Guriev <nicholas@guriev.su>2021-04-24 23:10:31 +0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-05 15:47:16 +0200
commitfa0b50e747e8be0b3ac17367efdf11b8c8f3fcd5 (patch)
treec59b6cee80de6cbc55fb497265db947cabef67e0
parentfdd18c9d53ca50b435c5965f748b2c32a745e8a7 (diff)
downloadayatana-indicator-datetime-fa0b50e747e8be0b3ac17367efdf11b8c8f3fcd5.tar.gz
ayatana-indicator-datetime-fa0b50e747e8be0b3ac17367efdf11b8c8f3fcd5.tar.bz2
ayatana-indicator-datetime-fa0b50e747e8be0b3ac17367efdf11b8c8f3fcd5.zip
debian/rules: Run tests while building DEB package.
-rw-r--r--debian/control14
-rwxr-xr-xdebian/rules2
2 files changed, 9 insertions, 7 deletions
diff --git a/debian/control b/debian/control
index df4d39f..0ede198 100644
--- a/debian/control
+++ b/debian/control
@@ -19,15 +19,15 @@ Build-Depends: cmake,
liblomiri-url-dispatcher-dev | hello,
libproperties-cpp-dev,
# for the test harness:
- libgtest-dev,
- libdbustest1-dev,
- dbus-test-runner,
- python3-dbusmock,
+ libgtest-dev <!nocheck>,
+ libdbustest1-dev <!nocheck>,
+ dbus-test-runner <!nocheck>,
+ python3-dbusmock <!nocheck>,
# for 12h/24h locale unit tests:
- locales,
+ locales <!nocheck>,
# for running live EDS tests:
- evolution-data-server,
- gvfs-daemons,
+ evolution-data-server <!nocheck>,
+ gvfs-daemons <!nocheck>,
systemd [linux-any],
# for phone alarm/calendar notification sound tests:
ubuntu-touch-sounds | hello,
diff --git a/debian/rules b/debian/rules
index 37eb8b7..0a1b6f7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,8 +5,10 @@ LDFLAGS += -Wl,-z,defs -Wl,--as-needed
%:
dh $@ --with systemd
+ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_configure:
dh_auto_configure -- -Denable_tests=OFF
+endif
override_dh_install:
dh_install --fail-missing