[libvirt] [PATCH] Move the expected output data from virshdata/*.txt into virshtest.c.
Jim Meyering
jim at meyering.net
Fri Nov 21 09:27:55 UTC 2008
Jim Meyering <jim at meyering.net> wrote:
> This is mainly just reorganization and factorization, with an eye
> towards making it easier to add more tests in virshtest.c later.
>
>>From 21352a07b073d52bcd3c442c76d7fb985aeef845 Mon Sep 17 00:00:00 2001
> From: Jim Meyering <meyering at redhat.com>
> Date: Thu, 20 Nov 2008 20:35:57 +0100
> Subject: [PATCH] Move the expected output data from virshdata/*.txt into virshtest.c.
>
> * tests/virshtest.c: Embed literal, expected output here, rather than
> using virshdata/*.txt file names.
> Factor out some common constructs.
> (testCompareOutputLit): New function.
> (testCompareOutput): #ifdef-out, not that it's unused.
> * tests/Makefile.am (SUBDIRS): Remove virshdata/ and all files in it.
> * docs/testnode.xml: Fix typo in a comment.
Since I'm removing a directory containing a Makefile.am,
I've amended the patch to do this, too:
* configure.in (AC_OUTPUT): Remove tests/virshdata/Makefile.
diff --git a/configure.in b/configure.in
index 21931a1..fab5e0c 100644
--- a/configure.in
+++ b/configure.in
@@ -1093,7 +1093,7 @@ AC_OUTPUT(Makefile src/Makefile include/Makefile docs/Makefile \
tests/sexpr2xmldata/Makefile \
tests/xmconfigdata/Makefile \
tests/xencapsdata/Makefile \
- tests/virshdata/Makefile tests/confdata/Makefile \
+ tests/confdata/Makefile \
examples/domain-events/events-c/Makefile)
AC_MSG_NOTICE([])
More information about the libvir-list
mailing list