chiark / gitweb /
Infrastructure: Switch testing over to Autotest.
[mLib] / struct / tests.at
1 ### -*-autotest-*-
2 ###
3 ### Test script for data structures
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 ###--------------------------------------------------------------------------
28 ### Tests.
29
30 ## assoc
31 AT_SETUP([struct: assoc])
32 AT_KEYWORDS([struct assoc])
33 for seed in 0x58677213 0xdfcc2ff4 ""; do
34   $PYTHON SRCDIR/t/sym-gtest.py $seed
35   AT_CHECK([BUILDDIR/t/assoc.t <sym.script], [0], [expout])
36 done
37 AT_CLEANUP
38
39 ## darray
40 AT_SETUP([struct: darray])
41 AT_KEYWORDS([struct darray])
42 for seed in 0x0394946c 0xe8991664 ""; do
43   $PYTHON SRCDIR/t/da-gtest.py $seed
44   AT_CHECK([BUILDDIR/t/darray.t <da.script], [0], [expout])
45 done
46 AT_CLEANUP
47
48 ## sym
49 AT_SETUP([struct: sym])
50 AT_KEYWORDS([struct sym])
51 for seed in 0xdc0f64a3 0xd0b9fad0 ""; do
52   $PYTHON SRCDIR/t/sym-gtest.py $seed
53   AT_CHECK([BUILDDIR/t/sym.t <sym.script], [0], [expout])
54 done
55 AT_CLEANUP
56
57 ###----- That's all, folks --------------------------------------------------