From 66f193e4ef6f0d060dc7a7357aafb84f3f419f50 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 24 May 2025 18:52:35 +0100 Subject: [PATCH] debian: tests: Prepare for restrictions from test cases Signed-off-by: Ian Jackson --- debian/regenerate-autopkgtests | 4 +++- debian/tests/control | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/regenerate-autopkgtests b/debian/regenerate-autopkgtests index dc465c3..8e63f57 100755 --- a/debian/regenerate-autopkgtests +++ b/debian/regenerate-autopkgtests @@ -25,10 +25,12 @@ for sv in */debian-substvars; do chmod +x $dt/$t echo >&4 "Tests: $t" sed "s/^shlibs:Depends=/Depends: tcl$v, /" >&4 $sv + restrictions='' case $v in '') ;; - ?*) echo >&4 'Restrictions: skip-not-installable' ;; + ?*) restrictions+=' skip-not-installable'; esac + echo >&4 "Restrictions:$restrictions" echo >&4 done echo diff --git a/debian/tests/control b/debian/tests/control index 2a27dad..849b1ee 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,5 +1,6 @@ Tests: adns--def Depends: tcl, libadns1t64 (>= 1.5.0~), libc6 (>= 2.2.5), libtcl-chiark-1 (>= 1.3.5+b1) +Restrictions: Tests: adns--8.5 Depends: tcl8.5, libadns1t64 (>= 1.5.0~), libc6 (>= 2.2.5), libtcl-chiark-1 (>= 1.3.5+b1) @@ -15,6 +16,7 @@ Restrictions: skip-not-installable Tests: cdb--def Depends: tcl, libc6 (>= 2.33), libcdb1 (>= 0.76), libtcl-chiark-1 (>= 1.3.5+b1) +Restrictions: Tests: cdb--8.5 Depends: tcl8.5, libc6 (>= 2.33), libcdb1 (>= 0.76), libtcl-chiark-1 (>= 1.3.5+b1) @@ -30,6 +32,7 @@ Restrictions: skip-not-installable Tests: crypto--def Depends: tcl, libc6 (>= 2.14), libnettle8t64, libtcl-chiark-1 (>= 1.3.5+b1) +Restrictions: Tests: crypto--8.5 Depends: tcl8.5, libc6 (>= 2.14), libnettle8t64, libtcl-chiark-1 (>= 1.3.5+b1) @@ -45,6 +48,7 @@ Restrictions: skip-not-installable Tests: dgram--def Depends: tcl, libc6 (>= 2.14), libtcl-chiark-1 (>= 1.3.5+b1) +Restrictions: Tests: dgram--8.5 Depends: tcl8.5, libc6 (>= 2.14), libtcl-chiark-1 (>= 1.3.5+b1) @@ -60,6 +64,7 @@ Restrictions: skip-not-installable Tests: hbytes--def Depends: tcl, libc6 (>= 2.14), libtcl-chiark-1 (>= 1.3.5+b1) +Restrictions: Tests: hbytes--8.5 Depends: tcl8.5, libc6 (>= 2.14), libtcl-chiark-1 (>= 1.3.5+b1) @@ -75,6 +80,7 @@ Restrictions: skip-not-installable Tests: tuntap--def Depends: tcl, libc6 (>= 2.2.5), libtcl-chiark-1 (>= 1.3.5+b1) +Restrictions: Tests: tuntap--8.5 Depends: tcl8.5, libc6 (>= 2.2.5), libtcl-chiark-1 (>= 1.3.5+b1) -- 2.30.2