summaryrefslogtreecommitdiffstats
path: root/debian/tests
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/control4
-rwxr-xr-xdebian/tests/self-build6
-rw-r--r--debian/tests/self-build.config.toml5
3 files changed, 15 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..b9d1863
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,4 @@
+Tests: self-build
+Restrictions: rw-build-tree, allow-stderr
+Architecture: amd64, armhf, i386, s390x #arm64 and ppc64el run out of disk space when running this test
+Depends: @builddeps@
diff --git a/debian/tests/self-build b/debian/tests/self-build
new file mode 100755
index 0000000..91e7381
--- /dev/null
+++ b/debian/tests/self-build
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+mkdir -p .cargo
+cp ./debian/tests/self-build.config.toml .cargo/config.toml
+export CFG_DISABLE_CROSS_TESTS=1
+exec cargo test -Zavoid-dev-deps
diff --git a/debian/tests/self-build.config.toml b/debian/tests/self-build.config.toml
new file mode 100644
index 0000000..8838d32
--- /dev/null
+++ b/debian/tests/self-build.config.toml
@@ -0,0 +1,5 @@
+[source.crates-io]
+replace-with = "dh-cargo-registry"
+
+[source.dh-cargo-registry]
+directory = "vendor"