chiark / gitweb /
CMakeLists.txt, lib.h, t/soak, t/treetest.c: Add some support for Windows.
[xyla] / t / Makefile.am
1 ### -*-makefile-*-
2 ###
3 ### Build script for testing
4 ###
5 ### (c) 2024 Straylight/Edgeware
6 ###
7
8 ###----- Licensing notice ---------------------------------------------------
9 ###
10 ### This file is part of Xyla, a library of binary trees.
11 ###
12 ### Xyla is free software: you can redistribute it and/or modify it under
13 ### the terms of the GNU Lesser General Public License as published by the
14 ### Free Software Foundation; either version 3 of the License, or (at your
15 ### option) any later version.
16 ###
17 ### Xyla is distributed in the hope that it will be useful, but WITHOUT
18 ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 ### FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
20 ### License for more details.
21 ###
22 ### You should have received a copy of the GNU Lesser General Public
23 ### License along with Xyla.  If not, see <https://www.gnu.org/licenses/>.
24
25 check_PROGRAMS           =
26 noinst_PROGRAMS          =
27
28 include autotest.am
29 autotest_TESTS           =
30 TEST_ARGS                = -j8
31
32 autotest_TESTS          += ./tests.at
33
34 AM_CPPFLAGS              = -I$(top_srcdir)
35 LDADD                    = ../libxyla.la
36
37 ## Common tests.
38 EXTRA_DIST              += commontest.in
39
40 ## AVL trees.
41 check_PROGRAMS          += avltest
42 avltest_SOURCES          = treetest.c
43 avltest_CFLAGS           = $(AM_CFLAGS) -DTREE=AVL
44 EXTRA_DIST              +=                      avl-commontest.ref
45 EXTRA_DIST              += avltest.in           avl-avltest.ref
46 EXTRA_DIST              += avlregress.in        avl-avlregress.ref
47
48 ## Red-black trees.
49 check_PROGRAMS          += rbtest
50 rbtest_SOURCES           = treetest.c
51 rbtest_CFLAGS            = $(AM_CFLAGS) -DTREE=RB
52 EXTRA_DIST              +=                      rb-commontest.ref
53 EXTRA_DIST              += rbtest.in            rb-rbtest.ref
54 EXTRA_DIST              += rbregress.in         rb-rbregress.ref
55
56 ## Splay trees.
57 check_PROGRAMS          += splaytest
58 splaytest_SOURCES        = treetest.c
59 splaytest_CFLAGS         = $(AM_CFLAGS) -DTREE=SPLAY
60 EXTRA_DIST              +=                      splay-commontest.ref
61 EXTRA_DIST              += splaytest.in         splay-splaytest.ref
62
63 ## Treaps.
64 check_PROGRAMS          += treaptest
65 treaptest_SOURCES        = treetest.c
66 treaptest_CFLAGS         = $(AM_CFLAGS) -DTREE=TREAP
67 EXTRA_DIST              +=                      treap-commontest.ref
68 EXTRA_DIST              += treaptest.in         treap-treaptest.ref
69
70 ## Example programs.
71 noinst_PROGRAMS         += example
72 example_SOURCES          = example.c
73 EXTRA_DIST              += example.in           example.ref
74
75
76 ###----- That's all, folks --------------------------------------------------