
This is a simple patch series that makes the build pass make distcheck. I tried (not much) to make the tests at least build, without success. This way I simply considered them broken and removed from the source tree. Best regards, Etrunko

From: Eduardo Lima (Etrunko) <eblima@br.ibm.com> This is the first step trying to comply with make distcheck. Those files don't even compile for quite some time, I wonder if they are used by anyone. Signed-off-by: Eduardo Lima (Etrunko) <eblima@br.ibm.com> --- configure.ac | 2 - libxkutil/Makefile.am | 1 - libxkutil/tests/Makefile.am | 10 -- libxkutil/tests/infostore.c | 80 ----------- libxkutil/tests/xml_devices.c | 293 ----------------------------------------- libxkutil/tests/xml_dominfo.c | 73 ---------- libxkutil/tests/xml_tag.c | 95 ------------- libxkutil/tests/xmlgen.c | 58 -------- src/Makefile.am | 1 - src/tests/Makefile.am | 6 - src/tests/test_link.sh | 17 --- 11 files changed, 0 insertions(+), 636 deletions(-) delete mode 100644 libxkutil/tests/Makefile.am delete mode 100644 libxkutil/tests/infostore.c delete mode 100644 libxkutil/tests/xml_devices.c delete mode 100644 libxkutil/tests/xml_dominfo.c delete mode 100644 libxkutil/tests/xml_tag.c delete mode 100644 libxkutil/tests/xmlgen.c delete mode 100644 src/tests/Makefile.am delete mode 100644 src/tests/test_link.sh diff --git a/configure.ac b/configure.ac index 3a7bcff..a1dc3ca 100644 --- a/configure.ac +++ b/configure.ac @@ -141,9 +141,7 @@ AC_CONFIG_FILES([ base_schema/install_base_schema.sh base_schema/Makefile libxkutil/Makefile - libxkutil/tests/Makefile src/Makefile - src/tests/Makefile doc/Makefile Makefile ]) diff --git a/libxkutil/Makefile.am b/libxkutil/Makefile.am index f6abce5..f1adc03 100644 --- a/libxkutil/Makefile.am +++ b/libxkutil/Makefile.am @@ -1,5 +1,4 @@ # Copyright IBM Corp. 2007 -SUBDIRS = tests AM_CFLAGS = $(CFLAGS_STRICT) \ -DLIBVIRTCIM_CONF=\"@sysconfdir@/@PACKAGE@.conf\" diff --git a/libxkutil/tests/Makefile.am b/libxkutil/tests/Makefile.am deleted file mode 100644 index 7c0cdc6..0000000 --- a/libxkutil/tests/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright IBM Corp. 2007 -TESTS = xml_tag.test xml_devices.test xmlgen.test xml_dominfo.test infostore.test - -CFLAGS += -g - -%.test: %.c - $(CC) -o $@ $^ $(CFLAGS) -lvirt `xml2-config --libs` -L../.libs -lxkutil - -clean-local: - rm -f *.test diff --git a/libxkutil/tests/infostore.c b/libxkutil/tests/infostore.c deleted file mode 100644 index df625bb..0000000 --- a/libxkutil/tests/infostore.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright IBM Corp. 2008 - * - * Authors: - * Dan Smith <danms@us.ibm.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#include <stdio.h> -#include <inttypes.h> - -#include <libvirt/libvirt.h> - -#include "../infostore.h" - -int main(int argc, char **argv) -{ - struct infostore_ctx *ctx = NULL; - virConnectPtr conn = NULL; - virDomainPtr dom = NULL; - - if (argc != 2) { - printf("Usage: %s <domain>\n", argv[0]); - return 1; - } - - conn = virConnectOpen(NULL); - if (conn == NULL) { - printf("Unable to open connection\n"); - goto out; - } - - dom = virDomainLookupByName(conn, argv[1]); - if (dom == NULL) { - printf("Unable to lookup domain `%s'\n", argv[1]); - goto out; - } - - ctx = infostore_open(dom); - if (ctx == NULL) { - printf("Unable to open infostore for `%s'\n", argv[1]); - goto out; - } - - printf("Foo: %" PRIu64 "\n", infostore_get_u64(ctx, "foo")); - - infostore_set_u64(ctx, "foo", 321); - infostore_set_u64(ctx, "bar", 987); - printf("Should be (null): %s\n", infostore_get_str(ctx, "baz")); - - out: - infostore_close(ctx); - virDomainFree(dom); - virConnectClose(conn); - - return 0; -} - -/* - * Local Variables: - * mode: C - * c-set-style: "K&R" - * tab-width: 8 - * c-basic-offset: 8 - * indent-tabs-mode: nil - * End: - */ diff --git a/libxkutil/tests/xml_devices.c b/libxkutil/tests/xml_devices.c deleted file mode 100644 index 08b9f04..0000000 --- a/libxkutil/tests/xml_devices.c +++ /dev/null @@ -1,293 +0,0 @@ -/* - * Copyright IBM Corp. 2007 - * - * Authors: - * Dan Smith <danms@us.ibm.com> - * Zhengang Li <lizg@cn.ibm.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -#include <stdio.h> - -#include "../device_parsing.h" -#include "../device_parsing.c" - -#define STREQ(x, y) (strcmp(x, y) == 0) - -static void print_disk(struct disk_device *dev) -{ - fprintf(stderr, - "type: %s\n" - "device: %s\n" - "driver: %s\n" - "source: %s\n" - "vdev: %s\n", - dev->type, dev->device, dev->driver, - dev->source, dev->virtual_dev); -} - -static void print_net(struct net_device *dev) -{ - fprintf(stderr, - "type: %s\n" - "mac: %s\n", - dev->type, dev->mac); -} - -static void print_dev(struct virt_device *dev) -{ - if (dev->type == VIRT_DEV_DISK) - print_disk(&dev->dev.disk); - else if (dev->type == VIRT_DEV_NET) - print_net(&dev->dev.net); - else - printf("ERROR: Unknown device type %i\n", dev->type); -} - -int main(int argc, char **argv) -{ - struct virt_device *devs; - int count; - char *conf1 = - "<domain type='xen' id='0'>\n" - " <name>sles10foo</name>\n" - " <uuid>7c42b545ffc4eb4441d1be3936516de3</uuid>\n" - " <bootloader>/usr/lib/xen/boot/domUloader.py</bootloader>\n" - " <os>\n" - " <type>linux</type>\n" - " <kernel>/var/lib/xen/tmp/kernel.0F29se</kernel>\n" - " <initrd>/var/lib/xen/tmp/ramdisk.qGK5v5</initrd>\n" - " <cmdline>TERM=xterm </cmdline>\n" - " </os>\n" - " <memory>524288</memory>\n" - " <vcpu>1</vcpu>\n" - " <on_poweroff>destroy</on_poweroff>\n" - " <on_reboot>restart</on_reboot>\n" - " <on_crash>destroy</on_crash>\n" - " <devices>\n" - " <interface type='ethernet'>\n" - " <mac address='00:16:3e:62:d1:bd'/>\n" - " </interface>\n" - " <disk type='file' device='disk'>\n" - " <driver name='file'/>\n" - " <source file='/var/lib/xen/images/sles10/disk0'/>\n" - " <target dev='xvda'/>\n" - " </disk>\n" - " <graphics type='vnc' port='-1'/>\n" - " </devices>\n" - "</domain>\n"; - char *conf2 = - "<domain type='xen' id='0'>\n" - " <name>sles10foo</name>\n" - " <uuid>7c42b545ffc4eb4441d1be3936516de3</uuid>\n" - " <bootloader>/usr/lib/xen/boot/domUloader.py</bootloader>\n" - " <os>\n" - " <type>linux</type>\n" - " <kernel>/var/lib/xen/tmp/kernel.0F29se</kernel>\n" - " <initrd>/var/lib/xen/tmp/ramdisk.qGK5v5</initrd>\n" - " <cmdline>TERM=xterm </cmdline>\n" - " </os>\n" - " <memory>524288</memory>\n" - " <vcpu>1</vcpu>\n" - " <on_poweroff>destroy</on_poweroff>\n" - " <on_reboot>restart</on_reboot>\n" - " <on_crash>destroy</on_crash>\n" - " <devices>\n" - " <disk type='file' device='disk'>\n" - " <driver name='file'/>\n" - " <source file='/var/lib/xen/images/foo/bar'/>\n" - " <target dev='xvdb'/>\n" - " </disk>\n" - " <interface type='ethernet'>\n" - " <mac address='00:16:3e:62:d1:bd'/>\n" - " </interface>\n" - " <interface type='ethernet'>\n" - " <mac address='00:11:22:33:44:55'/>\n" - " </interface>\n" - " <disk type='file' device='disk'>\n" - " <driver name='file'/>\n" - " <source file='/var/lib/xen/images/sles10/disk0'/>\n" - " <target dev='xvda'/>\n" - " </disk>\n" - " <graphics type='vnc' port='-1'/>\n" - " </devices>\n" - "</domain>\n"; - char *conf3 = "snarf"; - char *conf4 = - "<domain type='xen' id='0'>\n" - " <devices>\n" - " <disk type='file' device='disk'>\n" - " <driver name='file'/>\n" - " <target dev='xvdb'/>\n" - " </disk>\n" - " <interface type='ethernet'>\n" - " <mac address='00:16:3e:62:d1:bd'/>\n" - " </interface>\n" - " <interface type='ethernet'>\n" - " </interface>\n" - " <disk type='file' device='disk'>\n" - " <driver name='file'/>\n" - " <source file='/disk0'/>\n" - " <target dev='xvda'/>\n" - " </disk>\n" - " <graphics type='vnc' port='-1'/>\n" - " </devices>\n" - "</domain>\n"; - - count = parse_devices(conf1, &devs, VIRT_DEV_DISK); - if (count != 1) { - fprintf(stderr, "Failed to find disk in config\n"); - return 1; - } - - if (! (STREQ(devs->dev.disk.type, "file") && - STREQ(devs->dev.disk.device, "disk") && - STREQ(devs->dev.disk.driver, "file") && - STREQ(devs->dev.disk.source, "/var/lib/xen/images/sles10/disk0") && - STREQ(devs->dev.disk.virtual_dev, "xvda"))) { - fprintf(stderr, "Failed to validate domain contents:\n"); - print_dev(devs); - return 1; - } - - cleanup_virt_device(devs); - free(devs); - - count = parse_devices(conf2, &devs, VIRT_DEV_DISK); - if (count != 2) { - fprintf(stderr, "Failed to find both disks in config\n"); - return 1; - } - - if (! (STREQ(devs[0].dev.disk.type, "file") && - STREQ(devs[0].dev.disk.device, "disk") && - STREQ(devs[0].dev.disk.driver, "file") && - STREQ(devs[0].dev.disk.source, "/var/lib/xen/images/foo/bar") && - STREQ(devs[0].dev.disk.virtual_dev, "xvdb"))) { - fprintf(stderr, "Failed to validate domain contents:\n"); - print_dev(&devs[0]); - return 1; - } - - if (! (STREQ(devs[1].dev.disk.type, "file") && - STREQ(devs[1].dev.disk.device, "disk") && - STREQ(devs[1].dev.disk.driver, "file") && - STREQ(devs[1].dev.disk.source, "/var/lib/xen/images/sles10/disk0") && - STREQ(devs[1].dev.disk.virtual_dev, "xvda"))) { - fprintf(stderr, "Failed to validate domain contents:\n"); - print_dev(&devs[1]); - return 1; - } - - cleanup_virt_devices(&devs, count); - free(devs); - - count = parse_devices(conf4, &devs, VIRT_DEV_DISK); - if (count != 1) { - fprintf(stderr, "Failed to bypass non-valid disk node.%d\n", count); - return 1; - } - - if (! (STREQ(devs[0].dev.disk.type, "file") && - STREQ(devs[0].dev.disk.device, "disk") && - STREQ(devs[0].dev.disk.driver, "file") && - STREQ(devs[0].dev.disk.source, "/disk0") && - STREQ(devs[0].dev.disk.virtual_dev, "xvda"))) { - fprintf(stderr, "Failed to validate valide disk info:\n"); - print_dev(&devs[0]); - return 1; - } - - cleanup_virt_devices(&devs, count); - free(devs); - - count = parse_devices(conf3, &devs, VIRT_DEV_DISK); - if ((count != 0) || (devs != NULL)) { - fprintf(stderr, "Failed to fail on bad config string\n"); - return 1; - } - - - count = parse_devices(conf1, &devs, VIRT_DEV_NET); - if (count != 1) { - fprintf(stderr, "Failed to find interface in config\n"); - return 1; - } - - if (! (STREQ(devs->dev.net.type, "ethernet") && - STREQ(devs->dev.net.mac, "00:16:3e:62:d1:bd"))) { - fprintf(stderr, "Failed to validate interface config:\n"); - print_dev(devs); - } - - cleanup_virt_device(devs); - free(devs); - - count = parse_devices(conf2, &devs, VIRT_DEV_NET); - if (count != 2) { - fprintf(stderr, "Failed to find both interfaces in config\n"); - return 1; - } - - if (! (STREQ(devs[0].dev.net.type, "ethernet") && - STREQ(devs[0].dev.net.mac, "00:16:3e:62:d1:bd"))) { - fprintf(stderr, "Failed to validate interface config:\n"); - print_dev(&devs[0]); - return 1; - } - - if (! (STREQ(devs[1].dev.net.type, "ethernet") && - STREQ(devs[1].dev.net.mac, "00:11:22:33:44:55"))) { - fprintf(stderr, "Failed to validate interface config:\n"); - print_dev(&devs[1]); - return 1; - } - - cleanup_virt_devices(&devs, count); - free(devs); - - count = parse_devices(conf4, &devs, VIRT_DEV_NET); - if (count !=1) { - fprintf(stderr, "Failed to bypass non-valid interface info.\n"); - return 1; - } - - if (! (STREQ(devs[0].dev.net.type, "ethernet") && - STREQ(devs[0].dev.net.mac, "00:16:3e:62:d1:bd"))) { - fprintf(stderr, "Failed to validate interface config:\n"); - print_dev(&devs[0]); - return 1; - } - cleanup_virt_devices(&devs, count); - free(devs); - - count = parse_devices(conf3, &devs, VIRT_DEV_NET); - if ((count != 0) || (devs != NULL)) { - fprintf(stderr, "Failed to fail on bad config string\n"); - return 1; - } - - return 0; -} - -/* - * Local Variables: - * mode: C - * c-set-style: "K&R" - * tab-width: 8 - * c-basic-offset: 8 - * indent-tabs-mode: nil - * End: - */ diff --git a/libxkutil/tests/xml_dominfo.c b/libxkutil/tests/xml_dominfo.c deleted file mode 100644 index eb39a84..0000000 --- a/libxkutil/tests/xml_dominfo.c +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright IBM Corp. 2007 - * - * Authors: - * Dan Smith <danms@us.ibm.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -#include "../device_parsing.h" -#include "../device_parsing.c" - -const char *xml = -"<domain type='xen' id='2'>" -" <name>pv1</name>" -" <uuid>a3be4e7c539a3fb734648b11819bd9c3</uuid>" -" <bootloader>/usr/lib/xen/boot/domUloader.py</bootloader>" -" <bootloader_args>--entry=xvda2:/boot/vmlinuz-xen,/boot/initrd-xen</bootloader_args>" -" <os>" -" <type>linux</type>" -" <kernel>/var/lib/xen/tmp/kernel.5ihM-L</kernel>" -" <initrd>/var/lib/xen/tmp/ramdisk.G2vsaq</initrd>" -" <cmdline>TERM=xterm </cmdline>" -" </os>" -" <memory>524288</memory>" -" <vcpu>1</vcpu>" -" <on_poweroff>destroy</on_poweroff>" -" <on_reboot>restart</on_reboot>" -" <on_crash>destroy</on_crash>" -" <devices>" -" <interface type='bridge'>" -" <mac address='00:16:3e:3a:83:91'/>" -" <script path='vif-bridge'/>" -" </interface>" -" <disk type='file' device='disk'>" -" <driver name='file'/>" -" <source file='/var/lib/xen/images/pv1/disk0'/>" -" <target dev='xvda'/>" -" </disk>" -" <input type='mouse' bus='xen'/>" -" <graphics type='vnc' port='5900'/>" -" <console tty='/dev/pts/3'/>" -" </devices>" - "</domain>"; - - -int main(int argc, char **argv) -{ - struct domain dom; - struct domain *domptr = &dom; - - _get_dominfo(xml, &dom); - - printf("Name: %s\n" - "UUID: %s\n" - "Bootloader: %s\n", - dom.name, dom.uuid, dom.bootloader); - - //cleanup_dominfo(& - - return 0; -} diff --git a/libxkutil/tests/xml_tag.c b/libxkutil/tests/xml_tag.c deleted file mode 100644 index af37371..0000000 --- a/libxkutil/tests/xml_tag.c +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright IBM Corp. 2007 - * - * Authors: - * Dan Smith <danms@us.ibm.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -#include <stdio.h> - -#include "../device_parsing.c" - -int main(int argc, char **argv) -{ - char *tag1 = "<disk type='file' device='disk'>"; - char *tag2 = "<source file='/path/to/foo'>"; - char *tag3 = "<devices>"; - char *val; - - val = get_tag_attr(tag1, "type"); - if (!val || (strcmp(val, "file") != 0)) { - fprintf(stderr, "Failed to extract tag `type': %s\n", val); - return 1; - } - - free(val); - - val = get_tag_attr(tag1, "device"); - if (!val || (strcmp(val, "disk") != 0)) { - fprintf(stderr, "Failed to extract tag `device': %s\n", val); - return 1; - } - - free(val); - - val = get_tag_attr(tag2, "file"); - if (!val || (strcmp(val, "/path/to/foo") != 0)) { - fprintf(stderr, "Failed to extract tag `file': %s\n", val); - return 1; - } - - free(val); - - val = get_tag_attr(tag2, "foo"); - if (val) { - fprintf(stderr, "Got value for invalid tag `foo': %s\n", val); - return 1; - } - - val = get_tag_attr(tag3, "bar"); - if (val) { - fprintf(stderr, "Got value for invalid tag `bar': %s\n", val); - return 1; - } - - val = get_tag_name(tag1); - if (!val || (strcmp(val, "disk") != 0)) { - fprintf(stderr, "Got tag `%s' instead of `disk'\n", val); - //return 1; - } - - free(val); - - val = get_tag_name(tag3); - if (!val || (strcmp(val, "devices") != 0)) { - fprintf(stderr, "Got tag `%s' instead of `devices'\n", val); - return 1; - } - - free(val); - - return 0; -} - -/* - * Local Variables: - * mode: C - * c-set-style: "K&R" - * tab-width: 8 - * c-basic-offset: 8 - * indent-tabs-mode: nil - * End: - */ diff --git a/libxkutil/tests/xmlgen.c b/libxkutil/tests/xmlgen.c deleted file mode 100644 index 2d3b2e2..0000000 --- a/libxkutil/tests/xmlgen.c +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright IBM Corp. 2007 - * - * Authors: - * Dan Smith <danms@us.ibm.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -#include <stdio.h> - -#define TEST - -#include "../xmlgen.h" -#include "../xmlgen.c" - -int main(int argc, char **argv) -{ - char *tmp; - struct kv test = {"bar", "baz"}; - - tmp = tagify("foo", "bar", NULL, 0); - if (strcmp(tmp, "<foo>bar</foo>") != 0) { - fprintf(stderr, "Failed to tagify: %s\n", tmp); - return 1; - } - - free(tmp); - - tmp = tagify("foo", NULL, &test, 1); - if (strcmp(tmp, "<foo bar='baz'/>") != 0) { - fprintf(stderr, "Failed tagify with attr: %s\n", tmp); - return 1; - } - - free(tmp); - - tmp = tagify("foo", "bar", &test, 1); - if (strcmp(tmp, "<foo bar='baz'>bar</foo>") != 0) { - fprintf(stderr, "Failed to tagify with attr/content: %s\n", tmp); - return 1; - } - - free(tmp); - - return 0; -} diff --git a/src/Makefile.am b/src/Makefile.am index e4e8aa1..c28dc9a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,4 @@ # Copyright IBM Corp. 2007 -SUBDIRS = tests noinst_HEADERS = profiles.h svpc_types.h \ Virt_ComputerSystem.h \ diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am deleted file mode 100644 index 8225afb..0000000 --- a/src/tests/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -# Copyright IBM Corp. 2007 -TESTS = test_link.test - -%.test: %.sh - cp $< $@ - chmod +x $@ \ No newline at end of file diff --git a/src/tests/test_link.sh b/src/tests/test_link.sh deleted file mode 100644 index 78a0c03..0000000 --- a/src/tests/test_link.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -test_lib() { - LD_BIND_NOW=y LD_PRELOAD=$1 /bin/true 2>&1 - - if [ $? = 0 ]; then - echo Link of $(basename $lib) tested OK - return 0 - else - echo Link of $(basename $lib) FAILED - return 1 - fi -} - -for lib in ../.libs/*.so; do - (test_lib $lib) || exit 255 -done -- 1.7.4.4

+1. Code is for all intents and purposes obsolete. If we determine we need tests for primitives in the future, we can do it properly. On 11/22/2011 01:10 PM, Eduardo Lima (Etrunko) wrote:
From: Eduardo Lima (Etrunko)<eblima@br.ibm.com>
This is the first step trying to comply with make distcheck. Those files don't even compile for quite some time, I wonder if they are used by anyone.
Signed-off-by: Eduardo Lima (Etrunko)<eblima@br.ibm.com> --- configure.ac | 2 - libxkutil/Makefile.am | 1 - libxkutil/tests/Makefile.am | 10 -- libxkutil/tests/infostore.c | 80 ----------- libxkutil/tests/xml_devices.c | 293 ----------------------------------------- libxkutil/tests/xml_dominfo.c | 73 ---------- libxkutil/tests/xml_tag.c | 95 ------------- libxkutil/tests/xmlgen.c | 58 -------- src/Makefile.am | 1 - src/tests/Makefile.am | 6 - src/tests/test_link.sh | 17 --- 11 files changed, 0 insertions(+), 636 deletions(-) delete mode 100644 libxkutil/tests/Makefile.am delete mode 100644 libxkutil/tests/infostore.c delete mode 100644 libxkutil/tests/xml_devices.c delete mode 100644 libxkutil/tests/xml_dominfo.c delete mode 100644 libxkutil/tests/xml_tag.c delete mode 100644 libxkutil/tests/xmlgen.c delete mode 100644 src/tests/Makefile.am delete mode 100644 src/tests/test_link.sh
diff --git a/configure.ac b/configure.ac index 3a7bcff..a1dc3ca 100644 --- a/configure.ac +++ b/configure.ac @@ -141,9 +141,7 @@ AC_CONFIG_FILES([ base_schema/install_base_schema.sh base_schema/Makefile libxkutil/Makefile - libxkutil/tests/Makefile src/Makefile - src/tests/Makefile doc/Makefile Makefile ]) diff --git a/libxkutil/Makefile.am b/libxkutil/Makefile.am index f6abce5..f1adc03 100644 --- a/libxkutil/Makefile.am +++ b/libxkutil/Makefile.am @@ -1,5 +1,4 @@ # Copyright IBM Corp. 2007 -SUBDIRS = tests
AM_CFLAGS = $(CFLAGS_STRICT) \ -DLIBVIRTCIM_CONF=\"@sysconfdir@/@PACKAGE@.conf\" diff --git a/libxkutil/tests/Makefile.am b/libxkutil/tests/Makefile.am deleted file mode 100644 index 7c0cdc6..0000000 --- a/libxkutil/tests/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright IBM Corp. 2007 -TESTS = xml_tag.test xml_devices.test xmlgen.test xml_dominfo.test infostore.test - -CFLAGS += -g - -%.test: %.c - $(CC) -o $@ $^ $(CFLAGS) -lvirt `xml2-config --libs` -L../.libs -lxkutil - -clean-local: - rm -f *.test diff --git a/libxkutil/tests/infostore.c b/libxkutil/tests/infostore.c deleted file mode 100644 index df625bb..0000000 --- a/libxkutil/tests/infostore.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright IBM Corp. 2008 - * - * Authors: - * Dan Smith<danms@us.ibm.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#include<stdio.h> -#include<inttypes.h> - -#include<libvirt/libvirt.h> - -#include "../infostore.h" - -int main(int argc, char **argv) -{ - struct infostore_ctx *ctx = NULL; - virConnectPtr conn = NULL; - virDomainPtr dom = NULL; - - if (argc != 2) { - printf("Usage: %s<domain>\n", argv[0]); - return 1; - } - - conn = virConnectOpen(NULL); - if (conn == NULL) { - printf("Unable to open connection\n"); - goto out; - } - - dom = virDomainLookupByName(conn, argv[1]); - if (dom == NULL) { - printf("Unable to lookup domain `%s'\n", argv[1]); - goto out; - } - - ctx = infostore_open(dom); - if (ctx == NULL) { - printf("Unable to open infostore for `%s'\n", argv[1]); - goto out; - } - - printf("Foo: %" PRIu64 "\n", infostore_get_u64(ctx, "foo")); - - infostore_set_u64(ctx, "foo", 321); - infostore_set_u64(ctx, "bar", 987); - printf("Should be (null): %s\n", infostore_get_str(ctx, "baz")); - - out: - infostore_close(ctx); - virDomainFree(dom); - virConnectClose(conn); - - return 0; -} - -/* - * Local Variables: - * mode: C - * c-set-style: "K&R" - * tab-width: 8 - * c-basic-offset: 8 - * indent-tabs-mode: nil - * End: - */ diff --git a/libxkutil/tests/xml_devices.c b/libxkutil/tests/xml_devices.c deleted file mode 100644 index 08b9f04..0000000 --- a/libxkutil/tests/xml_devices.c +++ /dev/null @@ -1,293 +0,0 @@ -/* - * Copyright IBM Corp. 2007 - * - * Authors: - * Dan Smith<danms@us.ibm.com> - * Zhengang Li<lizg@cn.ibm.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -#include<stdio.h> - -#include "../device_parsing.h" -#include "../device_parsing.c" - -#define STREQ(x, y) (strcmp(x, y) == 0) - -static void print_disk(struct disk_device *dev) -{ - fprintf(stderr, - "type: %s\n" - "device: %s\n" - "driver: %s\n" - "source: %s\n" - "vdev: %s\n", - dev->type, dev->device, dev->driver, - dev->source, dev->virtual_dev); -} - -static void print_net(struct net_device *dev) -{ - fprintf(stderr, - "type: %s\n" - "mac: %s\n", - dev->type, dev->mac); -} - -static void print_dev(struct virt_device *dev) -{ - if (dev->type == VIRT_DEV_DISK) - print_disk(&dev->dev.disk); - else if (dev->type == VIRT_DEV_NET) - print_net(&dev->dev.net); - else - printf("ERROR: Unknown device type %i\n", dev->type); -} - -int main(int argc, char **argv) -{ - struct virt_device *devs; - int count; - char *conf1 = - "<domain type='xen' id='0'>\n" - "<name>sles10foo</name>\n" - "<uuid>7c42b545ffc4eb4441d1be3936516de3</uuid>\n" - "<bootloader>/usr/lib/xen/boot/domUloader.py</bootloader>\n" - "<os>\n" - "<type>linux</type>\n" - "<kernel>/var/lib/xen/tmp/kernel.0F29se</kernel>\n" - "<initrd>/var/lib/xen/tmp/ramdisk.qGK5v5</initrd>\n" - "<cmdline>TERM=xterm</cmdline>\n" - "</os>\n" - "<memory>524288</memory>\n" - "<vcpu>1</vcpu>\n" - "<on_poweroff>destroy</on_poweroff>\n" - "<on_reboot>restart</on_reboot>\n" - "<on_crash>destroy</on_crash>\n" - "<devices>\n" - "<interface type='ethernet'>\n" - "<mac address='00:16:3e:62:d1:bd'/>\n" - "</interface>\n" - "<disk type='file' device='disk'>\n" - "<driver name='file'/>\n" - "<source file='/var/lib/xen/images/sles10/disk0'/>\n" - "<target dev='xvda'/>\n" - "</disk>\n" - "<graphics type='vnc' port='-1'/>\n" - "</devices>\n" - "</domain>\n"; - char *conf2 = - "<domain type='xen' id='0'>\n" - "<name>sles10foo</name>\n" - "<uuid>7c42b545ffc4eb4441d1be3936516de3</uuid>\n" - "<bootloader>/usr/lib/xen/boot/domUloader.py</bootloader>\n" - "<os>\n" - "<type>linux</type>\n" - "<kernel>/var/lib/xen/tmp/kernel.0F29se</kernel>\n" - "<initrd>/var/lib/xen/tmp/ramdisk.qGK5v5</initrd>\n" - "<cmdline>TERM=xterm</cmdline>\n" - "</os>\n" - "<memory>524288</memory>\n" - "<vcpu>1</vcpu>\n" - "<on_poweroff>destroy</on_poweroff>\n" - "<on_reboot>restart</on_reboot>\n" - "<on_crash>destroy</on_crash>\n" - "<devices>\n" - "<disk type='file' device='disk'>\n" - "<driver name='file'/>\n" - "<source file='/var/lib/xen/images/foo/bar'/>\n" - "<target dev='xvdb'/>\n" - "</disk>\n" - "<interface type='ethernet'>\n" - "<mac address='00:16:3e:62:d1:bd'/>\n" - "</interface>\n" - "<interface type='ethernet'>\n" - "<mac address='00:11:22:33:44:55'/>\n" - "</interface>\n" - "<disk type='file' device='disk'>\n" - "<driver name='file'/>\n" - "<source file='/var/lib/xen/images/sles10/disk0'/>\n" - "<target dev='xvda'/>\n" - "</disk>\n" - "<graphics type='vnc' port='-1'/>\n" - "</devices>\n" - "</domain>\n"; - char *conf3 = "snarf"; - char *conf4 = - "<domain type='xen' id='0'>\n" - "<devices>\n" - "<disk type='file' device='disk'>\n" - "<driver name='file'/>\n" - "<target dev='xvdb'/>\n" - "</disk>\n" - "<interface type='ethernet'>\n" - "<mac address='00:16:3e:62:d1:bd'/>\n" - "</interface>\n" - "<interface type='ethernet'>\n" - "</interface>\n" - "<disk type='file' device='disk'>\n" - "<driver name='file'/>\n" - "<source file='/disk0'/>\n" - "<target dev='xvda'/>\n" - "</disk>\n" - "<graphics type='vnc' port='-1'/>\n" - "</devices>\n" - "</domain>\n"; - - count = parse_devices(conf1,&devs, VIRT_DEV_DISK); - if (count != 1) { - fprintf(stderr, "Failed to find disk in config\n"); - return 1; - } - - if (! (STREQ(devs->dev.disk.type, "file")&& - STREQ(devs->dev.disk.device, "disk")&& - STREQ(devs->dev.disk.driver, "file")&& - STREQ(devs->dev.disk.source, "/var/lib/xen/images/sles10/disk0")&& - STREQ(devs->dev.disk.virtual_dev, "xvda"))) { - fprintf(stderr, "Failed to validate domain contents:\n"); - print_dev(devs); - return 1; - } - - cleanup_virt_device(devs); - free(devs); - - count = parse_devices(conf2,&devs, VIRT_DEV_DISK); - if (count != 2) { - fprintf(stderr, "Failed to find both disks in config\n"); - return 1; - } - - if (! (STREQ(devs[0].dev.disk.type, "file")&& - STREQ(devs[0].dev.disk.device, "disk")&& - STREQ(devs[0].dev.disk.driver, "file")&& - STREQ(devs[0].dev.disk.source, "/var/lib/xen/images/foo/bar")&& - STREQ(devs[0].dev.disk.virtual_dev, "xvdb"))) { - fprintf(stderr, "Failed to validate domain contents:\n"); - print_dev(&devs[0]); - return 1; - } - - if (! (STREQ(devs[1].dev.disk.type, "file")&& - STREQ(devs[1].dev.disk.device, "disk")&& - STREQ(devs[1].dev.disk.driver, "file")&& - STREQ(devs[1].dev.disk.source, "/var/lib/xen/images/sles10/disk0")&& - STREQ(devs[1].dev.disk.virtual_dev, "xvda"))) { - fprintf(stderr, "Failed to validate domain contents:\n"); - print_dev(&devs[1]); - return 1; - } - - cleanup_virt_devices(&devs, count); - free(devs); - - count = parse_devices(conf4,&devs, VIRT_DEV_DISK); - if (count != 1) { - fprintf(stderr, "Failed to bypass non-valid disk node.%d\n", count); - return 1; - } - - if (! (STREQ(devs[0].dev.disk.type, "file")&& - STREQ(devs[0].dev.disk.device, "disk")&& - STREQ(devs[0].dev.disk.driver, "file")&& - STREQ(devs[0].dev.disk.source, "/disk0")&& - STREQ(devs[0].dev.disk.virtual_dev, "xvda"))) { - fprintf(stderr, "Failed to validate valide disk info:\n"); - print_dev(&devs[0]); - return 1; - } - - cleanup_virt_devices(&devs, count); - free(devs); - - count = parse_devices(conf3,&devs, VIRT_DEV_DISK); - if ((count != 0) || (devs != NULL)) { - fprintf(stderr, "Failed to fail on bad config string\n"); - return 1; - } - - - count = parse_devices(conf1,&devs, VIRT_DEV_NET); - if (count != 1) { - fprintf(stderr, "Failed to find interface in config\n"); - return 1; - } - - if (! (STREQ(devs->dev.net.type, "ethernet")&& - STREQ(devs->dev.net.mac, "00:16:3e:62:d1:bd"))) { - fprintf(stderr, "Failed to validate interface config:\n"); - print_dev(devs); - } - - cleanup_virt_device(devs); - free(devs); - - count = parse_devices(conf2,&devs, VIRT_DEV_NET); - if (count != 2) { - fprintf(stderr, "Failed to find both interfaces in config\n"); - return 1; - } - - if (! (STREQ(devs[0].dev.net.type, "ethernet")&& - STREQ(devs[0].dev.net.mac, "00:16:3e:62:d1:bd"))) { - fprintf(stderr, "Failed to validate interface config:\n"); - print_dev(&devs[0]); - return 1; - } - - if (! (STREQ(devs[1].dev.net.type, "ethernet")&& - STREQ(devs[1].dev.net.mac, "00:11:22:33:44:55"))) { - fprintf(stderr, "Failed to validate interface config:\n"); - print_dev(&devs[1]); - return 1; - } - - cleanup_virt_devices(&devs, count); - free(devs); - - count = parse_devices(conf4,&devs, VIRT_DEV_NET); - if (count !=1) { - fprintf(stderr, "Failed to bypass non-valid interface info.\n"); - return 1; - } - - if (! (STREQ(devs[0].dev.net.type, "ethernet")&& - STREQ(devs[0].dev.net.mac, "00:16:3e:62:d1:bd"))) { - fprintf(stderr, "Failed to validate interface config:\n"); - print_dev(&devs[0]); - return 1; - } - cleanup_virt_devices(&devs, count); - free(devs); - - count = parse_devices(conf3,&devs, VIRT_DEV_NET); - if ((count != 0) || (devs != NULL)) { - fprintf(stderr, "Failed to fail on bad config string\n"); - return 1; - } - - return 0; -} - -/* - * Local Variables: - * mode: C - * c-set-style: "K&R" - * tab-width: 8 - * c-basic-offset: 8 - * indent-tabs-mode: nil - * End: - */ diff --git a/libxkutil/tests/xml_dominfo.c b/libxkutil/tests/xml_dominfo.c deleted file mode 100644 index eb39a84..0000000 --- a/libxkutil/tests/xml_dominfo.c +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright IBM Corp. 2007 - * - * Authors: - * Dan Smith<danms@us.ibm.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -#include "../device_parsing.h" -#include "../device_parsing.c" - -const char *xml = -"<domain type='xen' id='2'>" -"<name>pv1</name>" -"<uuid>a3be4e7c539a3fb734648b11819bd9c3</uuid>" -"<bootloader>/usr/lib/xen/boot/domUloader.py</bootloader>" -"<bootloader_args>--entry=xvda2:/boot/vmlinuz-xen,/boot/initrd-xen</bootloader_args>" -"<os>" -"<type>linux</type>" -"<kernel>/var/lib/xen/tmp/kernel.5ihM-L</kernel>" -"<initrd>/var/lib/xen/tmp/ramdisk.G2vsaq</initrd>" -"<cmdline>TERM=xterm</cmdline>" -"</os>" -"<memory>524288</memory>" -"<vcpu>1</vcpu>" -"<on_poweroff>destroy</on_poweroff>" -"<on_reboot>restart</on_reboot>" -"<on_crash>destroy</on_crash>" -"<devices>" -"<interface type='bridge'>" -"<mac address='00:16:3e:3a:83:91'/>" -"<script path='vif-bridge'/>" -"</interface>" -"<disk type='file' device='disk'>" -"<driver name='file'/>" -"<source file='/var/lib/xen/images/pv1/disk0'/>" -"<target dev='xvda'/>" -"</disk>" -"<input type='mouse' bus='xen'/>" -"<graphics type='vnc' port='5900'/>" -"<console tty='/dev/pts/3'/>" -"</devices>" - "</domain>"; - - -int main(int argc, char **argv) -{ - struct domain dom; - struct domain *domptr =&dom; - - _get_dominfo(xml,&dom); - - printf("Name: %s\n" - "UUID: %s\n" - "Bootloader: %s\n", - dom.name, dom.uuid, dom.bootloader); - - //cleanup_dominfo(& - - return 0; -} diff --git a/libxkutil/tests/xml_tag.c b/libxkutil/tests/xml_tag.c deleted file mode 100644 index af37371..0000000 --- a/libxkutil/tests/xml_tag.c +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright IBM Corp. 2007 - * - * Authors: - * Dan Smith<danms@us.ibm.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -#include<stdio.h> - -#include "../device_parsing.c" - -int main(int argc, char **argv) -{ - char *tag1 = "<disk type='file' device='disk'>"; - char *tag2 = "<source file='/path/to/foo'>"; - char *tag3 = "<devices>"; - char *val; - - val = get_tag_attr(tag1, "type"); - if (!val || (strcmp(val, "file") != 0)) { - fprintf(stderr, "Failed to extract tag `type': %s\n", val); - return 1; - } - - free(val); - - val = get_tag_attr(tag1, "device"); - if (!val || (strcmp(val, "disk") != 0)) { - fprintf(stderr, "Failed to extract tag `device': %s\n", val); - return 1; - } - - free(val); - - val = get_tag_attr(tag2, "file"); - if (!val || (strcmp(val, "/path/to/foo") != 0)) { - fprintf(stderr, "Failed to extract tag `file': %s\n", val); - return 1; - } - - free(val); - - val = get_tag_attr(tag2, "foo"); - if (val) { - fprintf(stderr, "Got value for invalid tag `foo': %s\n", val); - return 1; - } - - val = get_tag_attr(tag3, "bar"); - if (val) { - fprintf(stderr, "Got value for invalid tag `bar': %s\n", val); - return 1; - } - - val = get_tag_name(tag1); - if (!val || (strcmp(val, "disk") != 0)) { - fprintf(stderr, "Got tag `%s' instead of `disk'\n", val); - //return 1; - } - - free(val); - - val = get_tag_name(tag3); - if (!val || (strcmp(val, "devices") != 0)) { - fprintf(stderr, "Got tag `%s' instead of `devices'\n", val); - return 1; - } - - free(val); - - return 0; -} - -/* - * Local Variables: - * mode: C - * c-set-style: "K&R" - * tab-width: 8 - * c-basic-offset: 8 - * indent-tabs-mode: nil - * End: - */ diff --git a/libxkutil/tests/xmlgen.c b/libxkutil/tests/xmlgen.c deleted file mode 100644 index 2d3b2e2..0000000 --- a/libxkutil/tests/xmlgen.c +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright IBM Corp. 2007 - * - * Authors: - * Dan Smith<danms@us.ibm.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ -#include<stdio.h> - -#define TEST - -#include "../xmlgen.h" -#include "../xmlgen.c" - -int main(int argc, char **argv) -{ - char *tmp; - struct kv test = {"bar", "baz"}; - - tmp = tagify("foo", "bar", NULL, 0); - if (strcmp(tmp, "<foo>bar</foo>") != 0) { - fprintf(stderr, "Failed to tagify: %s\n", tmp); - return 1; - } - - free(tmp); - - tmp = tagify("foo", NULL,&test, 1); - if (strcmp(tmp, "<foo bar='baz'/>") != 0) { - fprintf(stderr, "Failed tagify with attr: %s\n", tmp); - return 1; - } - - free(tmp); - - tmp = tagify("foo", "bar",&test, 1); - if (strcmp(tmp, "<foo bar='baz'>bar</foo>") != 0) { - fprintf(stderr, "Failed to tagify with attr/content: %s\n", tmp); - return 1; - } - - free(tmp); - - return 0; -} diff --git a/src/Makefile.am b/src/Makefile.am index e4e8aa1..c28dc9a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,4 @@ # Copyright IBM Corp. 2007 -SUBDIRS = tests
noinst_HEADERS = profiles.h svpc_types.h \ Virt_ComputerSystem.h \ diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am deleted file mode 100644 index 8225afb..0000000 --- a/src/tests/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -# Copyright IBM Corp. 2007 -TESTS = test_link.test - -%.test: %.sh - cp $< $@ - chmod +x $@ \ No newline at end of file diff --git a/src/tests/test_link.sh b/src/tests/test_link.sh deleted file mode 100644 index 78a0c03..0000000 --- a/src/tests/test_link.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -test_lib() { - LD_BIND_NOW=y LD_PRELOAD=$1 /bin/true 2>&1 - - if [ $? = 0 ]; then - echo Link of $(basename $lib) tested OK - return 0 - else - echo Link of $(basename $lib) FAILED - return 1 - fi -} - -for lib in ../.libs/*.so; do - (test_lib $lib) || exit 255 -done
-- Chip Vincent Open Virtualization IBM Linux Technology Center cvincent@linux.vnet.ibm.com

From: Eduardo Lima (Etrunko) <eblima@br.ibm.com> Signed-off-by: Eduardo Lima (Etrunko) <eblima@br.ibm.com> --- Makefile.am | 302 +++++++++++++++++++++++++++--------------------------- doc/Makefile.am | 4 + 2 files changed, 155 insertions(+), 151 deletions(-) diff --git a/Makefile.am b/Makefile.am index 5f004ec..94dc5f3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,171 +4,171 @@ AUTOMAKE_OPTIONS=dist-bzip2 SUBDIRS = libxkutil src doc base_schema MOFS = \ - schema/ComputerSystem.mof \ - schema/LogicalDisk.mof \ - schema/NetworkPort.mof \ - schema/Memory.mof \ - schema/Processor.mof \ - schema/SystemDevice.mof \ - schema/Virt_VSSD.mof \ - schema/VSSD.mof \ - schema/HostSystem.mof \ - schema/HostedDependency.mof \ - schema/VirtualSystemManagementService.mof \ - schema/VirtualSystemManagementCapabilities.mof \ - schema/EnabledLogicalElementCapabilities.mof \ - schema/AllocationCapabilities.mof \ - schema/SettingsDefineCapabilities.mof \ - schema/MemoryPool.mof \ - schema/ElementCapabilities.mof \ - schema/ProcessorPool.mof \ - schema/DiskPool.mof \ - schema/HostedResourcePool.mof \ - schema/RegisteredProfile.mof \ - schema/ElementConformsToProfile.mof \ - schema/ComputerSystemIndication.mof \ - schema/ResourceAllocationSettingDataIndication.mof \ - schema/SwitchService.mof \ - schema/ComputerSystemMigrationIndication.mof \ - schema/Virt_ResourceAllocationSettingData.mof \ - schema/ResourceAllocationSettingData.mof \ - schema/ResourcePoolConfigurationService.mof \ - schema/ResourcePoolConfigurationCapabilities.mof \ - schema/VSSDComponent.mof \ - schema/SettingsDefineState.mof \ - schema/NetPool.mof \ - schema/ResourceAllocationFromPool.mof \ - schema/ElementAllocatedFromPool.mof \ - schema/HostedService.mof \ - schema/ElementSettingData.mof \ - schema/VSMigrationCapabilities.mof \ - schema/VSMigrationService.mof \ - schema/VSMigrationSettingData.mof \ - schema/VirtualSystemSnapshotService.mof \ - schema/VirtualSystemSnapshotServiceCapabilities.mof \ - schema/ConcreteComponent.mof \ - schema/ConsoleRedirectionService.mof \ - schema/ConsoleRedirectionServiceCapabilities.mof \ - schema/ServiceAffectsElement.mof \ - schema/KVMRedirectionSAP.mof \ - schema/DisplayController.mof \ - schema/PointingDevice.mof \ - schema/GraphicsPool.mof \ - schema/InputPool.mof \ - schema/HostedAccessPoint.mof \ - schema/ServiceAccessBySAP.mof \ - schema/SAPAvailableForElement.mof \ - schema/FilterEntry.mof \ - schema/FilterList.mof \ - schema/EntriesInFilterList.mof \ - schema/NestedFilterList.mof \ - schema/AppliedFilterList.mof \ - schema/HostedFilterList.mof + $(top_srcdir)/schema/ComputerSystem.mof \ + $(top_srcdir)/schema/LogicalDisk.mof \ + $(top_srcdir)/schema/NetworkPort.mof \ + $(top_srcdir)/schema/Memory.mof \ + $(top_srcdir)/schema/Processor.mof \ + $(top_srcdir)/schema/SystemDevice.mof \ + $(top_srcdir)/schema/Virt_VSSD.mof \ + $(top_srcdir)/schema/VSSD.mof \ + $(top_srcdir)/schema/HostSystem.mof \ + $(top_srcdir)/schema/HostedDependency.mof \ + $(top_srcdir)/schema/VirtualSystemManagementService.mof \ + $(top_srcdir)/schema/VirtualSystemManagementCapabilities.mof \ + $(top_srcdir)/schema/EnabledLogicalElementCapabilities.mof \ + $(top_srcdir)/schema/AllocationCapabilities.mof \ + $(top_srcdir)/schema/SettingsDefineCapabilities.mof \ + $(top_srcdir)/schema/MemoryPool.mof \ + $(top_srcdir)/schema/ElementCapabilities.mof \ + $(top_srcdir)/schema/ProcessorPool.mof \ + $(top_srcdir)/schema/DiskPool.mof \ + $(top_srcdir)/schema/HostedResourcePool.mof \ + $(top_srcdir)/schema/RegisteredProfile.mof \ + $(top_srcdir)/schema/ElementConformsToProfile.mof \ + $(top_srcdir)/schema/ComputerSystemIndication.mof \ + $(top_srcdir)/schema/ResourceAllocationSettingDataIndication.mof \ + $(top_srcdir)/schema/SwitchService.mof \ + $(top_srcdir)/schema/ComputerSystemMigrationIndication.mof \ + $(top_srcdir)/schema/Virt_ResourceAllocationSettingData.mof \ + $(top_srcdir)/schema/ResourceAllocationSettingData.mof \ + $(top_srcdir)/schema/ResourcePoolConfigurationService.mof \ + $(top_srcdir)/schema/ResourcePoolConfigurationCapabilities.mof \ + $(top_srcdir)/schema/VSSDComponent.mof \ + $(top_srcdir)/schema/SettingsDefineState.mof \ + $(top_srcdir)/schema/NetPool.mof \ + $(top_srcdir)/schema/ResourceAllocationFromPool.mof \ + $(top_srcdir)/schema/ElementAllocatedFromPool.mof \ + $(top_srcdir)/schema/HostedService.mof \ + $(top_srcdir)/schema/ElementSettingData.mof \ + $(top_srcdir)/schema/VSMigrationCapabilities.mof \ + $(top_srcdir)/schema/VSMigrationService.mof \ + $(top_srcdir)/schema/VSMigrationSettingData.mof \ + $(top_srcdir)/schema/VirtualSystemSnapshotService.mof \ + $(top_srcdir)/schema/VirtualSystemSnapshotServiceCapabilities.mof \ + $(top_srcdir)/schema/ConcreteComponent.mof \ + $(top_srcdir)/schema/ConsoleRedirectionService.mof \ + $(top_srcdir)/schema/ConsoleRedirectionServiceCapabilities.mof \ + $(top_srcdir)/schema/ServiceAffectsElement.mof \ + $(top_srcdir)/schema/KVMRedirectionSAP.mof \ + $(top_srcdir)/schema/DisplayController.mof \ + $(top_srcdir)/schema/PointingDevice.mof \ + $(top_srcdir)/schema/GraphicsPool.mof \ + $(top_srcdir)/schema/InputPool.mof \ + $(top_srcdir)/schema/HostedAccessPoint.mof \ + $(top_srcdir)/schema/ServiceAccessBySAP.mof \ + $(top_srcdir)/schema/SAPAvailableForElement.mof \ + $(top_srcdir)/schema/FilterEntry.mof \ + $(top_srcdir)/schema/FilterList.mof \ + $(top_srcdir)/schema/EntriesInFilterList.mof \ + $(top_srcdir)/schema/NestedFilterList.mof \ + $(top_srcdir)/schema/AppliedFilterList.mof \ + $(top_srcdir)/schema/HostedFilterList.mof INTEROP_MOFS = \ - schema/ComputerSystem.mof \ - schema/HostSystem.mof \ - schema/RegisteredProfile.mof \ - schema/DiskPool.mof \ - schema/MemoryPool.mof \ - schema/NetPool.mof \ - schema/ProcessorPool.mof \ - schema/VSMigrationService.mof \ - schema/ElementConformsToProfile.mof \ - schema/ReferencedProfile.mof \ - schema/AllocationCapabilities.mof + $(top_srcdir)/schema/ComputerSystem.mof \ + $(top_srcdir)/schema/HostSystem.mof \ + $(top_srcdir)/schema/RegisteredProfile.mof \ + $(top_srcdir)/schema/DiskPool.mof \ + $(top_srcdir)/schema/MemoryPool.mof \ + $(top_srcdir)/schema/NetPool.mof \ + $(top_srcdir)/schema/ProcessorPool.mof \ + $(top_srcdir)/schema/VSMigrationService.mof \ + $(top_srcdir)/schema/ElementConformsToProfile.mof \ + $(top_srcdir)/schema/ReferencedProfile.mof \ + $(top_srcdir)/schema/AllocationCapabilities.mof PGINTEROP_MOFS = \ - schema/RegisteredProfile.mof \ - schema/ElementConformsToProfile.mof \ - schema/ReferencedProfile.mof + $(top_srcdir)/schema/RegisteredProfile.mof \ + $(top_srcdir)/schema/ElementConformsToProfile.mof \ + $(top_srcdir)/schema/ReferencedProfile.mof CIMV2_MOFS = \ - schema/HostedResourcePool.mof \ - schema/ElementCapabilities.mof \ - schema/HostedService.mof \ - schema/HostedDependency.mof \ - schema/RegisteredProfile.mof \ - schema/ComputerSystem.mof \ - schema/ElementConformsToProfile.mof \ - schema/HostedAccessPoint.mof + $(top_srcdir)/schema/HostedResourcePool.mof \ + $(top_srcdir)/schema/ElementCapabilities.mof \ + $(top_srcdir)/schema/HostedService.mof \ + $(top_srcdir)/schema/HostedDependency.mof \ + $(top_srcdir)/schema/RegisteredProfile.mof \ + $(top_srcdir)/schema/ComputerSystem.mof \ + $(top_srcdir)/schema/ElementConformsToProfile.mof \ + $(top_srcdir)/schema/HostedAccessPoint.mof REGS = \ - schema/ComputerSystem.registration \ - schema/LogicalDisk.registration \ - schema/NetworkPort.registration \ - schema/Memory.registration \ - schema/Processor.registration \ - schema/SystemDevice.registration \ - schema/VSSD.registration \ - schema/HostSystem.registration \ - schema/HostedDependency.registration \ - schema/VirtualSystemManagementService.registration \ - schema/VirtualSystemManagementCapabilities.registration \ - schema/EnabledLogicalElementCapabilities.registration \ - schema/AllocationCapabilities.registration \ - schema/SettingsDefineCapabilities.registration \ - schema/MemoryPool.registration \ - schema/ElementCapabilities.registration \ - schema/ProcessorPool.registration \ - schema/DiskPool.registration \ - schema/HostedResourcePool.registration \ - schema/ComputerSystemIndication.registration \ - schema/ResourceAllocationSettingDataIndication.registration \ - schema/SwitchService.registration \ - schema/ComputerSystemMigrationIndication.registration \ - schema/ResourceAllocationSettingData.registration \ - schema/ResourcePoolConfigurationService.registration \ - schema/ResourcePoolConfigurationCapabilities.registration \ - schema/VSSDComponent.registration \ - schema/SettingsDefineState.registration \ - schema/NetPool.registration \ - schema/ResourceAllocationFromPool.registration \ - schema/ElementAllocatedFromPool.registration \ - schema/HostedService.registration \ - schema/ElementSettingData.registration \ - schema/VSMigrationCapabilities.registration \ - schema/VSMigrationService.registration \ - schema/ElementConformsToProfile.registration \ - schema/VSMigrationSettingData.registration \ - schema/VirtualSystemSnapshotService.registration \ - schema/VirtualSystemSnapshotServiceCapabilities.registration \ - schema/ConcreteComponent.registration \ - schema/ConsoleRedirectionService.registration \ - schema/ConsoleRedirectionServiceCapabilities.registration \ - schema/ServiceAffectsElement.registration \ - schema/KVMRedirectionSAP.registration \ - schema/DisplayController.registration \ - schema/PointingDevice.registration \ - schema/GraphicsPool.registration \ - schema/InputPool.registration \ - schema/HostedAccessPoint.registration \ - schema/ServiceAccessBySAP.registration \ - schema/SAPAvailableForElement.registration \ - schema/FilterEntry.registration \ - schema/FilterList.registration \ - schema/EntriesInFilterList.registration \ - schema/NestedFilterList.registration \ - schema/AppliedFilterList.registration \ - schema/HostedFilterList.registration + $(top_srcdir)/schema/ComputerSystem.registration \ + $(top_srcdir)/schema/LogicalDisk.registration \ + $(top_srcdir)/schema/NetworkPort.registration \ + $(top_srcdir)/schema/Memory.registration \ + $(top_srcdir)/schema/Processor.registration \ + $(top_srcdir)/schema/SystemDevice.registration \ + $(top_srcdir)/schema/VSSD.registration \ + $(top_srcdir)/schema/HostSystem.registration \ + $(top_srcdir)/schema/HostedDependency.registration \ + $(top_srcdir)/schema/VirtualSystemManagementService.registration \ + $(top_srcdir)/schema/VirtualSystemManagementCapabilities.registration \ + $(top_srcdir)/schema/EnabledLogicalElementCapabilities.registration \ + $(top_srcdir)/schema/AllocationCapabilities.registration \ + $(top_srcdir)/schema/SettingsDefineCapabilities.registration \ + $(top_srcdir)/schema/MemoryPool.registration \ + $(top_srcdir)/schema/ElementCapabilities.registration \ + $(top_srcdir)/schema/ProcessorPool.registration \ + $(top_srcdir)/schema/DiskPool.registration \ + $(top_srcdir)/schema/HostedResourcePool.registration \ + $(top_srcdir)/schema/ComputerSystemIndication.registration \ + $(top_srcdir)/schema/ResourceAllocationSettingDataIndication.registration \ + $(top_srcdir)/schema/SwitchService.registration \ + $(top_srcdir)/schema/ComputerSystemMigrationIndication.registration \ + $(top_srcdir)/schema/ResourceAllocationSettingData.registration \ + $(top_srcdir)/schema/ResourcePoolConfigurationService.registration \ + $(top_srcdir)/schema/ResourcePoolConfigurationCapabilities.registration \ + $(top_srcdir)/schema/VSSDComponent.registration \ + $(top_srcdir)/schema/SettingsDefineState.registration \ + $(top_srcdir)/schema/NetPool.registration \ + $(top_srcdir)/schema/ResourceAllocationFromPool.registration \ + $(top_srcdir)/schema/ElementAllocatedFromPool.registration \ + $(top_srcdir)/schema/HostedService.registration \ + $(top_srcdir)/schema/ElementSettingData.registration \ + $(top_srcdir)/schema/VSMigrationCapabilities.registration \ + $(top_srcdir)/schema/VSMigrationService.registration \ + $(top_srcdir)/schema/ElementConformsToProfile.registration \ + $(top_srcdir)/schema/VSMigrationSettingData.registration \ + $(top_srcdir)/schema/VirtualSystemSnapshotService.registration \ + $(top_srcdir)/schema/VirtualSystemSnapshotServiceCapabilities.registration \ + $(top_srcdir)/schema/ConcreteComponent.registration \ + $(top_srcdir)/schema/ConsoleRedirectionService.registration \ + $(top_srcdir)/schema/ConsoleRedirectionServiceCapabilities.registration \ + $(top_srcdir)/schema/ServiceAffectsElement.registration \ + $(top_srcdir)/schema/KVMRedirectionSAP.registration \ + $(top_srcdir)/schema/DisplayController.registration \ + $(top_srcdir)/schema/PointingDevice.registration \ + $(top_srcdir)/schema/GraphicsPool.registration \ + $(top_srcdir)/schema/InputPool.registration \ + $(top_srcdir)/schema/HostedAccessPoint.registration \ + $(top_srcdir)/schema/ServiceAccessBySAP.registration \ + $(top_srcdir)/schema/SAPAvailableForElement.registration \ + $(top_srcdir)/schema/FilterEntry.registration \ + $(top_srcdir)/schema/FilterList.registration \ + $(top_srcdir)/schema/EntriesInFilterList.registration \ + $(top_srcdir)/schema/NestedFilterList.registration \ + $(top_srcdir)/schema/AppliedFilterList.registration \ + $(top_srcdir)/schema/HostedFilterList.registration INTEROP_REGS = \ - schema/RegisteredProfile.registration \ - schema/ElementConformsToProfile.registration \ - schema/ReferencedProfile.registration + $(top_srcdir)/schema/RegisteredProfile.registration \ + $(top_srcdir)/schema/ElementConformsToProfile.registration \ + $(top_srcdir)/schema/ReferencedProfile.registration PGINTEROP_REGS = \ - schema/RegisteredProfile.registration \ - schema/ElementConformsToProfile.registration \ - schema/ReferencedProfile.registration + $(top_srcdir)/schema/RegisteredProfile.registration \ + $(top_srcdir)/schema/ElementConformsToProfile.registration \ + $(top_srcdir)/schema/ReferencedProfile.registration CIMV2_REGS = \ - schema/HostedResourcePool.registration \ - schema/ElementCapabilities.registration \ - schema/HostedService.registration \ - schema/HostedDependency.registration \ - schema/ElementConformsToProfile.registration \ - schema/HostedAccessPoint.registration + $(top_srcdir)/schema/HostedResourcePool.registration \ + $(top_srcdir)/schema/ElementCapabilities.registration \ + $(top_srcdir)/schema/HostedService.registration \ + $(top_srcdir)/schema/HostedDependency.registration \ + $(top_srcdir)/schema/ElementConformsToProfile.registration \ + $(top_srcdir)/schema/HostedAccessPoint.registration pkgdata_SCRIPTS = provider-register.sh diff --git a/doc/Makefile.am b/doc/Makefile.am index 222f192..cd9232c 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -20,4 +20,8 @@ install-data-local: $(mkinstalldirs) $(DESTDIR)$(HTML_DIR) @INSTALL@ -m 0644 $(srcdir)/*.html $(DESTDIR)$(HTML_DIR) +uninstall-local: + rm -f $(DESTDIR)$(HTML_DIR)/*.html + rmdir $(DESTDIR)$(HTML_DIR) + all: $(WEB_PAGES) -- 1.7.4.4

+1 On 11/22/2011 01:10 PM, Eduardo Lima (Etrunko) wrote:
From: Eduardo Lima (Etrunko)<eblima@br.ibm.com>
Signed-off-by: Eduardo Lima (Etrunko)<eblima@br.ibm.com> --- Makefile.am | 302 +++++++++++++++++++++++++++--------------------------- doc/Makefile.am | 4 + 2 files changed, 155 insertions(+), 151 deletions(-)
diff --git a/Makefile.am b/Makefile.am index 5f004ec..94dc5f3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,171 +4,171 @@ AUTOMAKE_OPTIONS=dist-bzip2 SUBDIRS = libxkutil src doc base_schema
MOFS = \ - schema/ComputerSystem.mof \ - schema/LogicalDisk.mof \ - schema/NetworkPort.mof \ - schema/Memory.mof \ - schema/Processor.mof \ - schema/SystemDevice.mof \ - schema/Virt_VSSD.mof \ - schema/VSSD.mof \ - schema/HostSystem.mof \ - schema/HostedDependency.mof \ - schema/VirtualSystemManagementService.mof \ - schema/VirtualSystemManagementCapabilities.mof \ - schema/EnabledLogicalElementCapabilities.mof \ - schema/AllocationCapabilities.mof \ - schema/SettingsDefineCapabilities.mof \ - schema/MemoryPool.mof \ - schema/ElementCapabilities.mof \ - schema/ProcessorPool.mof \ - schema/DiskPool.mof \ - schema/HostedResourcePool.mof \ - schema/RegisteredProfile.mof \ - schema/ElementConformsToProfile.mof \ - schema/ComputerSystemIndication.mof \ - schema/ResourceAllocationSettingDataIndication.mof \ - schema/SwitchService.mof \ - schema/ComputerSystemMigrationIndication.mof \ - schema/Virt_ResourceAllocationSettingData.mof \ - schema/ResourceAllocationSettingData.mof \ - schema/ResourcePoolConfigurationService.mof \ - schema/ResourcePoolConfigurationCapabilities.mof \ - schema/VSSDComponent.mof \ - schema/SettingsDefineState.mof \ - schema/NetPool.mof \ - schema/ResourceAllocationFromPool.mof \ - schema/ElementAllocatedFromPool.mof \ - schema/HostedService.mof \ - schema/ElementSettingData.mof \ - schema/VSMigrationCapabilities.mof \ - schema/VSMigrationService.mof \ - schema/VSMigrationSettingData.mof \ - schema/VirtualSystemSnapshotService.mof \ - schema/VirtualSystemSnapshotServiceCapabilities.mof \ - schema/ConcreteComponent.mof \ - schema/ConsoleRedirectionService.mof \ - schema/ConsoleRedirectionServiceCapabilities.mof \ - schema/ServiceAffectsElement.mof \ - schema/KVMRedirectionSAP.mof \ - schema/DisplayController.mof \ - schema/PointingDevice.mof \ - schema/GraphicsPool.mof \ - schema/InputPool.mof \ - schema/HostedAccessPoint.mof \ - schema/ServiceAccessBySAP.mof \ - schema/SAPAvailableForElement.mof \ - schema/FilterEntry.mof \ - schema/FilterList.mof \ - schema/EntriesInFilterList.mof \ - schema/NestedFilterList.mof \ - schema/AppliedFilterList.mof \ - schema/HostedFilterList.mof + $(top_srcdir)/schema/ComputerSystem.mof \ + $(top_srcdir)/schema/LogicalDisk.mof \ + $(top_srcdir)/schema/NetworkPort.mof \ + $(top_srcdir)/schema/Memory.mof \ + $(top_srcdir)/schema/Processor.mof \ + $(top_srcdir)/schema/SystemDevice.mof \ + $(top_srcdir)/schema/Virt_VSSD.mof \ + $(top_srcdir)/schema/VSSD.mof \ + $(top_srcdir)/schema/HostSystem.mof \ + $(top_srcdir)/schema/HostedDependency.mof \ + $(top_srcdir)/schema/VirtualSystemManagementService.mof \ + $(top_srcdir)/schema/VirtualSystemManagementCapabilities.mof \ + $(top_srcdir)/schema/EnabledLogicalElementCapabilities.mof \ + $(top_srcdir)/schema/AllocationCapabilities.mof \ + $(top_srcdir)/schema/SettingsDefineCapabilities.mof \ + $(top_srcdir)/schema/MemoryPool.mof \ + $(top_srcdir)/schema/ElementCapabilities.mof \ + $(top_srcdir)/schema/ProcessorPool.mof \ + $(top_srcdir)/schema/DiskPool.mof \ + $(top_srcdir)/schema/HostedResourcePool.mof \ + $(top_srcdir)/schema/RegisteredProfile.mof \ + $(top_srcdir)/schema/ElementConformsToProfile.mof \ + $(top_srcdir)/schema/ComputerSystemIndication.mof \ + $(top_srcdir)/schema/ResourceAllocationSettingDataIndication.mof \ + $(top_srcdir)/schema/SwitchService.mof \ + $(top_srcdir)/schema/ComputerSystemMigrationIndication.mof \ + $(top_srcdir)/schema/Virt_ResourceAllocationSettingData.mof \ + $(top_srcdir)/schema/ResourceAllocationSettingData.mof \ + $(top_srcdir)/schema/ResourcePoolConfigurationService.mof \ + $(top_srcdir)/schema/ResourcePoolConfigurationCapabilities.mof \ + $(top_srcdir)/schema/VSSDComponent.mof \ + $(top_srcdir)/schema/SettingsDefineState.mof \ + $(top_srcdir)/schema/NetPool.mof \ + $(top_srcdir)/schema/ResourceAllocationFromPool.mof \ + $(top_srcdir)/schema/ElementAllocatedFromPool.mof \ + $(top_srcdir)/schema/HostedService.mof \ + $(top_srcdir)/schema/ElementSettingData.mof \ + $(top_srcdir)/schema/VSMigrationCapabilities.mof \ + $(top_srcdir)/schema/VSMigrationService.mof \ + $(top_srcdir)/schema/VSMigrationSettingData.mof \ + $(top_srcdir)/schema/VirtualSystemSnapshotService.mof \ + $(top_srcdir)/schema/VirtualSystemSnapshotServiceCapabilities.mof \ + $(top_srcdir)/schema/ConcreteComponent.mof \ + $(top_srcdir)/schema/ConsoleRedirectionService.mof \ + $(top_srcdir)/schema/ConsoleRedirectionServiceCapabilities.mof \ + $(top_srcdir)/schema/ServiceAffectsElement.mof \ + $(top_srcdir)/schema/KVMRedirectionSAP.mof \ + $(top_srcdir)/schema/DisplayController.mof \ + $(top_srcdir)/schema/PointingDevice.mof \ + $(top_srcdir)/schema/GraphicsPool.mof \ + $(top_srcdir)/schema/InputPool.mof \ + $(top_srcdir)/schema/HostedAccessPoint.mof \ + $(top_srcdir)/schema/ServiceAccessBySAP.mof \ + $(top_srcdir)/schema/SAPAvailableForElement.mof \ + $(top_srcdir)/schema/FilterEntry.mof \ + $(top_srcdir)/schema/FilterList.mof \ + $(top_srcdir)/schema/EntriesInFilterList.mof \ + $(top_srcdir)/schema/NestedFilterList.mof \ + $(top_srcdir)/schema/AppliedFilterList.mof \ + $(top_srcdir)/schema/HostedFilterList.mof
INTEROP_MOFS = \ - schema/ComputerSystem.mof \ - schema/HostSystem.mof \ - schema/RegisteredProfile.mof \ - schema/DiskPool.mof \ - schema/MemoryPool.mof \ - schema/NetPool.mof \ - schema/ProcessorPool.mof \ - schema/VSMigrationService.mof \ - schema/ElementConformsToProfile.mof \ - schema/ReferencedProfile.mof \ - schema/AllocationCapabilities.mof + $(top_srcdir)/schema/ComputerSystem.mof \ + $(top_srcdir)/schema/HostSystem.mof \ + $(top_srcdir)/schema/RegisteredProfile.mof \ + $(top_srcdir)/schema/DiskPool.mof \ + $(top_srcdir)/schema/MemoryPool.mof \ + $(top_srcdir)/schema/NetPool.mof \ + $(top_srcdir)/schema/ProcessorPool.mof \ + $(top_srcdir)/schema/VSMigrationService.mof \ + $(top_srcdir)/schema/ElementConformsToProfile.mof \ + $(top_srcdir)/schema/ReferencedProfile.mof \ + $(top_srcdir)/schema/AllocationCapabilities.mof
PGINTEROP_MOFS = \ - schema/RegisteredProfile.mof \ - schema/ElementConformsToProfile.mof \ - schema/ReferencedProfile.mof + $(top_srcdir)/schema/RegisteredProfile.mof \ + $(top_srcdir)/schema/ElementConformsToProfile.mof \ + $(top_srcdir)/schema/ReferencedProfile.mof
CIMV2_MOFS = \ - schema/HostedResourcePool.mof \ - schema/ElementCapabilities.mof \ - schema/HostedService.mof \ - schema/HostedDependency.mof \ - schema/RegisteredProfile.mof \ - schema/ComputerSystem.mof \ - schema/ElementConformsToProfile.mof \ - schema/HostedAccessPoint.mof + $(top_srcdir)/schema/HostedResourcePool.mof \ + $(top_srcdir)/schema/ElementCapabilities.mof \ + $(top_srcdir)/schema/HostedService.mof \ + $(top_srcdir)/schema/HostedDependency.mof \ + $(top_srcdir)/schema/RegisteredProfile.mof \ + $(top_srcdir)/schema/ComputerSystem.mof \ + $(top_srcdir)/schema/ElementConformsToProfile.mof \ + $(top_srcdir)/schema/HostedAccessPoint.mof
REGS = \ - schema/ComputerSystem.registration \ - schema/LogicalDisk.registration \ - schema/NetworkPort.registration \ - schema/Memory.registration \ - schema/Processor.registration \ - schema/SystemDevice.registration \ - schema/VSSD.registration \ - schema/HostSystem.registration \ - schema/HostedDependency.registration \ - schema/VirtualSystemManagementService.registration \ - schema/VirtualSystemManagementCapabilities.registration \ - schema/EnabledLogicalElementCapabilities.registration \ - schema/AllocationCapabilities.registration \ - schema/SettingsDefineCapabilities.registration \ - schema/MemoryPool.registration \ - schema/ElementCapabilities.registration \ - schema/ProcessorPool.registration \ - schema/DiskPool.registration \ - schema/HostedResourcePool.registration \ - schema/ComputerSystemIndication.registration \ - schema/ResourceAllocationSettingDataIndication.registration \ - schema/SwitchService.registration \ - schema/ComputerSystemMigrationIndication.registration \ - schema/ResourceAllocationSettingData.registration \ - schema/ResourcePoolConfigurationService.registration \ - schema/ResourcePoolConfigurationCapabilities.registration \ - schema/VSSDComponent.registration \ - schema/SettingsDefineState.registration \ - schema/NetPool.registration \ - schema/ResourceAllocationFromPool.registration \ - schema/ElementAllocatedFromPool.registration \ - schema/HostedService.registration \ - schema/ElementSettingData.registration \ - schema/VSMigrationCapabilities.registration \ - schema/VSMigrationService.registration \ - schema/ElementConformsToProfile.registration \ - schema/VSMigrationSettingData.registration \ - schema/VirtualSystemSnapshotService.registration \ - schema/VirtualSystemSnapshotServiceCapabilities.registration \ - schema/ConcreteComponent.registration \ - schema/ConsoleRedirectionService.registration \ - schema/ConsoleRedirectionServiceCapabilities.registration \ - schema/ServiceAffectsElement.registration \ - schema/KVMRedirectionSAP.registration \ - schema/DisplayController.registration \ - schema/PointingDevice.registration \ - schema/GraphicsPool.registration \ - schema/InputPool.registration \ - schema/HostedAccessPoint.registration \ - schema/ServiceAccessBySAP.registration \ - schema/SAPAvailableForElement.registration \ - schema/FilterEntry.registration \ - schema/FilterList.registration \ - schema/EntriesInFilterList.registration \ - schema/NestedFilterList.registration \ - schema/AppliedFilterList.registration \ - schema/HostedFilterList.registration + $(top_srcdir)/schema/ComputerSystem.registration \ + $(top_srcdir)/schema/LogicalDisk.registration \ + $(top_srcdir)/schema/NetworkPort.registration \ + $(top_srcdir)/schema/Memory.registration \ + $(top_srcdir)/schema/Processor.registration \ + $(top_srcdir)/schema/SystemDevice.registration \ + $(top_srcdir)/schema/VSSD.registration \ + $(top_srcdir)/schema/HostSystem.registration \ + $(top_srcdir)/schema/HostedDependency.registration \ + $(top_srcdir)/schema/VirtualSystemManagementService.registration \ + $(top_srcdir)/schema/VirtualSystemManagementCapabilities.registration \ + $(top_srcdir)/schema/EnabledLogicalElementCapabilities.registration \ + $(top_srcdir)/schema/AllocationCapabilities.registration \ + $(top_srcdir)/schema/SettingsDefineCapabilities.registration \ + $(top_srcdir)/schema/MemoryPool.registration \ + $(top_srcdir)/schema/ElementCapabilities.registration \ + $(top_srcdir)/schema/ProcessorPool.registration \ + $(top_srcdir)/schema/DiskPool.registration \ + $(top_srcdir)/schema/HostedResourcePool.registration \ + $(top_srcdir)/schema/ComputerSystemIndication.registration \ + $(top_srcdir)/schema/ResourceAllocationSettingDataIndication.registration \ + $(top_srcdir)/schema/SwitchService.registration \ + $(top_srcdir)/schema/ComputerSystemMigrationIndication.registration \ + $(top_srcdir)/schema/ResourceAllocationSettingData.registration \ + $(top_srcdir)/schema/ResourcePoolConfigurationService.registration \ + $(top_srcdir)/schema/ResourcePoolConfigurationCapabilities.registration \ + $(top_srcdir)/schema/VSSDComponent.registration \ + $(top_srcdir)/schema/SettingsDefineState.registration \ + $(top_srcdir)/schema/NetPool.registration \ + $(top_srcdir)/schema/ResourceAllocationFromPool.registration \ + $(top_srcdir)/schema/ElementAllocatedFromPool.registration \ + $(top_srcdir)/schema/HostedService.registration \ + $(top_srcdir)/schema/ElementSettingData.registration \ + $(top_srcdir)/schema/VSMigrationCapabilities.registration \ + $(top_srcdir)/schema/VSMigrationService.registration \ + $(top_srcdir)/schema/ElementConformsToProfile.registration \ + $(top_srcdir)/schema/VSMigrationSettingData.registration \ + $(top_srcdir)/schema/VirtualSystemSnapshotService.registration \ + $(top_srcdir)/schema/VirtualSystemSnapshotServiceCapabilities.registration \ + $(top_srcdir)/schema/ConcreteComponent.registration \ + $(top_srcdir)/schema/ConsoleRedirectionService.registration \ + $(top_srcdir)/schema/ConsoleRedirectionServiceCapabilities.registration \ + $(top_srcdir)/schema/ServiceAffectsElement.registration \ + $(top_srcdir)/schema/KVMRedirectionSAP.registration \ + $(top_srcdir)/schema/DisplayController.registration \ + $(top_srcdir)/schema/PointingDevice.registration \ + $(top_srcdir)/schema/GraphicsPool.registration \ + $(top_srcdir)/schema/InputPool.registration \ + $(top_srcdir)/schema/HostedAccessPoint.registration \ + $(top_srcdir)/schema/ServiceAccessBySAP.registration \ + $(top_srcdir)/schema/SAPAvailableForElement.registration \ + $(top_srcdir)/schema/FilterEntry.registration \ + $(top_srcdir)/schema/FilterList.registration \ + $(top_srcdir)/schema/EntriesInFilterList.registration \ + $(top_srcdir)/schema/NestedFilterList.registration \ + $(top_srcdir)/schema/AppliedFilterList.registration \ + $(top_srcdir)/schema/HostedFilterList.registration
INTEROP_REGS = \ - schema/RegisteredProfile.registration \ - schema/ElementConformsToProfile.registration \ - schema/ReferencedProfile.registration + $(top_srcdir)/schema/RegisteredProfile.registration \ + $(top_srcdir)/schema/ElementConformsToProfile.registration \ + $(top_srcdir)/schema/ReferencedProfile.registration
PGINTEROP_REGS = \ - schema/RegisteredProfile.registration \ - schema/ElementConformsToProfile.registration \ - schema/ReferencedProfile.registration + $(top_srcdir)/schema/RegisteredProfile.registration \ + $(top_srcdir)/schema/ElementConformsToProfile.registration \ + $(top_srcdir)/schema/ReferencedProfile.registration
CIMV2_REGS = \ - schema/HostedResourcePool.registration \ - schema/ElementCapabilities.registration \ - schema/HostedService.registration \ - schema/HostedDependency.registration \ - schema/ElementConformsToProfile.registration \ - schema/HostedAccessPoint.registration + $(top_srcdir)/schema/HostedResourcePool.registration \ + $(top_srcdir)/schema/ElementCapabilities.registration \ + $(top_srcdir)/schema/HostedService.registration \ + $(top_srcdir)/schema/HostedDependency.registration \ + $(top_srcdir)/schema/ElementConformsToProfile.registration \ + $(top_srcdir)/schema/HostedAccessPoint.registration
pkgdata_SCRIPTS = provider-register.sh
diff --git a/doc/Makefile.am b/doc/Makefile.am index 222f192..cd9232c 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -20,4 +20,8 @@ install-data-local: $(mkinstalldirs) $(DESTDIR)$(HTML_DIR) @INSTALL@ -m 0644 $(srcdir)/*.html $(DESTDIR)$(HTML_DIR)
+uninstall-local: + rm -f $(DESTDIR)$(HTML_DIR)/*.html + rmdir $(DESTDIR)$(HTML_DIR) + all: $(WEB_PAGES)
-- Chip Vincent Open Virtualization IBM Linux Technology Center cvincent@linux.vnet.ibm.com

Series pushed. On 11/22/2011 01:10 PM, Eduardo Lima (Etrunko) wrote:
This is a simple patch series that makes the build pass make distcheck. I tried (not much) to make the tests at least build, without success. This way I simply considered them broken and removed from the source tree.
Best regards, Etrunko
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim
-- Chip Vincent Open Virtualization IBM Linux Technology Center cvincent@linux.vnet.ibm.com
participants (2)
-
Chip Vincent
-
Eduardo Lima (Etrunko)