chiark / gitweb /
autopkgtests: Test default tcl version
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 18 Aug 2018 23:16:03 +0000 (00:16 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 18 Aug 2018 23:20:06 +0000 (00:20 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/regenerate-autopkgtests
debian/tests/adns--def [new file with mode: 0755]
debian/tests/cdb--def [new file with mode: 0755]
debian/tests/control
debian/tests/crypto--def [new file with mode: 0755]
debian/tests/dgram--def [new file with mode: 0755]
debian/tests/hbytes--def [new file with mode: 0755]
debian/tests/tuntap--def [new file with mode: 0755]

index 396df161551682f867e9e375fe87ab4779e053a7..3213e22b9e4171dca02840bb9f2e52d778731765 100755 (executable)
@@ -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
        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
                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 (executable)
index 0000000..c18bb01
--- /dev/null
@@ -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 (executable)
index 0000000..46fb5e8
--- /dev/null
@@ -0,0 +1,4 @@
+#!/usr/bin/tclsh
+load chiark_tcl_cdb-1.so
+set t {cdb/runtest.tcl}
+if {[file exists $t]} { source $t }
index 6f1da000f99eb5f81e5b4b05f4bf09deb3e0a9e7..6106485311e74a614de19aa83783cf90f7400702 100644 (file)
@@ -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
 
 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: 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
 
 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: 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
 
 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: 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
 
 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: 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
 
 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: 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
 
 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 (executable)
index 0000000..1b14b4f
--- /dev/null
@@ -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 (executable)
index 0000000..874cfd2
--- /dev/null
@@ -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 (executable)
index 0000000..c437940
--- /dev/null
@@ -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 (executable)
index 0000000..58c5244
--- /dev/null
@@ -0,0 +1,4 @@
+#!/usr/bin/tclsh
+load chiark_tcl_tuntap-1.so
+set t {tuntap/runtest.tcl}
+if {[file exists $t]} { source $t }