Commit | Line | Data |
---|---|---|
7cf5c72a MW |
1 | ### -*-autotest-*- |
2 | ### | |
3 | ### Test script for system features | |
4 | ### | |
5 | ### (c) 2009 Straylight/Edgeware | |
6 | ### | |
7 | ||
8 | ###----- Licensing notice --------------------------------------------------- | |
9 | ### | |
10 | ### This file is part of the mLib utilities library. | |
11 | ### | |
12 | ### mLib is free software; you can redistribute it and/or modify | |
13 | ### it under the terms of the GNU Library General Public License as | |
14 | ### published by the Free Software Foundation; either version 2 of the | |
15 | ### License, or (at your option) any later version. | |
16 | ### | |
17 | ### mLib is distributed in the hope that it will be useful, | |
18 | ### but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | ### GNU Library General Public License for more details. | |
21 | ### | |
22 | ### You should have received a copy of the GNU Library General Public | |
23 | ### License along with mLib; if not, write to the Free | |
24 | ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, | |
25 | ### MA 02111-1307, USA. | |
26 | ||
27 | ###-------------------------------------------------------------------------- | |
fbc7337c MW |
28 | ### fdpass |
29 | ||
30 | AT_SETUP([sys: fdpass]) | |
31 | AT_KEYWORDS([sys fdpass]) | |
32 | ||
33 | fdpass=BUILDDIR/t/fdpass.t | |
34 | ||
35 | AT_CHECK([ | |
36 | $fdpass server sock& | |
37 | while ! [[ -S sock ]]; do sleep 1; done | |
38 | $fdpass client sock && wait]) | |
39 | ||
40 | AT_CLEANUP | |
41 | ||
42 | ###-------------------------------------------------------------------------- | |
7cf5c72a MW |
43 | ### mdup |
44 | ||
45 | AT_SETUP([sys: mdup]) | |
46 | AT_KEYWORDS([sys mdup]) | |
47 | ||
e54226a7 | 48 | mdup=BUILDDIR/t/mdup.t |
7cf5c72a MW |
49 | |
50 | ## Very simple cases. | |
faa63d86 MW |
51 | AT_CHECK([$mdup 3:4]) |
52 | AT_CHECK([$mdup 4:3]) | |
7cf5c72a MW |
53 | |
54 | ## Overlapping sources and destinations | |
faa63d86 | 55 | AT_CHECK([$mdup 4:3 3:5 5:6]) |
7cf5c72a MW |
56 | |
57 | ## Repeated sources | |
faa63d86 MW |
58 | AT_CHECK([$mdup 3:4 3:3 3:-1]) |
59 | AT_CHECK([$mdup 5:8 3:4 3:5 4:6]) | |
7cf5c72a MW |
60 | |
61 | ## Cycles | |
faa63d86 MW |
62 | AT_CHECK([$mdup 5:7 3:4 3:5 4:6 5:3]) |
63 | AT_CHECK([$mdup 5:8 3:4 3:5 4:6 5:3]) | |
7cf5c72a MW |
64 | |
65 | AT_CLEANUP | |
66 | ||
67 | ###----- That's all, folks -------------------------------------------------- |