From 5b5393f27aed15b3b6333d007ad556ad7009bc88 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 24 Nov 2008 07:11:26 +0000 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. * configure.in (AC_OUTPUT): Remove tests/virshdata/Makefile. --- ChangeLog | 12 ++ configure.in | 2 +- docs/testnode.xml | 2 +- tests/Makefile.am | 2 +- tests/virshdata/.cvsignore | 2 - tests/virshdata/.gitignore | 2 - tests/virshdata/Makefile.am | 2 - tests/virshdata/domid-fc4.txt | 2 - tests/virshdata/dominfo-fc4.txt | 10 - tests/virshdata/domname-fc4.txt | 2 - tests/virshdata/domstate-fc4.txt | 2 - tests/virshdata/domuuid-fc4.txt | 2 - tests/virshdata/list-custom.txt | 5 - tests/virshdata/list-default.txt | 4 - tests/virshdata/nodeinfo-custom.txt | 9 - tests/virshdata/nodeinfo-default.txt | 9 - tests/virshtest.c | 264 +++++++++++---------------- 17 files changed, 124 insertions(+), 209 deletions(-) delete mode 100644 tests/virshdata/.cvsignore delete mode 100644 tests/virshdata/.gitignore delete mode 100644 tests/virshdata/Makefile.am delete mode 100644 tests/virshdata/domid-fc4.txt delete mode 100644 tests/virshdata/dominfo-fc4.txt delete mode 100644 tests/virshdata/domname-fc4.txt delete mode 100644 tests/virshdata/domstate-fc4.txt delete mode 100644 tests/virshdata/domuuid-fc4.txt delete mode 100644 tests/virshdata/list-custom.txt delete mode 100644 tests/virshdata/list-default.txt delete mode 100644 tests/virshdata/nodeinfo-custom.txt delete mode 100644 tests/virshdata/nodeinfo-default.txt diff --git a/ChangeLog b/ChangeLog index 692476dfda..d209ba1e1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +Mon Nov 24 08:10:49 +0100 2008 Jim Meyering + + 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. + * configure.in (AC_OUTPUT): Remove tests/virshdata/Makefile. + Fri Nov 21 23:51:19 +0100 2008 Jim Meyering * gnulib/tests/test-EOVERFLOW: Remove. diff --git a/configure.in b/configure.in index 76e6d77187..47b9388c6f 100644 --- a/configure.in +++ b/configure.in @@ -1227,7 +1227,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([]) diff --git a/docs/testnode.xml b/docs/testnode.xml index 7df10b0984..be7121d81e 100644 --- a/docs/testnode.xml +++ b/docs/testnode.xml @@ -1,6 +1,6 @@