meson: make `test` target work on more systems
Found on FreeBSD. However, /usr/bin
as a symlik to /bin
is not universal even on Linux.
$ meson setup _build
$ meson compile -C _build
$ meson test -C _build
[...]
Exception in callback TestHarness._run_tests.<locals>.test_done(<Task finishe...r directory')>) at /usr/local/lib/python3.10/site-packages/mesonbuild/mtest.py:1836
handle: <Handle TestHarness._run_tests.<locals>.test_done(<Task finishe...r directory')>) at /usr/local/lib/python3.10/site-packages/mesonbuild/mtest.py:1836>
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/local/lib/python3.10/site-packages/mesonbuild/mtest.py", line 1838, in test_done
f.result()
File "/usr/local/lib/python3.10/site-packages/mesonbuild/mtest.py", line 1833, in run_test
res = await test.run(self)
File "/usr/local/lib/python3.10/site-packages/mesonbuild/mtest.py", line 1377, in run
await self._run_cmd(harness, cmd)
File "/usr/local/lib/python3.10/site-packages/mesonbuild/mtest.py", line 1431, in _run_cmd
p = await self._run_subprocess(cmd + extra_cmd,
File "/usr/local/lib/python3.10/site-packages/mesonbuild/mtest.py", line 1405, in _run_subprocess
p = await asyncio.create_subprocess_exec(*args,
File "/usr/local/lib/python3.10/asyncio/subprocess.py", line 218, in create_subprocess_exec
transport, protocol = await loop.subprocess_exec(
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1652, in subprocess_exec
transport = await self._make_subprocess_transport(
File "/usr/local/lib/python3.10/asyncio/unix_events.py", line 207, in _make_subprocess_transport
transp = _UnixSubprocessTransport(self, protocol, args, shell,
File "/usr/local/lib/python3.10/asyncio/base_subprocess.py", line 36, in __init__
self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
File "/usr/local/lib/python3.10/asyncio/unix_events.py", line 799, in _start
self._proc = subprocess.Popen(
File "/usr/local/lib/python3.10/subprocess.py", line 965, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.10/subprocess.py", line 1841, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/ports/audio/gnome-podcasts/work/podcasts-e93a7ddabfe8289138280c3f613038b809b5033d/scripts/test.sh'
Ok: 0
Expected Fail: 0
Fail: 0
Unexpected Pass: 0
Skipped: 0
Timeout: 0