From: Ian Jackson Date: Sat, 18 Aug 2018 23:16:03 +0000 (+0100) Subject: autopkgtests: Test default tcl version X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=commitdiff_plain;h=4e6ccd9cc8363ee2c8f744af8873c4f2e59bf864 autopkgtests: Test default tcl version Signed-off-by: Ian Jackson --- diff --git a/debian/regenerate-autopkgtests b/debian/regenerate-autopkgtests index 396df16..3213e22 100755 --- a/debian/regenerate-autopkgtests +++ b/debian/regenerate-autopkgtests @@ -13,9 +13,10 @@ for sv in */debian-substvars; do if ! test -e "$sv"; then continue; fi make -C "$d" test-load.tcl printf "%s..." $d - for v in "$@"; do - t=$d--$v - printf " %s" $v + for v in '' "$@"; do + vv=${v:-def} + t=$d--$vv + printf " %s" $vv exec 3>$dt/$t echo >&3 "#!/usr/bin/tclsh$v" cat >&3 "$d"/test-load.tcl diff --git a/debian/tests/adns--def b/debian/tests/adns--def new file mode 100755 index 0000000..c18bb01 --- /dev/null +++ b/debian/tests/adns--def @@ -0,0 +1,4 @@ +#!/usr/bin/tclsh +load chiark_tcl_adns-1.so +set t {adns/runtest.tcl} +if {[file exists $t]} { source $t } diff --git a/debian/tests/cdb--def b/debian/tests/cdb--def new file mode 100755 index 0000000..46fb5e8 --- /dev/null +++ b/debian/tests/cdb--def @@ -0,0 +1,4 @@ +#!/usr/bin/tclsh +load chiark_tcl_cdb-1.so +set t {cdb/runtest.tcl} +if {[file exists $t]} { source $t } diff --git a/debian/tests/control b/debian/tests/control index 6f1da00..6106485 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,3 +1,6 @@ +Tests: adns--def +Depends: tcl, libadns1 (>= 1.5.0~), libc6 (>= 2.2.5), libtcl-chiark-1 + Tests: adns--8.5 Depends: tcl8.5, libadns1 (>= 1.5.0~), libc6 (>= 2.2.5), libtcl-chiark-1 @@ -7,6 +10,9 @@ Depends: tcl8.6, libadns1 (>= 1.5.0~), libc6 (>= 2.2.5), libtcl-chiark-1 Tests: adns--8.7 Depends: tcl8.7, libadns1 (>= 1.5.0~), libc6 (>= 2.2.5), libtcl-chiark-1 +Tests: cdb--def +Depends: tcl, libc6 (>= 2.14), libcdb1, libtcl-chiark-1 + Tests: cdb--8.5 Depends: tcl8.5, libc6 (>= 2.14), libcdb1, libtcl-chiark-1 @@ -16,6 +22,9 @@ Depends: tcl8.6, libc6 (>= 2.14), libcdb1, libtcl-chiark-1 Tests: cdb--8.7 Depends: tcl8.7, libc6 (>= 2.14), libcdb1, libtcl-chiark-1 +Tests: crypto--def +Depends: tcl, libc6 (>= 2.14), libnettle6, libtcl-chiark-1 + Tests: crypto--8.5 Depends: tcl8.5, libc6 (>= 2.14), libnettle6, libtcl-chiark-1 @@ -25,6 +34,9 @@ Depends: tcl8.6, libc6 (>= 2.14), libnettle6, libtcl-chiark-1 Tests: crypto--8.7 Depends: tcl8.7, libc6 (>= 2.14), libnettle6, libtcl-chiark-1 +Tests: dgram--def +Depends: tcl, libc6 (>= 2.14), libtcl-chiark-1 + Tests: dgram--8.5 Depends: tcl8.5, libc6 (>= 2.14), libtcl-chiark-1 @@ -34,6 +46,9 @@ Depends: tcl8.6, libc6 (>= 2.14), libtcl-chiark-1 Tests: dgram--8.7 Depends: tcl8.7, libc6 (>= 2.14), libtcl-chiark-1 +Tests: hbytes--def +Depends: tcl, libc6 (>= 2.14), libtcl-chiark-1 + Tests: hbytes--8.5 Depends: tcl8.5, libc6 (>= 2.14), libtcl-chiark-1 @@ -43,6 +58,9 @@ Depends: tcl8.6, libc6 (>= 2.14), libtcl-chiark-1 Tests: hbytes--8.7 Depends: tcl8.7, libc6 (>= 2.14), libtcl-chiark-1 +Tests: tuntap--def +Depends: tcl, libc6 (>= 2.2.5), libtcl-chiark-1 + Tests: tuntap--8.5 Depends: tcl8.5, libc6 (>= 2.2.5), libtcl-chiark-1 diff --git a/debian/tests/crypto--def b/debian/tests/crypto--def new file mode 100755 index 0000000..1b14b4f --- /dev/null +++ b/debian/tests/crypto--def @@ -0,0 +1,4 @@ +#!/usr/bin/tclsh +load chiark_tcl_crypto-1.so +set t {crypto/runtest.tcl} +if {[file exists $t]} { source $t } diff --git a/debian/tests/dgram--def b/debian/tests/dgram--def new file mode 100755 index 0000000..874cfd2 --- /dev/null +++ b/debian/tests/dgram--def @@ -0,0 +1,4 @@ +#!/usr/bin/tclsh +load chiark_tcl_dgram-1.so +set t {dgram/runtest.tcl} +if {[file exists $t]} { source $t } diff --git a/debian/tests/hbytes--def b/debian/tests/hbytes--def new file mode 100755 index 0000000..c437940 --- /dev/null +++ b/debian/tests/hbytes--def @@ -0,0 +1,4 @@ +#!/usr/bin/tclsh +load chiark_tcl_hbytes-1.so +set t {hbytes/runtest.tcl} +if {[file exists $t]} { source $t } diff --git a/debian/tests/tuntap--def b/debian/tests/tuntap--def new file mode 100755 index 0000000..58c5244 --- /dev/null +++ b/debian/tests/tuntap--def @@ -0,0 +1,4 @@ +#!/usr/bin/tclsh +load chiark_tcl_tuntap-1.so +set t {tuntap/runtest.tcl} +if {[file exists $t]} { source $t }