Confirm Microsoft Hyper-V, and add a regression test.
[virt-what.git] / Makefile.am
1 # Makefile for virt-what
2 # Copyright (C) 2008-2011 Red Hat Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 EXTRA_DIST = \
19         virt-what.in \
20         virt-what.pod \
21         tests/baremetal/proc/cpuinfo \
22         tests/baremetal/proc/self/status \
23         tests/baremetal/sbin/dmidecode \
24         tests/baremetal/sbin/id \
25         tests/baremetal/sbin/virt-what-cpuid-helper \
26         tests/esx4.1/proc/cpuinfo \
27         tests/esx4.1/proc/self/status \
28         tests/esx4.1/sbin/dmidecode \
29         tests/esx4.1/sbin/id \
30         tests/esx4.1/sbin/virt-what-cpuid-helper \
31         tests/hyperv/proc/cpuinfo \
32         tests/hyperv/proc/self/status \
33         tests/hyperv/sbin/dmidecode \
34         tests/hyperv/sbin/id \
35         tests/hyperv/sbin/virt-what-cpuid-helper \
36         tests/kvm/proc/cpuinfo \
37         tests/kvm/proc/self/status \
38         tests/kvm/sbin/dmidecode \
39         tests/kvm/sbin/id \
40         tests/kvm/sbin/virt-what-cpuid-helper \
41         tests/linux-vserver/proc/cpuinfo \
42         tests/linux-vserver/proc/self/status \
43         tests/linux-vserver/sbin/dmidecode \
44         tests/linux-vserver/sbin/id \
45         tests/linux-vserver/sbin/virt-what-cpuid-helper \
46         tests/parallels-desktop/proc/cpuinfo \
47         tests/parallels-desktop/proc/self/status \
48         tests/parallels-desktop/sbin/dmidecode \
49         tests/parallels-desktop/sbin/id \
50         tests/parallels-desktop/sbin/virt-what-cpuid-helper \
51         tests/qemu/proc/cpuinfo \
52         tests/qemu/proc/self/status \
53         tests/qemu/sbin/dmidecode \
54         tests/qemu/sbin/id \
55         tests/qemu/sbin/virt-what-cpuid-helper \
56         tests/rhel5-xen-dom0/proc/cpuinfo \
57         tests/rhel5-xen-dom0/proc/self/status \
58         tests/rhel5-xen-dom0/proc/xen/balloon \
59         tests/rhel5-xen-dom0/proc/xen/capabilities \
60         tests/rhel5-xen-dom0/proc/xen/privcmd \
61         tests/rhel5-xen-dom0/proc/xen/xenbus \
62         tests/rhel5-xen-dom0/proc/xen/xsd_kva \
63         tests/rhel5-xen-dom0/proc/xen/xsd_port \
64         tests/rhel5-xen-dom0/sbin/dmidecode \
65         tests/rhel5-xen-dom0/sbin/id \
66         tests/rhel5-xen-dom0/sbin/virt-what-cpuid-helper \
67         tests/rhel5-xen-dom0/sys/hypervisor/properties/pagesize \
68         tests/rhel5-xen-dom0/sys/hypervisor/properties/changeset \
69         tests/rhel5-xen-dom0/sys/hypervisor/properties/virtual_start \
70         tests/rhel5-xen-dom0/sys/hypervisor/properties/capabilities \
71         tests/rhel5-xen-dom0/sys/hypervisor/properties/writable_pt \
72         tests/rhel5-xen-dom0/sys/hypervisor/type \
73         tests/rhel5-xen-dom0/sys/hypervisor/vmcoreinfo \
74         tests/rhel5-xen-dom0/sys/hypervisor/version/minor \
75         tests/rhel5-xen-dom0/sys/hypervisor/version/major \
76         tests/rhel5-xen-dom0/sys/hypervisor/version/extra \
77         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiler \
78         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiled_by \
79         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compile_date \
80         tests/rhel5-xen-dom0/sys/hypervisor/uuid \
81         tests/rhel5-xen-domU-hvm/proc/cpuinfo \
82         tests/rhel5-xen-domU-hvm/proc/self/status \
83         tests/rhel5-xen-domU-hvm/sbin/dmidecode \
84         tests/rhel5-xen-domU-hvm/sbin/id \
85         tests/rhel5-xen-domU-hvm/sbin/virt-what-cpuid-helper \
86         tests/rhel5-xen-domU-pv/proc/cpuinfo \
87         tests/rhel5-xen-domU-pv/proc/self/status \
88         tests/rhel5-xen-domU-pv/proc/xen/balloon \
89         tests/rhel5-xen-domU-pv/proc/xen/capabilities \
90         tests/rhel5-xen-domU-pv/proc/xen/privcmd \
91         tests/rhel5-xen-domU-pv/proc/xen/xenbus \
92         tests/rhel5-xen-domU-pv/sbin/dmidecode \
93         tests/rhel5-xen-domU-pv/sbin/id \
94         tests/rhel5-xen-domU-pv/sbin/virt-what-cpuid-helper \
95         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/pagesize \
96         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/changeset \
97         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/virtual_start \
98         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/capabilities \
99         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/writable_pt \
100         tests/rhel5-xen-domU-pv/sys/hypervisor/type \
101         tests/rhel5-xen-domU-pv/sys/hypervisor/vmcoreinfo \
102         tests/rhel5-xen-domU-pv/sys/hypervisor/version/minor \
103         tests/rhel5-xen-domU-pv/sys/hypervisor/version/major \
104         tests/rhel5-xen-domU-pv/sys/hypervisor/version/extra \
105         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiler \
106         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiled_by \
107         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compile_date \
108         tests/rhel5-xen-domU-pv/sys/hypervisor/uuid \
109         tests/zvm/proc/cpuinfo \
110         tests/zvm/proc/self/status \
111         tests/zvm/proc/sysinfo \
112         tests/zvm/sbin/dmidecode \
113         tests/zvm/sbin/id \
114         tests/zvm/sbin/virt-what-cpuid-helper \
115         tests/test-baremetal.sh \
116         tests/test-esx4.1.sh \
117         tests/test-hyperv.sh \
118         tests/test-kvm.sh \
119         tests/test-linux-vserver.sh \
120         tests/test-parallels-desktop.sh \
121         tests/test-qemu.sh \
122         tests/test-rhel5-xen-dom0.sh \
123         tests/test-rhel5-xen-domU-hvm.sh \
124         tests/test-rhel5-xen-domU-pv.sh \
125         tests/test-zvm.sh
126
127 CLEANFILES = virt-what virt-what.1 virt-what.txt
128
129 AM_CPPFLAGS = -Wall
130
131 sbin_SCRIPTS = virt-what
132 libexec_PROGRAMS = virt-what-cpuid-helper
133
134 man_MANS = virt-what.1
135
136 virt-what.1: virt-what.pod
137         pod2man -c "Virtualization Support" --release "$(PACKAGE)-$(VERSION)" \
138           $< > $@
139
140 virt-what.txt: virt-what.pod
141         pod2text $< > $@
142
143 TESTS = \
144         tests/test-baremetal.sh \
145         tests/test-esx4.1.sh \
146         tests/test-hyperv.sh \
147         tests/test-kvm.sh \
148         tests/test-linux-vserver.sh \
149         tests/test-parallels-desktop.sh \
150         tests/test-qemu.sh \
151         tests/test-rhel5-xen-dom0.sh \
152         tests/test-rhel5-xen-domU-hvm.sh \
153         tests/test-rhel5-xen-domU-pv.sh \
154         tests/test-zvm.sh