File: meson.build

package info (click to toggle)
bitwuzla 0.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 43,292 kB
  • sloc: cpp: 94,870; python: 3,254; ansic: 1,613; sh: 50; makefile: 10
file content (29 lines) | stat: -rw-r--r-- 597 bytes parent folder | download | duplicates (2)
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
python = import('python').find_installation()

if python_path != ''
  tests = [
    'checksatassuming',
    'option_info',
    'options',
    'parse',
    'print',
    'pushpop',
    'quickstart',
    'reset',
    'reset_assertions',
    'terminator',
    'unsatassumptions',
    'unsatcore'
    ]

  fs = import('fs')
  env = ['PYTHONPATH=' + python_path]
  foreach t : tests
    file = t + '.py'
    args = [join_paths(meson.current_source_dir(), file)]
    test(t, python, args: args, suite: 'python', env: env)
  endforeach
else
  warning('Python not found, disabling Python examples')
endif