Added sxe-utils.h with several utilities from lisp.h
[sxemacs] / tests / Makefile.am
1 ## This file is part of SXEmacs.
2
3 ## Redistribution and use in source and binary forms, with or without
4 ## modification, are permitted provided that the following conditions
5 ## are met:
6 ##
7 ## 1. Redistributions of source code must retain the above copyright
8 ##    notice, this list of conditions and the following disclaimer.
9 ##
10 ## 2. Redistributions in binary form must reproduce the above copyright
11 ##    notice, this list of conditions and the following disclaimer in the
12 ##    documentation and/or other materials provided with the distribution.
13 ##
14 ## 3. Neither the name of the author nor the names of any contributors
15 ##    may be used to endorse or promote products derived from this
16 ##    software without specific prior written permission.
17 ##
18 ## THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
19 ## IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 ## WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 ## DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 ## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 ## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 ## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
25 ## BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 ## WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
27 ## OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
28 ## IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30 ## Process this file with automake to produce Makefile.in
31
32 # Help the Developers and yourself. Just use the C locale and settings
33 # for the compilation. They can still be overriden by make LANG=<whatever>
34 # but that is general a not very good idea
35 LANG=C
36 LC_ALL=C
37
38 sxesrcdir = $(top_srcdir)/src
39 bldsrcdir = $(top_builddir)/src
40
41 misc_tests = frame.el glyph-test.el gutter-test.el                      \
42         redisplay-tests.el reproduce-bugs.el
43 gtk_tests = gtk/event-stream-tests.el gtk/gnome-test.el                 \
44         gtk/gtk-embedded-test.el gtk/gtk-extra-test.el gtk/gtk-test.el  \
45         gtk/gtk-test.glade gtk/statusbar-test.el gtk/toolbar-test.el    \
46         gtk/xemacs-toolbar.el gtk/UNIMPLEMENTED
47 mule_tests = mule/match.el
48 DLL_tests = DLL/dltest.c
49 automated_tests = automated/ase-cartesian-tests.el                      \
50         automated/ase-digraph-tests.el automated/ase-heap-tests.el      \
51         automated/ase-interval-tests.el automated/ase-metric-tests.el   \
52         automated/ase-neighbourhood-tests.el                            \
53         automated/ase-permutation-tests.el                              \
54         automated/ase-reclass-tests.el automated/base64-tests.el        \
55         automated/bloom-tests.el automated/byte-compiler-tests.el       \
56         automated/case-tests.el automated/ccl-tests.el                  \
57         automated/cl-loop-tests.el automated/c-tests.el                 \
58         automated/database-tests.el automated/ent-tests.el              \
59         automated/extent-tests.el automated/hash-table-tests.el         \
60         automated/inplace-tests.el automated/lisp-reader-tests.el       \
61         automated/lisp-tests.el automated/md5-tests.el                  \
62         automated/mule-tests.el automated/openssl-tests.el              \
63         automated/os-tests.el automated/regexp-tests.el                 \
64         automated/region-tests.el automated/skiplist-tests.el           \
65         automated/symbol-tests.el automated/syntax-tests.el             \
66         automated/tag-tests.el automated/test-harness.el                \
67         automated/weak-tests.el automated/README
68
69 EXTRA_DIST = $(misc_tests) $(gtk_tests) $(mule_tests)           \
70         $(DLL_tests) $(automated_tests)
71
72 CLEANFILES = stage1 stage2
73
74
75 ### Produces strange banner
76 SXEMACS = $(bldsrcdir)/sxemacs
77 SXEDMP = $(SXEMACS).dmp
78 testdir = $(srcdir)
79 testautomdir = $(testdir)/automated
80 tests_environment = $(SXEMACS) -batch -l ${testautomdir}/test-harness.el \
81         -f batch-test-emacs $(testautomdir)
82
83 ## Use our former check target
84 check-am: $(SXEMACS) $(SXEDMP)
85         $(tests_environment)
86
87 check-formats: $(SXEMACS) $(SXEDMP)
88         $(SXEMACS) -l ${testautomdir}/test-harness.el \
89         -f batch-test-emacs $(testautomdir)/format-tests.el
90
91 check-map: $(SXEMACS) $(SXEDMP)
92         $(SXEMACS) -l ${testautomdir}/test-harness.el \
93         -f batch-test-emacs $(testautomdir)/map-tests.el
94
95 check-skiplists: $(SXEMACS) $(SXEDMP)
96         $(SXEMACS) -l ${testautomdir}/test-harness.el \
97         -f batch-test-emacs $(testautomdir)/skiplist-tests.el
98
99 check-%: $(SXEMACS) $(SXEDMP)
100         $(SXEMACS) -l ${testautomdir}/test-harness.el \
101         -f batch-test-emacs $(testautomdir)/$*-tests.el
102
103
104 .PHONY: stage1 stage2
105 stage1:
106         @echo
107         @echo "$@ in progress ..."
108         @$(RECURSE)
109         @echo "$@ finished"
110
111 stage2: stage1
112         @echo
113         @echo "$@ in progress ..."
114         @$(RECURSE)
115         @echo "$@ finished"
116
117 ### dont use staged build
118 ##all: stage1 stage2
119