From 5c790d583db9dfc596ae940133483e4e62165b1c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 29 Apr 2024 06:26:28 +0200 Subject: Adding debian version 3.8.0-3. Signed-off-by: Daniel Baumann --- debian/tests/control | 10 ++++++++++ debian/tests/flit-user | 27 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 debian/tests/control create mode 100644 debian/tests/flit-user (limited to 'debian/tests') diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..abb280a --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,10 @@ +Tests: flit-user +Depends: + python3-all, + python3-docutils, + python3-pytest, + python3-requests, + python3-responses, + python3-testpath, + @ +Restrictions: allow-stderr diff --git a/debian/tests/flit-user b/debian/tests/flit-user new file mode 100644 index 0000000..3aeb71f --- /dev/null +++ b/debian/tests/flit-user @@ -0,0 +1,27 @@ +#!/bin/sh +set -e + +user=testing + +if [ "$AUTOPKGTEST_TMP" = "" ] ; then + AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX) +fi +cd "$AUTOPKGTEST_TMP" + +if [ $(id -u) = 0 ] +then + adduser --quiet --system --group --no-create-home $user + chown -R $user . + runuser="runuser -p -u $user --" +else + runuser="" +fi + +for py in $(py3versions -s); do + $runuser $py -m pytest -k 'not test_find_in_path' --pyargs flit_core +done + +if [ $(id -u) = 0 ] +then + deluser --quiet $user +fi -- cgit v1.2.3