[libvirt] [PATCH] tests: virsh-all: new script

Jim Meyering jim at meyering.net
Fri Nov 21 22:54:04 UTC 2008


"Daniel P. Berrange" <berrange at redhat.com> wrote:
> On Fri, Nov 21, 2008 at 11:16:18AM +0100, Jim Meyering wrote:
>> Actually, this was the first step.
>> This tiny script merely invokes all commands blindly,
>> solely to get test coverage, even if they (as most do) fail.
>
> It at least verifies that the commands don't crash or leak
> memory in the error paths :-)
>
>> +
>> +if test "$VERBOSE" = yes; then
>> +  set -x
>> +  virsh --version
>> +fi
>> +
>> +. $srcdir/test-lib.sh
>
> $srcdir won't be set if you just invoke the test case directly
> as ./virsh-all. Can you add a default value assuming non-VPATH
> build, eg
>
>    test -z "$srcdir" && srcdir=`pwd`

Sure.  Done. and in virsh-synopsis.
I'll commit these tomorrow.




More information about the libvir-list mailing list