summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-23 23:19:14 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-26 22:17:55 +0200
commit4b1fb7b1876bdb46cb7a0329158f12638baa2464 (patch)
tree3af7ea8b9049e1a5fffca485a95f05464f5f1ed6 /test
parent3c973af2ff85e7aae7fbdd84e7633e9d9308dde7 (diff)
downloadapt-4b1fb7b1876bdb46cb7a0329158f12638baa2464.tar.gz
test: Get rid of debhelper rules.tiny example dep
Gbp-Dch: ignore
Diffstat (limited to 'test')
-rw-r--r--test/integration/framework14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/integration/framework b/test/integration/framework
index ffcb8af04..39c9fcde2 100644
--- a/test/integration/framework
+++ b/test/integration/framework
@@ -701,13 +701,25 @@ Package: $NAME"
echo '3.0 (native)' > "${BUILDDIR}/debian/source/format"
}
+make_tiny_rules() {
+ local OUT="$1"
+ if command -v gmake >/dev/null 2>&1; then
+ [ -e ${TMPWORKINGDIRECTORY}/bin/make ] || ln -s $(command -v gmake) ${TMPWORKINGDIRECTORY}/bin/make
+ echo "#!${TMPWORKINGDIRECTORY}/bin/make -f" > "$OUT"
+ else
+ echo '#!/usr/bin/make -f' > "$OUT"
+ fi
+ echo '%:' >> "$OUT"
+ echo ' dh $@' >> "$OUT"
+}
+
setupsimplenativepackage() {
_setupsimplenativepackage "$@"
local NAME="$1"
local VERSION="$3"
local BUILDDIR="${TMPWORKINGDIRECTORY}/incoming/${NAME}-${VERSION}"
test -e "${BUILDDIR}/debian/compat" || echo '7' > "${BUILDDIR}/debian/compat"
- test -e "${BUILDDIR}/debian/rules" || cp /usr/share/doc/debhelper/examples/rules.tiny "${BUILDDIR}/debian/rules"
+ test -e "${BUILDDIR}/debian/rules" || make_tiny_rules "${BUILDDIR}/debian/rules"
}
buildsimplenativepackage() {