<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/meson.git/run_meson_command_tests.py, branch cppnoexcept</title>
<subtitle>github.com: mesonbuild/meson.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/meson.git/'/>
<entry>
<title>tests: Ignore all files in 'data' directories</title>
<updated>2019-06-28T15:02:20+00:00</updated>
<author>
<name>Daniel Mensinger</name>
<email>daniel@mensinger-ka.de</email>
</author>
<published>2019-06-28T15:02:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/meson.git/commit/?id=ec0998e694459fe8c2954bb72cc6b0b0959b37c8'/>
<id>ec0998e694459fe8c2954bb72cc6b0b0959b37c8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: fix test_meson_installed after the recent appveyor image update</title>
<updated>2018-11-14T23:00:01+00:00</updated>
<author>
<name>Christoph Reiter</name>
<email>reiter.christoph@gmail.com</email>
</author>
<published>2018-11-13T18:48:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/meson.git/commit/?id=5a9c9c70df17c8f1ba900933574586c46c3d096f'/>
<id>5a9c9c70df17c8f1ba900933574586c46c3d096f</id>
<content type='text'>
Since the last appveyor image update which also included a msys2 update
test_meson_installed() fails for the msys2 mingw jobs complaining that
the install path isn't included in PYTHONPATH.

It complains that "site-packages\" isn't included in "site-packages" ignoring
that the separator should be ignored here. Work around the issue by making
sure that the path set as PYTHONPATH always ends with os.sep.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since the last appveyor image update which also included a msys2 update
test_meson_installed() fails for the msys2 mingw jobs complaining that
the install path isn't included in PYTHONPATH.

It complains that "site-packages\" isn't included in "site-packages" ignoring
that the separator should be ignored here. Work around the issue by making
sure that the path set as PYTHONPATH always ends with os.sep.
</pre>
</div>
</content>
</entry>
<entry>
<title>Consider 'samu' when looking for ninja command</title>
<updated>2018-11-10T22:21:47+00:00</updated>
<author>
<name>Michael Forney</name>
<email>mforney@mforney.org</email>
</author>
<published>2018-10-08T17:05:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/meson.git/commit/?id=50b2ef7354b503ae62abd504cdce938c390b358f'/>
<id>50b2ef7354b503ae62abd504cdce938c390b358f</id>
<content type='text'>
samu prints a different message when the build is a no-op, so make
assertBuildIsNoop consider that as well.

Also, if compile_commands.json cannot be found, just skip the test. This
seems reasonable since meson just produces a warning if `ninja -t compdb`
fails.

Finally, only capture stdout in run_meson_command_tests.py, since the
backend may print messages the tests don't recognize to stderr.

Fixes #3405.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
samu prints a different message when the build is a no-op, so make
assertBuildIsNoop consider that as well.

Also, if compile_commands.json cannot be found, just skip the test. This
seems reasonable since meson just produces a warning if `ninja -t compdb`
fails.

Finally, only capture stdout in run_meson_command_tests.py, since the
backend may print messages the tests don't recognize to stderr.

Fixes #3405.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests runners: Refactor out global variables and add argparse</title>
<updated>2018-10-10T19:19:06+00:00</updated>
<author>
<name>Niklas Claesson</name>
<email>nicke.claesson@gmail.com</email>
</author>
<published>2018-10-10T19:17:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/meson.git/commit/?id=4ef4edee2f460a354cca0c381d08604f6837c496'/>
<id>4ef4edee2f460a354cca0c381d08604f6837c496</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>meson_command_tests: Don't pass pathlib.Path to open [skip appveyor]</title>
<updated>2018-08-18T16:13:15+00:00</updated>
<author>
<name>Nirbheek Chauhan</name>
<email>nirbheek@centricular.com</email>
</author>
<published>2018-08-18T15:27:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/meson.git/commit/?id=8277d94e24d4382d49289c07ef20ea78d95443e1'/>
<id>8277d94e24d4382d49289c07ef20ea78d95443e1</id>
<content type='text'>
Closes https://github.com/mesonbuild/meson/issues/4047
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes https://github.com/mesonbuild/meson/issues/4047
</pre>
</div>
</content>
</entry>
<entry>
<title>setup: Add tests for the installed files list</title>
<updated>2018-08-11T19:48:58+00:00</updated>
<author>
<name>Nirbheek Chauhan</name>
<email>nirbheek@centricular.com</email>
</author>
<published>2018-08-11T19:25:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/meson.git/commit/?id=c0413f5d49ce7b7df03cf859841aa8b275a6cd6d'/>
<id>c0413f5d49ce7b7df03cf859841aa8b275a6cd6d</id>
<content type='text'>
Ensure that the installed files list matches what we expect, to avoid
surprises at release time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ensure that the installed files list matches what we expect, to avoid
surprises at release time.
</pre>
</div>
</content>
</entry>
<entry>
<title>Install meson.exe as the entrypoint on Windows</title>
<updated>2018-08-10T21:49:57+00:00</updated>
<author>
<name>Nirbheek Chauhan</name>
<email>nirbheek@centricular.com</email>
</author>
<published>2018-08-10T10:35:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/meson.git/commit/?id=2ee28029f945d74d01e63d6efd8802c9df03b28f'/>
<id>2ee28029f945d74d01e63d6efd8802c9df03b28f</id>
<content type='text'>
Thanks to Rafael Rivera for the suggestion

Fixes https://github.com/mesonbuild/meson/issues/1877
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Thanks to Rafael Rivera for the suggestion

Fixes https://github.com/mesonbuild/meson/issues/1877
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix __main__.py for zipapp to work</title>
<updated>2018-08-07T10:55:35+00:00</updated>
<author>
<name>Christoph Burger-Scheidlin</name>
<email>7289824+cburger-scheidlin@users.noreply.github.com</email>
</author>
<published>2018-08-03T13:17:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/meson.git/commit/?id=e4a83e47d4402d6fede8b284f079529fb78c2cbb'/>
<id>e4a83e47d4402d6fede8b284f079529fb78c2cbb</id>
<content type='text'>
0a035de removed main from meson.py breaking the call from __main__.py.
This causes zipapps to fail, since the call to meson.main() fails.

Copying the invocation from meson.py fixes this issue.

Additionally, add a test to run_meson_command_tests.py that
builds a zipapp from the source and attempts executing this
zipapp with --help to ensure that the resulting zipapp is
properly executable.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
0a035de removed main from meson.py breaking the call from __main__.py.
This causes zipapps to fail, since the call to meson.main() fails.

Copying the invocation from meson.py fixes this issue.

Additionally, add a test to run_meson_command_tests.py that
builds a zipapp from the source and attempts executing this
zipapp with --help to ensure that the resulting zipapp is
properly executable.
</pre>
</div>
</content>
</entry>
<entry>
<title>Set the meson command to use when we know what it is</title>
<updated>2018-06-01T19:20:04+00:00</updated>
<author>
<name>Nirbheek Chauhan</name>
<email>nirbheek@centricular.com</email>
</author>
<published>2018-06-01T07:30:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/meson.git/commit/?id=0a035dea6d0b1416fc76e323bbd7b0ab5a60a4af'/>
<id>0a035dea6d0b1416fc76e323bbd7b0ab5a60a4af</id>
<content type='text'>
Instead of using fragile guessing to figure out how to invoke meson,
set the value when meson is run. Also rework how we pass of
meson_script_launcher to regenchecker.py -- it wasn't even being used

With this change, we only need to guess the meson path when running
the tests, and in that case:

1. If MESON_EXE is set in the env, we know how to run meson
   for project tests.
2. MESON_EXE is not set, which means we run the configure in-process
   for project tests and need to guess what meson to run, so either
   - meson.py is found next to run_tests.py, or
   - meson, meson.py, or meson.exe is in PATH

Otherwise, you can invoke meson in the following ways:

1. meson is installed, and mesonbuild is available in PYTHONPATH:
   - meson, meson.py, meson.exe from PATH
   - python3 -m mesonbuild.mesonmain
   - python3 /path/to/meson.py
   - meson is a shell wrapper to meson.real
2. meson is not installed, and is run from git:
   - Absolute path to meson.py
   - Relative path to meson.py
   - Symlink to meson.py

All these are tested in test_meson_commands.py, except meson.exe since
that involves building the meson msi and installing it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of using fragile guessing to figure out how to invoke meson,
set the value when meson is run. Also rework how we pass of
meson_script_launcher to regenchecker.py -- it wasn't even being used

With this change, we only need to guess the meson path when running
the tests, and in that case:

1. If MESON_EXE is set in the env, we know how to run meson
   for project tests.
2. MESON_EXE is not set, which means we run the configure in-process
   for project tests and need to guess what meson to run, so either
   - meson.py is found next to run_tests.py, or
   - meson, meson.py, or meson.exe is in PATH

Otherwise, you can invoke meson in the following ways:

1. meson is installed, and mesonbuild is available in PYTHONPATH:
   - meson, meson.py, meson.exe from PATH
   - python3 -m mesonbuild.mesonmain
   - python3 /path/to/meson.py
   - meson is a shell wrapper to meson.real
2. meson is not installed, and is run from git:
   - Absolute path to meson.py
   - Relative path to meson.py
   - Symlink to meson.py

All these are tested in test_meson_commands.py, except meson.exe since
that involves building the meson msi and installing it.
</pre>
</div>
</content>
</entry>
</feed>
