Makefile.am 12.7 KB
Newer Older
1
## -*- coding: utf-8 -*-
2
## Copyright (C) 2009-2020 Laboratoire de Recherche et Développement
3 4 5 6
## de l'Epita (LRDE).
## Copyright (C) 2003-2006 Laboratoire d'Informatique de Paris 6
## (LIP6), département Systèmes Répartis Coopératifs (SRC), Université
## Pierre et Marie Curie.
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
7 8 9 10 11
##
## This file is part of Spot, a model checking library.
##
## Spot is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
12
## the Free Software Foundation; either version 3 of the License, or
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
13 14 15 16 17 18 19 20
## (at your option) any later version.
##
## Spot is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
## or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
## License for more details.
##
## You should have received a copy of the GNU General Public License
21
## along with this program.  If not, see <http://www.gnu.org/licenses/>.
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
22

23
AUTOMAKE_OPTIONS = subdir-objects
24 25
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) $(BUDDY_CPPFLAGS) \
              -I$(top_builddir)/lib -I$(top_srcdir)/lib
26
AM_CXXFLAGS = $(WARNING_CXXFLAGS)
27 28
LDADD = $(top_builddir)/spot/libspot.la $(top_builddir)/buddy/src/libbddx.la

29

30 31
# Explicitely set it to avoid default value ".test"
TEST_EXTENSIONS =
32 33
LOG_COMPILER = ./run
# ensure run is rebuilt before the tests are run.
34 35 36
check_SCRIPTS = run

# We try to keep this somehow by strength.  Test basic things first,
37 38 39 40 41 42 43
# because such failures will be easier to diagnose and fix.  The only
# exception is that we keep TESTS_python at the beginning, because if
# these tests are run at the same time as some heavy tests in
# TESTS_twa they can easily fail due to some timeout in the Jupyter
# communications.
TESTS = $(TESTS_sanity) $(TESTS_python) $(TESTS_misc) $(TESTS_tl) \
  $(TESTS_graph) $(TESTS_kripke) $(TESTS_twa) $(TESTS_ltsmin)
44 45

distclean-local:
46
	find . -name '*.dir' -type d -print | xargs rm -rf
47 48 49 50 51 52
## This is crazy: Even if the python test suite passes without
## reporting an error, it can non-deterministically leave a coredump
## behind.  This happens with ipython 4.0.1 on ArchLinux; ipython
## somehow recovers from this so the only annoyance is that it can
## leave a coredump behind.
	rm -f python/core
53 54 55 56 57 58 59 60 61


############################## CORE ##############################

check_SCRIPTS += core/defs

core/defs: $(top_builddir)/config.status $(srcdir)/core/defs.in
	$(top_builddir)/config.status --file core/defs

62 63
# Keep this sorted alphabetically.
check_PROGRAMS = \
64
  core/acc \
65
  core/bdddict \
66 67 68 69
  core/bitvect \
  core/checkpsl \
  core/checkta \
  core/consterm \
70
  core/cube \
71 72 73 74 75
  core/emptchk \
  core/equals \
  core/graph \
  core/kind \
  core/length \
76
  core/ikwiad \
77 78
  core/intvcomp \
  core/intvcmp2 \
79
  core/kripkecat \
80 81 82 83
  core/ltl2dot \
  core/ltl2text \
  core/ltlrel \
  core/lunabbrev \
84
  core/mempool \
85 86 87
  core/nequals \
  core/nenoform \
  core/ngraph \
Laurent XU's avatar
Laurent XU committed
88
  core/parity \
89
  core/randtgba \
90 91 92 93
  core/reduc \
  core/reduccmp \
  core/reduceu \
  core/reductaustr \
94
  core/safra \
95
  core/sccif \
96 97
  core/syntimpl \
  core/taatgba \
98
  core/trival \
99 100 101
  core/tgbagraph \
  core/tostring \
  core/tunabbrev \
102 103
  core/tunenoform \
  core/twacube
104

105
# Keep this sorted alphabetically.
106
core_acc_SOURCES = core/acc.cc
107
core_bdddict_SOURCES  = core/bdddict.cc
108 109 110 111 112 113 114 115
core_bitvect_SOURCES  = core/bitvect.cc
core_checkpsl_SOURCES = core/checkpsl.cc
core_checkta_SOURCES = core/checkta.cc
core_emptchk_SOURCES  = core/emptchk.cc
core_graph_SOURCES = core/graph.cc
core_ikwiad_SOURCES = core/ikwiad.cc
core_intvcomp_SOURCES = core/intvcomp.cc
core_intvcmp2_SOURCES = core/intvcmp2.cc
116
core_kripkecat_SOURCES = core/kripkecat.cc
117
core_mempool_SOURCES = core/mempool.cc
118 119 120 121 122
core_ngraph_SOURCES = core/ngraph.cc
core_randtgba_SOURCES = core/randtgba.cc
core_taatgba_SOURCES = core/taatgba.cc
core_tgbagraph_SOURCES = core/twagraph.cc
core_consterm_SOURCES = core/consterm.cc
123
core_cube_SOURCES = core/cube.cc
124 125 126 127 128 129 130 131 132 133 134 135 136
core_equals_SOURCES = core/equalsf.cc
core_kind_SOURCES = core/kind.cc
core_length_SOURCES = core/length.cc
core_ltl2dot_SOURCES = core/readltl.cc
core_ltl2dot_CPPFLAGS = $(AM_CPPFLAGS) -DDOTTY
core_ltl2text_SOURCES = core/readltl.cc
core_ltlrel_SOURCES = core/ltlrel.cc
core_lunabbrev_SOURCES = core/equalsf.cc
core_lunabbrev_CPPFLAGS = $(AM_CPPFLAGS) -DUNABBREV='"^ie"'
core_nenoform_SOURCES = core/equalsf.cc
core_nenoform_CPPFLAGS = $(AM_CPPFLAGS) -DNENOFORM
core_nequals_SOURCES = core/equalsf.cc
core_nequals_CPPFLAGS = $(AM_CPPFLAGS) -DNEGATE
Laurent XU's avatar
Laurent XU committed
137
core_parity_SOURCES = core/parity.cc
138 139 140 141 142 143 144
core_reduc_SOURCES = core/reduc.cc
core_reduccmp_SOURCES = core/equalsf.cc
core_reduccmp_CPPFLAGS = $(AM_CPPFLAGS) -DREDUC
core_reduceu_SOURCES = core/equalsf.cc
core_reduceu_CPPFLAGS = $(AM_CPPFLAGS) -DREDUC -DEVENT_UNIV
core_reductaustr_SOURCES = core/equalsf.cc
core_reductaustr_CPPFLAGS = $(AM_CPPFLAGS) -DREDUC_TAUSTR
145
core_safra_SOURCES = core/safra.cc
146
core_sccif_SOURCES = core/sccif.cc
147 148
core_syntimpl_SOURCES = core/syntimpl.cc
core_tostring_SOURCES = core/tostring.cc
149
core_trival_SOURCES = core/trival.cc
150 151 152 153
core_tunabbrev_SOURCES = core/equalsf.cc
core_tunabbrev_CPPFLAGS = $(AM_CPPFLAGS) -DUNABBREV='"^ieFG"'
core_tunenoform_SOURCES = core/equalsf.cc
core_tunenoform_CPPFLAGS = $(AM_CPPFLAGS) -DNENOFORM -DUNABBREV='"^ieFG"'
154
core_twacube_SOURCES = core/twacube.cc
155

156

157 158
TESTS_tl = \
  core/bare.test \
159
  core/cube.test \
160 161 162 163 164 165
  core/parse.test \
  core/parseerr.test \
  core/utf8.test \
  core/length.test \
  core/equals.test \
  core/tostring.test \
166
  core/genaut.test \
167
  core/genltl.test \
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
  core/lunabbrev.test \
  core/tunabbrev.test \
  core/nenoform.test \
  core/tunenoform.test \
  core/unabbrevwm.test \
  core/consterm.test \
  core/kind.test \
  core/remove_x.test \
  core/ltlrel.test \
  core/ltlgrind.test \
  core/ltlcrossgrind.test \
  core/ltlfilt.test \
  core/exclusive-ltl.test \
  core/latex.test \
  core/lbt.test \
  core/lenient.test \
  core/rand.test \
  core/isop.test \
  core/syntimpl.test \
  core/reduc.test \
  core/reduc0.test \
  core/reducpsl.test \
  core/reduccmp.test \
  core/uwrm.test \
  core/eventuniv.test \
193
  core/stutter-ltl.test \
194
  core/hierarchy.test \
195
  core/mempool.test \
196
  core/format.test
197 198

TESTS_graph = \
199 200 201
  core/graph.test \
  core/ngraph.test \
  core/tgbagraph.test
202 203

TESTS_kripke = \
204
  core/kripke.test
Etienne Renault's avatar
Etienne Renault committed
205

206
TESTS_misc = \
207
  core/bdd.test \
208 209
  core/bitvect.test \
  core/intvcomp.test \
210
  core/minusx.test \
211
  core/full.test \
212 213
  core/trival.test

Etienne Renault's avatar
Etienne Renault committed
214
TESTS_twa = \
215
  core/385.test \
216 217
  core/acc.test \
  core/acc2.test \
218
  core/bdddict.test \
219
  core/alternating.test \
220
  core/ltlcross3.test \
221
  core/ltlcross5.test \
222 223 224 225
  core/taatgba.test \
  core/renault.test \
  core/nondet.test \
  core/det.test \
226
  core/semidet.test \
227 228 229 230 231 232
  core/neverclaimread.test \
  core/parseaut.test \
  core/optba.test \
  core/complete.test \
  core/complement.test \
  core/remfin.test \
233
  core/gragsa.test \
234 235
  core/dstar.test \
  core/readsave.test \
236
  core/dot2tex.test \
237 238 239 240
  core/ltldo.test \
  core/ltldo2.test \
  core/maskacc.test \
  core/maskkeep.test \
241
  core/prodchain.test \
242 243 244 245 246
  core/prodor.test \
  core/simdet.test \
  core/sim2.test \
  core/sim3.test \
  core/ltl2tgba.test \
247
  core/ltl2tgba2.test \
248 249 250 251 252 253
  core/ltl2neverclaim.test \
  core/ltl2neverclaim-lbtt.test \
  core/explprod.test \
  core/explpro2.test \
  core/explpro3.test \
  core/explpro4.test \
254
  core/explsum.test \
Thomas Medioni's avatar
Thomas Medioni committed
255
  core/dualize.test \
256
  core/accsimpl.test \
257 258 259 260 261 262 263
  core/tripprod.test \
  core/dupexp.test \
  core/exclusive-tgba.test \
  core/remprop.test \
  core/degendet.test \
  core/degenid.test \
  core/degenlskip.test \
264
  core/degenscc.test \
265 266 267 268
  core/randomize.test \
  core/lbttparse.test \
  core/scc.test \
  core/sccdot.test \
269
  core/sccif.test \
270 271
  core/sccsimpl.test \
  core/sepsets.test \
272
  core/split.test \
273
  core/sugar.test \
274 275 276 277 278 279 280 281
  core/dbacomp.test \
  core/obligation.test \
  core/wdba.test \
  core/wdba2.test \
  core/babiak.test \
  core/monitor.test \
  core/dra2dba.test \
  core/unambig.test \
282
  core/unambig2.test \
283
  core/ltlcross4.test \
284
  core/ltl3ba.test \
285
  core/streett.test \
286 287 288 289 290 291 292
  core/ltl3dra.test \
  core/ltl2dstar.test \
  core/ltl2dstar2.test \
  core/ltl2dstar3.test \
  core/ltl2dstar4.test \
  core/ltl2ta.test \
  core/ltl2ta2.test \
293
  core/pdegen.test \
294 295 296
  core/randaut.test \
  core/randtgba.test \
  core/isomorph.test \
297
  core/included.test \
298
  core/uniq.test \
299
  core/safra.test \
300 301 302 303 304 305 306 307 308 309 310 311 312
  core/sbacc.test \
  core/stutter-tgba.test \
  core/strength.test \
  core/emptchk.test \
  core/emptchke.test \
  core/dfs.test \
  core/ltlcrossce.test \
  core/ltlcrossce2.test \
  core/emptchkr.test \
  core/ltlcounter.test \
  core/basimul.test \
  core/satmin.test \
  core/satmin2.test \
313
  core/satmin3.test \
314 315 316 317
  core/spotlbtt.test \
  core/ltlcross.test \
  core/spotlbtt2.test \
  core/ltlcross2.test \
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
318 319
  core/autcross.test \
  core/autcross2.test \
320
  core/autcross3.test \
321
  core/autcross4.test \
322
  core/autcross5.test \
323 324
  core/complementation.test \
  core/randpsl.test \
325
  core/cycles.test \
326
  core/acc_word.test \
327
  core/dca.test \
328
  core/dca2.test \
Laurent XU's avatar
Laurent XU committed
329
  core/dnfstreett.test \
Maximilien Colange's avatar
Maximilien Colange committed
330
  core/parity.test \
331
  core/parity2.test \
332
  core/ltlsynt.test \
333 334
  core/rabin2parity.test \
  core/twacube.test
335 336

############################## PYTHON ##############################
337

338
if USE_PYTHON
339 340 341 342

# TESTS_ipython contains notebooks that we also want to publish as
# part of the documentation.
TESTS_ipython = \
343 344
  python/acc_cond.ipynb \
  python/accparse.ipynb \
345
  python/alternation.ipynb \
346 347
  python/atva16-fig2a.ipynb \
  python/atva16-fig2b.ipynb \
348
  python/automata-io.ipynb \
349
  python/automata.ipynb \
350
  python/contains.ipynb \
351 352
  python/decompose.ipynb \
  python/formulas.ipynb \
353
  python/gen.ipynb \
354
  python/highlighting.ipynb \
355
  python/ltsmin-dve.ipynb \
356
  python/ltsmin-pml.ipynb \
Laurent XU's avatar
Laurent XU committed
357
  python/parity.ipynb \
358 359 360
  python/product.ipynb \
  python/randaut.ipynb \
  python/randltl.ipynb \
361
  python/satmin.ipynb \
362
  python/stutter-inv.ipynb \
363
  python/testingaut.ipynb \
364
  python/twagraph-internals.ipynb \
365
  python/word.ipynb
366 367 368 369 370

# TESTS_python contains all tests.  It may includes notebooks we
# do not consider part of the documentation: those have to start
# with a _.
TESTS_python = \
371
  python/341.py \
372
  python/_altscc.ipynb \
373
  python/_autparserr.ipynb \
374
  python/_aux.ipynb \
375 376
  python/accparse2.py \
  python/alarm.py \
377
  python/alternating.py \
378
  python/bdddict.py \
379
  python/bdditer.py \
380
  python/bddnqueen.py \
381
  python/bugdet.py \
382
  python/complement_semidet.py \
383
  python/declenv.py \
384
  python/decompose_scc.py \
385
  python/dualize.py \
386
  python/ecfalse.py \
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
387
  python/except.py \
388
  python/gen.py \
389
  python/genem.py \
390 391
  python/implies.py \
  python/interdep.py \
392
  python/kripke.py \
393
  python/ltl2tgba.test \
394
  python/ltlf.py \
395 396
  python/ltlparse.py \
  python/ltlsimple.py \
397
  python/merge.py \
398
  python/minato.py \
399
  python/misc-ec.py \
400
  python/optionmap.py \
401
  python/origstate.py \
402
  python/otfcrash.py \
403
  python/parsetgba.py \
404
  python/parity.py \
405
  python/pdegen.py \
406
  python/prodexpt.py \
407
  python/_product_weak.ipynb \
408
  python/_product_susp.ipynb \
409 410 411
  python/randgen.py \
  python/relabel.py \
  python/remfin.py \
412
  python/removeap.py \
413
  python/satmin.py \
414
  python/sbacc.py \
415
  python/sccfilter.py \
416
  python/sccinfo.py \
417
  python/sccsplit.py \
418
  python/semidet.py \
419
  python/setacc.py \
420
  python/setxor.py \
421
  python/simplacc.py \
422
  python/simstate.py \
423
  python/split.py \
424
  python/streett_totgba.py \
425
  python/streett_totgba2.py \
426
  python/stutter.py \
427
  python/rs_like.py \
428
  python/sum.py \
429
  python/toparity.py \
430
  python/trival.py \
431
  python/tra2tba.py \
432
  python/twagraph.py \
433
  python/toweak.py \
434
  python/_word.ipynb \
435
  $(TESTS_ipython)
436
endif
437

Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
438
CLEANFILES = python/test1.dve python/test1.dve2C python/test1.dve.cpp
439

440 441 442 443 444
SUFFIXES = .ipynb .html
.ipynb.html:
	$(IPYTHON) nbconvert $< --to html --stdout >$@

.PHONY: nb-html
445
nb-html: $(TESTS_ipython:.ipynb=.html)
446 447 448 449 450

EXTRA_DIST = \
  $(TESTS) \
  python/ltl2tgba.py \
  python/ipnbdoctest.py
451 452 453 454


############################## LTSMIN ##############################

455
if USE_LTSMIN
456
check_PROGRAMS += ltsmin/modelcheck
457 458

ltsmin_modelcheck_SOURCES = ltsmin/modelcheck.cc
459 460
ltsmin_modelcheck_LDADD = $(top_builddir)/spot/ltsmin/libspotltsmin.la \
	$(LDADD) -lpthread
461 462 463 464 465 466 467 468

check_SCRIPTS += ltsmin/defs

ltsmin/defs: $(top_builddir)/config.status $(srcdir)/core/defs.in
	$(top_builddir)/config.status --file ltsmin/defs:core/defs.in

TESTS_ltsmin = \
  ltsmin/check.test \
469 470
  ltsmin/check2.test \
  ltsmin/check3.test \
471 472
  ltsmin/finite.test \
  ltsmin/finite2.test \
473
  ltsmin/finite3.test \
474 475
  ltsmin/kripke.test

476 477
EXTRA_DIST += ltsmin/beem-peterson.4.dve ltsmin/beem-peterson.4.gal \
  ltsmin/elevator2.1.pm ltsmin/finite.dve ltsmin/finite.pm ltsmin/finite.gal
478

479
ltlsmin/kripke.log: core/kripkecat$(EXEEXT)
480
endif
481 482 483 484 485

############################## SANITY ##############################

TESTS_sanity = \
  sanity/80columns.test \
486
  sanity/bin.test \
487
  sanity/getenv.test \
488 489
  sanity/includes.test \
  sanity/ipynb.pl \
490
  sanity/namedprop.test \
491 492 493
  sanity/private.test \
  sanity/readme.pl \
  sanity/style.test