diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2019-04-12 01:58:38 -0400 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-04-13 04:30:59 +0000 |
commit | e9b4344aee3d09aec669eda8e63a595a1161c160 (patch) | |
tree | 587a400d17fbfcd9312c30f48fdfbeab68130d26 | |
parent | 0a0b473e840ccee3b3d1353902010bc84c2ca96f (diff) | |
download | meson-e9b4344aee3d09aec669eda8e63a595a1161c160.zip meson-e9b4344aee3d09aec669eda8e63a595a1161c160.tar.gz meson-e9b4344aee3d09aec669eda8e63a595a1161c160.tar.bz2 |
TST: Actually check that postconf introspection works.
-rw-r--r-- | test cases/common/144 mesonintrospect from scripts/check_introspection.py | 18 | ||||
-rw-r--r-- | test cases/common/144 mesonintrospect from scripts/meson.build | 2 |
2 files changed, 19 insertions, 1 deletions
diff --git a/test cases/common/144 mesonintrospect from scripts/check_introspection.py b/test cases/common/144 mesonintrospect from scripts/check_introspection.py new file mode 100644 index 0000000..851a415 --- /dev/null +++ b/test cases/common/144 mesonintrospect from scripts/check_introspection.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 + +import os +import shlex +import subprocess + + +if 'MESONINTROSPECT' not in os.environ: + raise RuntimeError('MESONINTROSPECT not found') +if 'MESON_BUILD_ROOT' not in os.environ: + raise RuntimeError('MESON_BUILD_ROOT not found') + +mesonintrospect = os.environ['MESONINTROSPECT'] +introspect_arr = shlex.split(mesonintrospect) + +buildroot = os.environ['MESON_BUILD_ROOT'] + +subprocess.check_output([*introspect_arr, '--all', buildroot]) diff --git a/test cases/common/144 mesonintrospect from scripts/meson.build b/test cases/common/144 mesonintrospect from scripts/meson.build index f78710b..1117672 100644 --- a/test cases/common/144 mesonintrospect from scripts/meson.build +++ b/test cases/common/144 mesonintrospect from scripts/meson.build @@ -10,5 +10,5 @@ else message(ret.stderr()) endif -meson.add_postconf_script('check_env.py') +meson.add_postconf_script('check_introspection.py') meson.add_install_script('check_env.py') |