Re: [Libvir] PATCH: Use macros to remove duplicate test code

2008-04-18 Thread Richard W.M. Jones
On Fri, Apr 18, 2008 at 01:32:49AM +0100, Daniel P. Berrange wrote: The test suite files contain alot of boilerplate duplicated code. With a few more macros I can significantly cut down the size of the test code. I also change abs_top_srcdir to abs_srcdir, and automatically initialize it to

Re: [Libvir] PATCH: Use macros to remove duplicate test code

2008-04-18 Thread Jim Meyering
Daniel P. Berrange [EMAIL PROTECTED] wrote: The test suite files contain alot of boilerplate duplicated code. With a few more macros I can significantly cut down the size of the test code. I also change abs_top_srcdir to abs_srcdir, and automatically initialize it to 'getcwd' if the env

Re: [Libvir] PATCH: Use macros to remove duplicate test code

2008-04-18 Thread Jim Meyering
Daniel P. Berrange [EMAIL PROTECTED] wrote: ... Index: test_conf.sh === RCS file: /data/cvs/libvirt/tests/test_conf.sh,v retrieving revision 1.4 diff -u -p -r1.4 test_conf.sh --- test_conf.sh 5 Feb 2008 19:27:37 -

[Libvir] PATCH: Use macros to remove duplicate test code

2008-04-17 Thread Daniel P. Berrange
The test suite files contain alot of boilerplate duplicated code. With a few more macros I can significantly cut down the size of the test code. I also change abs_top_srcdir to abs_srcdir, and automatically initialize it to 'getcwd' if the env variable is missing. This lets me run the test cases