* wrap/python/Makefile.am (lib_LTLIBRARIES)
(libspotswigpy_la_SOURCES, libspotswigpy_la_CFLAGS) (libspotswigpy_la_LDFLAGS): New variables. (_spot_la_LIBADD, _buddy_la_LDFLAGS): Link with libspotswigpy.la ($(srcdir)/spot_wrap.cxx, $(srcdir)/buddy_wrap.cxx): Run swig with -c. * wrap/python/tests/libpy.c: New file. * wrap/python/tests/run.in: Run python if no arguments are given. * wrap/python/tests/interdep.py: New file. * wrap/python/tests/Makefile.am (TESTS): Add interdep.py.
This commit is contained in:
parent
ea9a96237b
commit
31f4f7b79a
7 changed files with 673 additions and 10 deletions
22
wrap/python/tests/interdep.py
Executable file
22
wrap/python/tests/interdep.py
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
# Make sure that interdependencies between the spot and buddy wrappers
|
||||
# are not problematic.
|
||||
import ltihooks
|
||||
import spot
|
||||
import buddy
|
||||
e = spot.default_environment.instance()
|
||||
p = spot.empty_parse_error_list()
|
||||
f = spot.parse('GFa', p, e)
|
||||
dict = spot.bdd_dict()
|
||||
a = spot.ltl_to_tgba(f, dict)
|
||||
s0 = a.get_init_state()
|
||||
b = s0.as_bdd()
|
||||
print b
|
||||
iter = a.succ_iter(s0)
|
||||
iter.first()
|
||||
while not iter.done():
|
||||
c = iter.current_condition()
|
||||
print c
|
||||
b &= c # `&=' is defined only in buddy. So if this statement works
|
||||
# it means buddy can grok spot's objects.
|
||||
iter.next()
|
||||
print b
|
||||
Loading…
Add table
Add a link
Reference in a new issue