Test: cts: Validate the XML output of any command that supports it.
If a test succeeds, then feed its output through xmllint to validate
against the api-result.rng schema. If running under valgrind, skip the
validation step.
And then fix some shellcheck warnings on these lines while I'm in the
area.