X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/7cf5c72a6d353ed5a7e340562c11e54c21c85e5e..f7e192e7f9ed26e8c1aa77b9b9e4787b7120649a:/sys/tests.at diff --git a/sys/tests.at b/sys/tests.at index ac0774e..da79143 100644 --- a/sys/tests.at +++ b/sys/tests.at @@ -25,27 +25,42 @@ ### MA 02111-1307, USA. ###-------------------------------------------------------------------------- +### fdpass + +AT_SETUP([sys: fdpass]) +AT_KEYWORDS([sys fdpass]) + +fdpass=BUILDDIR/t/fdpass.t + +AT_CHECK([ + $fdpass server sock& + while ! [[ -S sock ]]; do sleep 1; done + $fdpass client sock && wait]) + +AT_CLEANUP + +###-------------------------------------------------------------------------- ### mdup AT_SETUP([sys: mdup]) AT_KEYWORDS([sys mdup]) -mdup=BUILDDIR/t/mdup-test +mdup=BUILDDIR/t/mdup.t ## Very simple cases. -$mdup 3:4 -$mdup 4:3 +AT_CHECK([$mdup 3:4]) +AT_CHECK([$mdup 4:3]) -## Overlapping sources and destinations -$mdup 4:3 3:5 5:6 +## Overlapping sources and destinations. +AT_CHECK([$mdup 4:3 3:5 5:6]) -## Repeated sources -$mdup 3:4 3:3 3:-1 -$mdup 5:8 3:4 3:5 4:6 +## Repeated sources. +AT_CHECK([$mdup 3:4 3:3 3:-1]) +AT_CHECK([$mdup 5:8 3:4 3:5 4:6]) -## Cycles -$mdup 5:7 3:4 3:5 4:6 5:3 -$mdup 5:8 3:4 3:5 4:6 5:3 +## Cycles. +AT_CHECK([$mdup 5:7 3:4 3:5 4:6 5:3]) +AT_CHECK([$mdup 5:8 3:4 3:5 4:6 5:3]) AT_CLEANUP