b93f1a2f24e9a74e0e2038de3ec614e61aedd2ee
[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 AT_SKIP_IF([test "$PYTHON" = :])
34 for seed in 0x58677213 0xdfcc2ff4 ""; do
35 $PYTHON SRCDIR/t/sym-gtest.py $seed
36 AT_CHECK([BUILDDIR/t/assoc.t <sym.script], [0], [expout])
37 done
38 AT_CLEANUP
39
40 ## darray
41 AT_SETUP([struct: darray])
42 AT_KEYWORDS([struct darray])
43 AT_SKIP_IF([test "$PYTHON" = :])
44 for seed in 0x0394946c 0xe8991664 ""; do
45 $PYTHON SRCDIR/t/da-gtest.py $seed
46 AT_CHECK([BUILDDIR/t/darray.t <da.script], [0], [expout])
47 done
48 AT_CLEANUP
49
50 ## sym
51 AT_SETUP([struct: sym])
52 AT_KEYWORDS([struct sym])
53 AT_SKIP_IF([test "$PYTHON" = :])
54 for seed in 0xdc0f64a3 0xd0b9fad0 ""; do
55 $PYTHON SRCDIR/t/sym-gtest.py $seed
56 AT_CHECK([BUILDDIR/t/sym.t <sym.script], [0], [expout])
57 done
58 AT_CLEANUP
59
60 ###----- That's all, folks --------------------------------------------------