meson doc: Is "-Dtap-tests" a typo?

Started by Katsuragi Yutaabout 3 years ago3 messagesdocs
Jump to latest
#1Katsuragi Yuta
katsuragiy@oss.nttdata.com

Hi,

The parameter name "-Dtap-tests" in the meson's doc seems to be a typo.
I think "-Dtap_tests" is the correct name. Attached patch fixes that.

I got an unknown options error by using "-Dtap-tests=enabled". However,
meson_options.txt told me the correct name was "-Dtap_tests".

regards,

--
Katsuragi Yuta
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

Attachments:

meson-doc-tap-tests.patchtext/x-diff; charset=us-ascii; name=meson-doc-tap-tests.patchDownload+1-1
#2Michael Paquier
michael@paquier.xyz
In reply to: Katsuragi Yuta (#1)
Re: meson doc: Is "-Dtap-tests" a typo?

On Tue, Feb 14, 2023 at 09:06:13AM +0000, Katsuragi Yuta wrote:

The parameter name "-Dtap-tests" in the meson's doc seems to be a typo.
I think "-Dtap_tests" is the correct name. Attached patch fixes that.

I got an unknown options error by using "-Dtap-tests=enabled". However,
meson_options.txt told me the correct name was "-Dtap_tests".

      <varlistentry id="configure-tap-tests-meson">
-      <term><option>-Dtap-tests={ auto | enabled | disabled }</option></term>
+      <term><option>-Dtap_tests={ auto | enabled | disabled }</option></term>

And meson.build refers to the same term, as of "tap_tests":
# Check whether tap tests are enabled or not
tap_tests_enabled = false
tapopt = get_option('tap_tests')

So you are indeed right. Nice catch. Will fix.
--
Michael

#3Katsuragi Yuta
katsuragiy@oss.nttdata.com
In reply to: Michael Paquier (#2)
Re: meson doc: Is "-Dtap-tests" a typo?

On 2023-02-15 13:44, Michael Paquier wrote:

On Tue, Feb 14, 2023 at 09:06:13AM +0000, Katsuragi Yuta wrote:

The parameter name "-Dtap-tests" in the meson's doc seems to be a
typo.
I think "-Dtap_tests" is the correct name. Attached patch fixes that.

I got an unknown options error by using "-Dtap-tests=enabled".
However,
meson_options.txt told me the correct name was "-Dtap_tests".

<varlistentry id="configure-tap-tests-meson">
-      <term><option>-Dtap-tests={ auto | enabled | disabled 
}</option></term>
+      <term><option>-Dtap_tests={ auto | enabled | disabled 
}</option></term>

And meson.build refers to the same term, as of "tap_tests":
# Check whether tap tests are enabled or not
tap_tests_enabled = false
tapopt = get_option('tap_tests')

So you are indeed right. Nice catch. Will fix.
--
Michael

Thank you!

regards,

--
Katsuragi Yuta
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION