test cases/common/139 mesonintrospect from scripts/check_introspection.py
raw| 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | import os |
| 4 | import shlex |
| 5 | import subprocess |
| 6 | |
| 7 | |
| 8 | if 'MESONINTROSPECT' not in os.environ: |
| 9 | raise RuntimeError('MESONINTROSPECT not found') |
| 10 | if 'MESON_BUILD_ROOT' not in os.environ: |
| 11 | raise RuntimeError('MESON_BUILD_ROOT not found') |
| 12 | |
| 13 | mesonintrospect = os.environ['MESONINTROSPECT'] |
| 14 | introspect_arr = shlex.split(mesonintrospect) |
| 15 | |
| 16 | buildroot = os.environ['MESON_BUILD_ROOT'] |
| 17 | |
| 18 | subprocess.check_output([*introspect_arr, '--all', buildroot]) |