Bug 89086 - dbus-test-tool should have a man page
Summary: dbus-test-tool should have a man page
Status: RESOLVED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: git master
Hardware: Other All
: medium enhancement
Assignee: Simon McVittie
QA Contact: D-Bus Maintainers
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-02-11 18:15 UTC by Simon McVittie
Modified: 2015-02-12 19:05 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Document dbus-test-tool (11.72 KB, patch)
2015-02-11 18:15 UTC, Simon McVittie
Details | Splinter Review
man page fixes, to be squashed (5.25 KB, patch)
2015-02-12 13:04 UTC, Simon McVittie
Details | Splinter Review
Add dbus-test-tool and its man page to the CMake build system (2.94 KB, patch)
2015-02-12 13:05 UTC, Simon McVittie
Details | Splinter Review
Document dbus-test-tool (13.19 KB, patch)
2015-02-12 13:06 UTC, Simon McVittie
Details | Splinter Review

Description Simon McVittie 2015-02-11 18:15:26 UTC
Created attachment 113365 [details] [review]
Document dbus-test-tool

---

lintian(1) complained that dbus-test-tool was violating Debian policy by not having a man page, and I was writing documentation for dbus-update-activation-environment anyway, so...
Comment 1 Philip Withnall 2015-02-12 08:16:50 UTC
Comment on attachment 113365 [details] [review]
Document dbus-test-tool

Review of attachment 113365 [details] [review]:
-----------------------------------------------------------------

Seems to be missing fun CMake changes to cmake/doc/CMakeLists.txt.

xmlto gives me the following warnings when I run it:
$ xmlto man dbus-test-tool.1.xml 
Warn: meta author : no refentry/info/author                        dbus-test-tool
Note: meta author : see http://docbook.sf.net/el/author            dbus-test-tool
Warn: meta author : no author data, so inserted a fixme            dbus-test-tool

::: doc/dbus-test-tool.1.xml.in
@@ +111,5 @@
> +      <title>black-hole mode</title>
> +      <variablelist remap="TP">
> +
> +        <varlistentry>
> +          <term><option>--name=</option><replaceable>NAME</replaceable></term>

Shouldn’t the <replaceable> be inside the <option>?

Same in various places below.

@@ +158,5 @@
> +
> +        <varlistentry>
> +          <term><option>--dest=</option><replaceable>NAME</replaceable></term>
> +          <listitem>
> +            <para>Send method calls to <replaceable>NAME</replaceable>.

Where NAME is presumably a well-known or unique name?

@@ +178,5 @@
> +          <listitem>
> +            <para>Send <replaceable>N</replaceable> method calls before
> +              waiting for any replies, then send one new call per reply
> +              received, keeping <replaceable>N</replaceable> method calls
> +              "in flight" at all times until the <option>--count</option>

‘until <replaceable>N</replaceable> is reached’?

@@ +216,5 @@
> +        <varlistentry>
> +          <term><option>--string</option></term>
> +          <listitem>
> +            <para>The payload of each message is a UTF-8 string. This is the
> +              default.</para>

What’s in the string? → Link to --payload and --stdin.

@@ +223,5 @@
> +
> +        <varlistentry>
> +          <term><option>--bytes</option></term>
> +          <listitem>
> +            <para>The payload of each message is a byte-array.</para>

What’s in the byte array? → Link to --payload and --stdin.
Comment 2 Simon McVittie 2015-02-12 12:08:08 UTC
(In reply to Philip Withnall from comment #1)
> Seems to be missing fun CMake changes to cmake/doc/CMakeLists.txt.

Fair point, but dbus-test-tool itself is not currently built under cmake either.

It isn't a big deal if the CMake build lags behind the recommended Autotools build a little - it's primarily there for Windows, which is something of a second-class citizen in dbus anyway.

> $ xmlto man dbus-test-tool.1.xml 
> Warn: meta author : no refentry/info/author                       

I saw that warning, and have chosen to ignore it: I prefer the parts of D-Bus that I've written to be seen as "owned" by the D-Bus project, rather than individual developers having "territory", and I think the other maintainers have a similar policy. (I should add a Collabora copyright notice, though - copyright information is more important than authorship here.)

> > +          <term><option>--name=</option><replaceable>NAME</replaceable></term>
> 
> Shouldn’t the <replaceable> be inside the <option>?

I ... don't think so? --name= is the literal option text whereas NAME is a placeholder; this would be .BI (alternate bold with italic) if I was writing raw man-page text. But if you happen to know what is considered good Docbook style, I'll go along with it.

The examples in http://www.tldp.org/HOWTO/DocBook-Install/using.html suggest that either way works in practice.

> Where NAME is presumably a well-known or unique name?

Yeah, could benefit from clarification.

> > +              received, keeping <replaceable>N</replaceable> method calls
> > +              "in flight" at all times until the <option>--count</option>
> 
> ‘until <replaceable>N</replaceable> is reached’?

No, I think that would be confusing: the argument to --queue=N and the argument to --count=N are not the same N. A typical example would be something like --count=1000 --queue=100, which would send 100 immediately, then keep 100 at a time in-flight until it had sent the 1000th message in response to the 900th reply, after which the number in-flight would drop off gradually until the 1000th reply.

> What’s in the string? → Link to --payload and --stdin.

Fair point.
Comment 3 Simon McVittie 2015-02-12 13:04:59 UTC
Created attachment 113398 [details] [review]
man page fixes, to be squashed
Comment 4 Simon McVittie 2015-02-12 13:05:15 UTC
Created attachment 113399 [details] [review]
Add dbus-test-tool and its man page to the CMake build system
Comment 5 Simon McVittie 2015-02-12 13:06:42 UTC
Created attachment 113400 [details] [review]
Document dbus-test-tool

---
Squashed version of Attachment #113365 [details] and Attachment #113398 [details] if you prefer that
Comment 6 Philip Withnall 2015-02-12 13:36:08 UTC
Comment on attachment 113398 [details] [review]
man page fixes, to be squashed

Review of attachment 113398 [details] [review]:
-----------------------------------------------------------------

++
Comment 7 Philip Withnall 2015-02-12 13:37:18 UTC
Comment on attachment 113399 [details] [review]
Add dbus-test-tool and its man page to the CMake build system

Review of attachment 113399 [details] [review]:
-----------------------------------------------------------------

++
Comment 8 Philip Withnall 2015-02-12 13:39:55 UTC
(In reply to Simon McVittie from comment #2)
> (In reply to Philip Withnall from comment #1)
> > Seems to be missing fun CMake changes to cmake/doc/CMakeLists.txt.
> 
> Fair point, but dbus-test-tool itself is not currently built under cmake
> either.
> 
> It isn't a big deal if the CMake build lags behind the recommended Autotools
> build a little - it's primarily there for Windows, which is something of a
> second-class citizen in dbus anyway.

OK, I’ll ignore CMake in future reviews then.

> > > +          <term><option>--name=</option><replaceable>NAME</replaceable></term>
> > 
> > Shouldn’t the <replaceable> be inside the <option>?
> 
> I ... don't think so? --name= is the literal option text whereas NAME is a
> placeholder; this would be .BI (alternate bold with italic) if I was writing
> raw man-page text. But if you happen to know what is considered good Docbook
> style, I'll go along with it.
> 
> The examples in http://www.tldp.org/HOWTO/DocBook-Install/using.html suggest
> that either way works in practice.

Let’s leave it unchanged then.

> > > +              received, keeping <replaceable>N</replaceable> method calls
> > > +              "in flight" at all times until the <option>--count</option>
> > 
> > ‘until <replaceable>N</replaceable> is reached’?
> 
> No, I think that would be confusing: the argument to --queue=N and the
> argument to --count=N are not the same N. A typical example would be
> something like --count=1000 --queue=100, which would send 100 immediately,
> then keep 100 at a time in-flight until it had sent the 1000th message in
> response to the 900th reply, after which the number in-flight would drop off
> gradually until the 1000th reply.

Understood.
Comment 9 Simon McVittie 2015-02-12 19:05:40 UTC
Fixed in git for 1.9.12


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.