Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
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
--- /dev/null
+#!/usr/bin/tclsh
+load chiark_tcl_adns-1.so
+set t {adns/runtest.tcl}
+if {[file exists $t]} { source $t }
--- /dev/null
+#!/usr/bin/tclsh
+load chiark_tcl_cdb-1.so
+set t {cdb/runtest.tcl}
+if {[file exists $t]} { source $t }
+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
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
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
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
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
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
--- /dev/null
+#!/usr/bin/tclsh
+load chiark_tcl_crypto-1.so
+set t {crypto/runtest.tcl}
+if {[file exists $t]} { source $t }
--- /dev/null
+#!/usr/bin/tclsh
+load chiark_tcl_dgram-1.so
+set t {dgram/runtest.tcl}
+if {[file exists $t]} { source $t }
--- /dev/null
+#!/usr/bin/tclsh
+load chiark_tcl_hbytes-1.so
+set t {hbytes/runtest.tcl}
+if {[file exists $t]} { source $t }
--- /dev/null
+#!/usr/bin/tclsh
+load chiark_tcl_tuntap-1.so
+set t {tuntap/runtest.tcl}
+if {[file exists $t]} { source $t }