Add detection for LXC + tests
[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 CLEANFILES = virt-what
19
20 AM_CPPFLAGS = -Wall
21
22 sbin_SCRIPTS = virt-what
23 libexec_PROGRAMS = virt-what-cpuid-helper
24 if HOST_CPU_IA64
25 libexec_PROGRAMS += virt-what-ia64-xen-rdtsc-test
26 endif
27
28 if HAVE_POD2MAN
29
30 CLEANFILES += virt-what.1 virt-what.txt
31 man_MANS = virt-what.1
32
33 virt-what.1: virt-what.pod
34         pod2man -c "Virtualization Support" --release "$(PACKAGE)-$(VERSION)" \
35           $< > $@
36 virt-what.txt: virt-what.pod
37         pod2text $< > $@
38
39 endif
40
41 TESTS = \
42         tests/test-baremetal.sh \
43         tests/test-esx4.1.sh \
44         tests/test-hyperv.sh \
45         tests/test-kvm.sh \
46         tests/test-kvm-explicit-cpu.sh \
47         tests/test-linux-vserver.sh \
48         tests/test-lxc.sh \
49         tests/test-lx86.sh \
50         tests/test-parallels-desktop.sh \
51         tests/test-qemu.sh \
52         tests/test-rhel5-xen-dom0.sh \
53         tests/test-rhel5-xen-domU-hvm.sh \
54         tests/test-rhel5-xen-domU-hvm-ia64.sh \
55         tests/test-rhel5-xen-domU-pv.sh \
56         tests/test-zvm.sh
57
58 EXTRA_DIST = \
59         virt-what.in \
60         virt-what.pod \
61         tests/baremetal/proc/cpuinfo \
62         tests/baremetal/proc/self/status \
63         tests/baremetal/sbin/dmidecode \
64         tests/baremetal/sbin/id \
65         tests/baremetal/sbin/uname \
66         tests/baremetal/sbin/virt-what-cpuid-helper \
67         tests/esx4.1/proc/cpuinfo \
68         tests/esx4.1/proc/self/status \
69         tests/esx4.1/sbin/dmidecode \
70         tests/esx4.1/sbin/id \
71         tests/esx4.1/sbin/uname \
72         tests/esx4.1/sbin/virt-what-cpuid-helper \
73         tests/hyperv/proc/cpuinfo \
74         tests/hyperv/proc/self/status \
75         tests/hyperv/sbin/dmidecode \
76         tests/hyperv/sbin/id \
77         tests/hyperv/sbin/uname \
78         tests/hyperv/sbin/virt-what-cpuid-helper \
79         tests/kvm/proc/cpuinfo \
80         tests/kvm/proc/self/status \
81         tests/kvm/sbin/dmidecode \
82         tests/kvm/sbin/id \
83         tests/kvm/sbin/uname \
84         tests/kvm/sbin/virt-what-cpuid-helper \
85         tests/kvm-explicit-cpu/proc/cpuinfo \
86         tests/kvm-explicit-cpu/proc/self/status \
87         tests/kvm-explicit-cpu/sbin/dmidecode \
88         tests/kvm-explicit-cpu/sbin/id \
89         tests/kvm-explicit-cpu/sbin/uname \
90         tests/kvm-explicit-cpu/sbin/virt-what-cpuid-helper \
91         tests/linux-vserver/proc/cpuinfo \
92         tests/linux-vserver/proc/self/status \
93         tests/linux-vserver/sbin/dmidecode \
94         tests/linux-vserver/sbin/id \
95         tests/linux-vserver/sbin/uname \
96         tests/linux-vserver/sbin/virt-what-cpuid-helper \
97         tests/lxc/proc/1/environ \
98         tests/lxc/proc/cpuinfo \
99         tests/lxc/proc/self/status \
100         tests/lxc/sbin/dmidecode \
101         tests/lxc/sbin/id \
102         tests/lxc/sbin/uname \
103         tests/lxc/sbin/virt-what-cpuid-helper \
104         tests/lx86/proc/cpuinfo \
105         tests/lx86/proc/self/status \
106         tests/lx86/sbin/dmidecode \
107         tests/lx86/sbin/id \
108         tests/lx86/sbin/uname \
109         tests/lx86/sbin/virt-what-cpuid-helper \
110         tests/parallels-desktop/proc/cpuinfo \
111         tests/parallels-desktop/proc/self/status \
112         tests/parallels-desktop/sbin/dmidecode \
113         tests/parallels-desktop/sbin/id \
114         tests/parallels-desktop/sbin/uname \
115         tests/parallels-desktop/sbin/virt-what-cpuid-helper \
116         tests/qemu/proc/cpuinfo \
117         tests/qemu/proc/self/status \
118         tests/qemu/sbin/dmidecode \
119         tests/qemu/sbin/id \
120         tests/qemu/sbin/uname \
121         tests/qemu/sbin/virt-what-cpuid-helper \
122         tests/rhel5-xen-dom0/proc/cpuinfo \
123         tests/rhel5-xen-dom0/proc/self/status \
124         tests/rhel5-xen-dom0/proc/xen/balloon \
125         tests/rhel5-xen-dom0/proc/xen/capabilities \
126         tests/rhel5-xen-dom0/proc/xen/privcmd \
127         tests/rhel5-xen-dom0/proc/xen/xenbus \
128         tests/rhel5-xen-dom0/proc/xen/xsd_kva \
129         tests/rhel5-xen-dom0/proc/xen/xsd_port \
130         tests/rhel5-xen-dom0/sbin/dmidecode \
131         tests/rhel5-xen-dom0/sbin/id \
132         tests/rhel5-xen-dom0/sbin/uname \
133         tests/rhel5-xen-dom0/sbin/virt-what-cpuid-helper \
134         tests/rhel5-xen-dom0/sys/hypervisor/properties/pagesize \
135         tests/rhel5-xen-dom0/sys/hypervisor/properties/changeset \
136         tests/rhel5-xen-dom0/sys/hypervisor/properties/virtual_start \
137         tests/rhel5-xen-dom0/sys/hypervisor/properties/capabilities \
138         tests/rhel5-xen-dom0/sys/hypervisor/properties/writable_pt \
139         tests/rhel5-xen-dom0/sys/hypervisor/type \
140         tests/rhel5-xen-dom0/sys/hypervisor/vmcoreinfo \
141         tests/rhel5-xen-dom0/sys/hypervisor/version/minor \
142         tests/rhel5-xen-dom0/sys/hypervisor/version/major \
143         tests/rhel5-xen-dom0/sys/hypervisor/version/extra \
144         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiler \
145         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiled_by \
146         tests/rhel5-xen-dom0/sys/hypervisor/compilation/compile_date \
147         tests/rhel5-xen-dom0/sys/hypervisor/uuid \
148         tests/rhel5-xen-domU-hvm/proc/cpuinfo \
149         tests/rhel5-xen-domU-hvm/proc/self/status \
150         tests/rhel5-xen-domU-hvm/sbin/dmidecode \
151         tests/rhel5-xen-domU-hvm/sbin/id \
152         tests/rhel5-xen-domU-hvm/sbin/uname \
153         tests/rhel5-xen-domU-hvm/sbin/virt-what-cpuid-helper \
154         tests/rhel5-xen-domU-hvm-ia64/proc/cpuinfo \
155         tests/rhel5-xen-domU-hvm-ia64/proc/self/status \
156         tests/rhel5-xen-domU-hvm-ia64/sbin/dmidecode \
157         tests/rhel5-xen-domU-hvm-ia64/sbin/id \
158         tests/rhel5-xen-domU-hvm-ia64/sbin/uname \
159         tests/rhel5-xen-domU-hvm-ia64/sbin/virt-what-cpuid-helper \
160         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/bind \
161         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/unbind \
162         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/bind \
163         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/unbind \
164         tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers_probe \
165         tests/rhel5-xen-domU-pv/proc/cpuinfo \
166         tests/rhel5-xen-domU-pv/proc/self/status \
167         tests/rhel5-xen-domU-pv/proc/xen/balloon \
168         tests/rhel5-xen-domU-pv/proc/xen/capabilities \
169         tests/rhel5-xen-domU-pv/proc/xen/privcmd \
170         tests/rhel5-xen-domU-pv/proc/xen/xenbus \
171         tests/rhel5-xen-domU-pv/sbin/dmidecode \
172         tests/rhel5-xen-domU-pv/sbin/id \
173         tests/rhel5-xen-domU-pv/sbin/uname \
174         tests/rhel5-xen-domU-pv/sbin/virt-what-cpuid-helper \
175         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/pagesize \
176         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/changeset \
177         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/virtual_start \
178         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/capabilities \
179         tests/rhel5-xen-domU-pv/sys/hypervisor/properties/writable_pt \
180         tests/rhel5-xen-domU-pv/sys/hypervisor/type \
181         tests/rhel5-xen-domU-pv/sys/hypervisor/vmcoreinfo \
182         tests/rhel5-xen-domU-pv/sys/hypervisor/version/minor \
183         tests/rhel5-xen-domU-pv/sys/hypervisor/version/major \
184         tests/rhel5-xen-domU-pv/sys/hypervisor/version/extra \
185         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiler \
186         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiled_by \
187         tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compile_date \
188         tests/rhel5-xen-domU-pv/sys/hypervisor/uuid \
189         tests/zvm/proc/cpuinfo \
190         tests/zvm/proc/self/status \
191         tests/zvm/proc/sysinfo \
192         tests/zvm/sbin/dmidecode \
193         tests/zvm/sbin/id \
194         tests/zvm/sbin/uname \
195         tests/zvm/sbin/virt-what-cpuid-helper \
196         $(TESTS)