summaryrefslogtreecommitdiff
path: root/TESTS
blob: 08f0860538ee6d7f378224df866978778e9dd7a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
This file gives information on the tests that were made during the
Automake migration.

Environment
-----------
Arch Linux x64 with:
  - Autoconf 2.69
  - Automake 1.14.1
  - GNU Make 4.0

Current status
--------------
  - Gnulib integrated
  - Minimum Automake support
  - Build src/libs/*
  - Build src/utils/*
  - Build src/preproc/*
  - Build src/devices/*
  - Build src/roff/*
  - Build font/*

Tests
-----

1. Generation of build system files

./bootstrap

Generated the following files and directories:
  INSTALL
  Makefile.in
  aclocal.m4
  autom4te.cache/
  build-aux/
  configure
  gnulib_m4/
  lib/
  src/include/config.hin

2. Build of various targets

Tests done in 2 configurations:

  - Out-of source build mode

    mkdir build
    cd build
    ../configure

  - In source build:
    ../configure

2.1 make

Following files are generated:

  - src/include/config.h
  - lib/libgnu.a

from arch/misc:
  - shdeps.sed

from src/libs:
  - libbib.a
  - libdriver.a
  - libgroff.a, version.cpp and extra files (charset.alias,
    ref-add.sed, ref-del.sed)
  - libxutils.a

from src/utils:
  - addftinfo
  - afmtodit
  - hpftodit
  - indxbib
  - lkbib
  - lookbib
  - pfbtops
  - tfmtodit
  - xtotroff
  - man files (.n) in src/utils

from src/preproc:
  - eqn
  - grn
  - pre-grohtml
  - pic
  - preconv
  - refer
  - soelim
  - tbl
  - Yacc and Lex support: the following files are generated:
    -- eqn/eqn.cpp
    -- eqn/eqn.hpp (previously eqn_tab.h)
    -- pic/pic.cpp
    -- pic/pic.hpp (previously pic_tab.h)
    -- pic/pic.output
    -- refer/label.cpp
    -- refer/label.hpp
    Compared to the previous build system, the only relevant diff is
    an extra protection #define in label.cpp
#ifndef YY_YY_SRC_PREPROC_REFER_LABEL_HPP_INCLUDED
# define YY_YY_SRC_PREPROC_REFER_LABEL_HPP_INCLUDED

from src/devices:
  - grodvi
  - pre-grohtml
  - post-grohtml
  - grolbp
  - grolj4
  - gropdf
  - pdfmom
  - grops
  - grotty
  - gxditview

from src/roff
  - groff
  - grog
  - nroff
  - troff

from font: font files in 
  - devascii
  - devcp1047
  - devdvi
  - devhtml
  - devlatin1
  - devlbp
  - devlj4
  - devpdf
  - devps
  - devutf8


In order to check and improve the dependencies, the following targets
were built from a clean environment:
  - make lib/libgnu.a
  - make libbib.a
  - make libdriver.a
  - make libgroff.a
  - make libxutil.a
  - make addftinfo
  - make  afmtodit
  - make hpftodit
  - make indxbib
  - make lkbib
  - make lookbib
  - make pfbtops
  - make tfmtodit
  - make xtotroff
  - make eqn
  - make grn
  - make pre-grohtml
  - make pic
  - make preconv
  - make refer
  - make soelim
  - make tbl
  - make grodvi
  - make post-grohtml
  - make grolbp
  - make grolj4
  - make gropdf
  - make pdfmom
  - make grops
  - make grotty
  - make gxditview
  - make groff
  - make grog
  - make nroff
  - make troff

2.2 make clean

The following files remain (this is expected):
  - Makefile
  - config.status
  - config.log
  - src/include/config.h
  - src/include/stamp-h1
  - .deps directories and .dirstamp files

  - .n files, afmtodit are cleaned
  - shdeps.sed is cleaned
  - binaries from bin_PROGRAMS are cleaned

2.3 make mostlyclean

  Like 'make clean', but the following files also remain (expected):
  - lib*.a
  - libgroff.a's charset.alias, ref-add.sed, ref-del.sed, and
    version.cpp.
  - gnulib's charset.alias, ref-add.sed, ref-del.sed and configmake.h
  - src/preproc generated .cpp, hpp, and .output files

Differences with former build system:

  - Programs (listed in bin_PROGRAMS) are not cleaned by 'make
    mostlyclean'. This could be changed if needed (MOSTLYCLEANFILES +=
    $(bin_PROGRAMS)).

2.4 make distclean

  Like 'make clean', but the following files are also cleaned:
  - Makefile
  - config.status
  - config.log
  - src/include/config.h
  - src/include/stamp-h1
  - .deps directories and .dirstamp files

  In a out-of-source build, nothing remains in the build directory
  expect empty directories.

  The files generated by bootstrap and needed by the configure script
  are untouched:
  INSTALL
  Makefile.in
  aclocal.m4
  build-aux/
  configure
  gnulib_m4/
  lib/
  src/include/config.hin

2.5 make maintainer-clean

  Like 'make distclean'

2.6 make install

  mkdir -p ~/tmp/automake
  make install DESTDIR=~/tmp/automake

  - If file charset.alias is always present in
    $(DESTDIR)/usr/local/lib, make install update it by adding 'groff'
    to the list of programs using it. Otherwise nothing is installed.

  - programs from src/utils are installed in $(DESTDIR)/usr/local/bin

  - man files from src/utils, src/devices are installed in
    $(DESTDIR)/usr/local/share/man/man1 or man5

  - $(DESTDIR)/usr/local/share/groff/1.22.3/eign (from src/utils/indxbib)

  - In $(DESTDIR)/usr/local/lib/X11/app-defaults: GXditview and
    GXditview-color. If these files are already present, they are
    first moved to GXditview.old and GXditview-color.old.

  - groff_opts_no_arg.txt and groff_opts_with_arg.txt are installed

  - font files are installed in $(DESTDIR)/usr/local/groff/1.22.3/font
    and oldfont and identical to the one installed with the previous
    build system, except the fonts from devpdf which are not generated
    identically at each build.

Diff with previous build system:
  - devcp1047 fonts are installed $(DESTDIR)/usr/local/groff/1.22.3/font

2.7 make uninstall

  Removes:

  - $(DESTDIR)/usr/local/lib/charset.alias if exists
  - $(DESTDIR)/usr/local/bin/*
  - $(DESTDIR)/usr/local/man/man1/*
  - $(DESTDIR)/usr/local/man/man5/*
  - $(DESTDIR)/usr/local/share/groff/1.22.3/eign
  - $(DESTDIR)/usr/local/share/groff/1.22.3/
  - $(DESTDIR)/usr/local/share/groff/1.22.3/font
  - $(DESTDIR)/usr/local/share/groff/1.22.3/oldfont
  - $(DESTDIR)/usr/local/share/groff/
  - $(DESTDIR)/usr/local/lib/X11/app-defaults/GXditview and
    GXditview-color. However, GXditview.old and GXditview-color.old
    are not removed (this is the behaviour on the old build system)
  
2.8 make dist

  groff-1.22.3.tar.gz is generated.

  - Files/directories that are not distributed on purpose:
    .gitignore
    .gitmodules
    bootstrap
    bootstrap.conf
    gnulib/
    README.git
    TESTS

  - Missing files/directories (TODO):
    contrib/
    doc/
    man/
    tmac
    test-groff.in

  - Files/directories not present in the git tree that are
    distributed:
    build-aux/
    gnulib_m4/
    lib/
    src/include/config.hin
    INSTALL
    Makefile.in
    aclocal.m4
    configure   
    src/preproc/eqn/eqn.cpp
    src/preproc/eqn/eqn.hpp
    src/preproc/pic/pic.cpp
    src/preproc/pic/pic.hpp 
    src/preproc/refer/label.hpp
    src/preproc/refere/label.cpp
    
2.9 make distcheck
  
  This will attempt to make a tarball, and from this tarball, build
the package(out-of-source build), clean it (checking that no file
remains), install it, uninstall it (checking that no file remains in
the install tree).

  make distcheck

  - All phases now succeed

Notes
-----

  - Gnulib: some files of src/libs/libgroff could be replaced by their
    gnulib equivalent
  - Gnulib: git-version-gen could be used