| 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | import osscip-python python python-stdlib 3.11 os/__init__:, sysscip-python python python-stdlib 3.11 sys/__init__: |
| 4 | from pathlibscip-python python python-stdlib 3.11 pathlib/__init__: import Pathscip-python python python-stdlib 3.11 pathlib/Path# |
| 5 | |
| 6 | assert 'MESON_SOURCE_ROOT' in osscip-python python python-stdlib 3.11 os/__init__:.environscip-python python python-stdlib 3.11 os/environ.environ. |
| 7 | assert 'MESON_BUILD_ROOT' in osscip-python python python-stdlib 3.11 os/__init__:.environscip-python python python-stdlib 3.11 os/environ.environ. |
| 8 | assert 'MESON_SUBDIR' in osscip-python python python-stdlib 3.11 os/__init__:.environscip-python python python-stdlib 3.11 os/environ.environ. |
| 9 | assert 'MESONINTROSPECT' in osscip-python python python-stdlib 3.11 os/__init__:.environscip-python python python-stdlib 3.11 os/environ.environ. |
| 10 | assert 'MY_ENV' in osscip-python python python-stdlib 3.11 os/__init__:.environscip-python python python-stdlib 3.11 os/environ.environ. |
| 11 | |
| 12 | # Environment has absolute paths and argv has relative paths when using ninja |
| 13 | # backend and absolute paths when using vs backend. What matters is once |
| 14 | # resolved they point to same location. |
| 15 | env_source_rootscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/env_source_root. = Pathscip-python python python-stdlib 3.11 pathlib/Path#(osscip-python python python-stdlib 3.11 os/__init__:.environscip-python python python-stdlib 3.11 os/environ.environ.['MESON_SOURCE_ROOT']).resolvescip-python python python-stdlib 3.11 pathlib/Path#resolve().() |
| 16 | env_build_rootscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/env_build_root. = Pathscip-python python python-stdlib 3.11 pathlib/Path#(osscip-python python python-stdlib 3.11 os/__init__:.environscip-python python python-stdlib 3.11 os/environ.environ.['MESON_BUILD_ROOT']).resolvescip-python python python-stdlib 3.11 pathlib/Path#resolve().() |
| 17 | env_current_source_dirscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/env_current_source_dir. = Pathscip-python python python-stdlib 3.11 pathlib/Path#(env_source_rootscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/env_source_root., osscip-python python python-stdlib 3.11 os/__init__:.environscip-python python python-stdlib 3.11 os/environ.environ.['MESON_SUBDIR']).resolvescip-python python python-stdlib 3.11 pathlib/Path#resolve().() |
| 18 | |
| 19 | printscip-python python python-stdlib 3.11 builtins/print().(sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.) |
| 20 | argv_pathsscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/argv_paths. = [Pathscip-python python python-stdlib 3.11 pathlib/Path#(i).resolvescip-python python python-stdlib 3.11 pathlib/Path#resolve().() for i in sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.[1:]] |
| 21 | source_rootscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/source_root., build_rootscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/build_root., current_source_dirscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/current_source_dir. = argv_pathsscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/argv_paths. |
| 22 | |
| 23 | printscip-python python python-stdlib 3.11 builtins/print().(f'{source_rootscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/source_root.} == {env_source_rootscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/env_source_root.}') |
| 24 | assert source_rootscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/source_root. == env_source_rootscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/env_source_root. |
| 25 | printscip-python python python-stdlib 3.11 builtins/print().(f'{build_rootscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/build_root.} == {env_build_rootscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/env_build_root.}') |
| 26 | assert build_rootscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/build_root. == env_build_rootscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/env_build_root. |
| 27 | printscip-python python python-stdlib 3.11 builtins/print().(f'{current_source_dirscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/current_source_dir.} == {env_current_source_dirscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/env_current_source_dir.}') |
| 28 | assert current_source_dirscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/current_source_dir. == env_current_source_dirscip-python python meson 1.11.1 `test cases.common.51 run target.check-env`/env_current_source_dir. |