Codebase list virt-what / f21f097
Update upstream source from tag 'upstream/1.21' Update to upstream version '1.21' with Debian dir 532fe383646a2d2519d3cd6f9ec5f869a5764420 Jeremy Bicha 2 years ago
171 changed file(s) with 32896 addition(s) and 2332 deletion(s). Raw diff Collapse all Expand all
0 *~
1 *.bak
2 *.log
3 *.trs
4 *.o
5
6 Makefile
7 Makefile.in
8
9 /virt-what-*.tar.gz
10 /.deps
11 /aclocal.m4
12 /autom4te.cache
13 /compile
14 /config.guess
15 /config.h
16 /config.h.in
17 /config.log
18 /config.status
19 /config.sub
20 /configure
21 /depcomp
22 /install-sh
23 /missing
24 /stamp-h1
25 /test-driver
26 /virt-what
27 /virt-what-cpuid-helper
28 /virt-what.1
29 /virt-what.txt
1414 # along with this program; if not, write to the Free Software
1515 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1616
17 CLEANFILES = virt-what
17 AM_CPPFLAGS = -Wall
1818
19 AM_CPPFLAGS = -Wall
19 CLEANFILES = virt-what *~
20
21 EXTRA_DIST = .gitignore virt-what.in virt-what.pod
22
23 SUBDIRS = . tests
2024
2125 sbin_SCRIPTS = virt-what
2226 libexec_PROGRAMS = virt-what-cpuid-helper
3741
3842 endif
3943
40 TESTS = \
41 tests/test-aws-baremetal-x86.sh \
42 tests/test-aws-kvm-x86.sh \
43 tests/test-aws-xen-x86.sh \
44 tests/test-baremetal.sh \
45 tests/test-bhyve.sh \
46 tests/test-docker.sh \
47 tests/test-esx4.1.sh \
48 tests/test-hyperv.sh \
49 tests/test-kvm.sh \
50 tests/test-kvm-explicit-cpu.sh \
51 tests/test-linux-vserver.sh \
52 tests/test-ldoms.sh \
53 tests/test-lkvm.sh \
54 tests/test-lkvm-arm.sh \
55 tests/test-lxc.sh \
56 tests/test-lx86.sh \
57 tests/test-parallels-desktop.sh \
58 tests/test-ppc64-baremetal.sh \
59 tests/test-ppc64-kvm.sh \
60 tests/test-ppc64-lpar-dedicated.sh \
61 tests/test-ppc64-lpar-shared.sh \
62 tests/test-qemu.sh \
63 tests/test-qemu-arm.sh \
64 tests/test-qemu-smbios.sh \
65 tests/test-qemu-smbios-kvm.sh \
66 tests/test-rhel5-xen-dom0.sh \
67 tests/test-rhel5-xen-domU-hvm.sh \
68 tests/test-rhel5-xen-domU-hvm-ia64.sh \
69 tests/test-rhel5-xen-domU-pv.sh \
70 tests/test-rhev.sh \
71 tests/test-vmm.sh \
72 tests/test-xen-arm.sh \
73 tests/test-zvm.sh
44 #----------------------------------------------------------------------
45 # Maintainers only!
7446
75 EXTRA_DIST = \
76 virt-what.in \
77 virt-what.pod \
78 tests/aws-baremetal-x86/proc/cpuinfo \
79 tests/aws-baremetal-x86/proc/self/status \
80 tests/aws-baremetal-x86/sbin/dmidecode \
81 tests/aws-baremetal-x86/sbin/uname \
82 tests/aws-baremetal-x86/sbin/virt-what-cpuid-helper \
83 tests/aws-kvm-x86/proc/cpuinfo \
84 tests/aws-kvm-x86/proc/self/status \
85 tests/aws-kvm-x86/sbin/dmidecode \
86 tests/aws-kvm-x86/sbin/uname \
87 tests/aws-kvm-x86/sbin/virt-what-cpuid-helper \
88 tests/aws-xen-x86/proc/cpuinfo \
89 tests/aws-xen-x86/proc/self/status \
90 tests/aws-xen-x86/sbin/dmidecode \
91 tests/aws-xen-x86/sbin/uname \
92 tests/aws-xen-x86/sbin/virt-what-cpuid-helper \
93 tests/baremetal/proc/cpuinfo \
94 tests/baremetal/proc/self/status \
95 tests/baremetal/sbin/dmidecode \
96 tests/baremetal/sbin/uname \
97 tests/baremetal/sbin/virt-what-cpuid-helper \
98 tests/bhyve/proc/cpuinfo \
99 tests/bhyve/sbin/dmidecode \
100 tests/bhyve/sbin/uname \
101 tests/bhyve/sbin/virt-what-cpuid-helper \
102 tests/docker/.dockerinit \
103 tests/docker/proc/cpuinfo \
104 tests/docker/proc/self/status \
105 tests/docker/sbin/dmidecode \
106 tests/docker/sbin/uname \
107 tests/docker/sbin/virt-what-cpuid-helper \
108 tests/esx4.1/proc/cpuinfo \
109 tests/esx4.1/proc/self/status \
110 tests/esx4.1/sbin/dmidecode \
111 tests/esx4.1/sbin/uname \
112 tests/esx4.1/sbin/virt-what-cpuid-helper \
113 tests/hyperv/proc/cpuinfo \
114 tests/hyperv/proc/self/status \
115 tests/hyperv/sbin/dmidecode \
116 tests/hyperv/sbin/uname \
117 tests/hyperv/sbin/virt-what-cpuid-helper \
118 tests/kvm/proc/cpuinfo \
119 tests/kvm/proc/self/status \
120 tests/kvm/sbin/dmidecode \
121 tests/kvm/sbin/uname \
122 tests/kvm/sbin/virt-what-cpuid-helper \
123 tests/kvm-explicit-cpu/proc/cpuinfo \
124 tests/kvm-explicit-cpu/proc/self/status \
125 tests/kvm-explicit-cpu/sbin/dmidecode \
126 tests/kvm-explicit-cpu/sbin/uname \
127 tests/kvm-explicit-cpu/sbin/virt-what-cpuid-helper \
128 tests/ldoms/dev/mdesc \
129 tests/ldoms/proc/cpuinfo \
130 tests/ldoms/sbin/uname \
131 tests/ldoms/sbin/virt-what-cpuid-helper \
132 tests/linux-vserver/proc/cpuinfo \
133 tests/linux-vserver/proc/self/status \
134 tests/linux-vserver/sbin/dmidecode \
135 tests/linux-vserver/sbin/uname \
136 tests/linux-vserver/sbin/virt-what-cpuid-helper \
137 tests/lkvm/proc/cpuinfo \
138 tests/lkvm/proc/self/status \
139 tests/lkvm/sbin/dmidecode \
140 tests/lkvm/sbin/uname \
141 tests/lkvm/sbin/virt-what-cpuid-helper \
142 tests/lkvm-arm/proc/cpuinfo \
143 tests/lkvm-arm/proc/device-tree/compatible \
144 tests/lkvm-arm/proc/self/status \
145 tests/lkvm-arm/sbin/dmidecode \
146 tests/lkvm-arm/sbin/uname \
147 tests/lkvm-arm/sbin/virt-what-cpuid-helper \
148 tests/lxc/proc/1/environ \
149 tests/lxc/proc/cpuinfo \
150 tests/lxc/proc/self/status \
151 tests/lxc/sbin/dmidecode \
152 tests/lxc/sbin/uname \
153 tests/lxc/sbin/virt-what-cpuid-helper \
154 tests/lx86/proc/cpuinfo \
155 tests/lx86/proc/self/status \
156 tests/lx86/sbin/dmidecode \
157 tests/lx86/sbin/uname \
158 tests/lx86/sbin/virt-what-cpuid-helper \
159 tests/parallels-desktop/proc/cpuinfo \
160 tests/parallels-desktop/proc/self/status \
161 tests/parallels-desktop/sbin/dmidecode \
162 tests/parallels-desktop/sbin/uname \
163 tests/parallels-desktop/sbin/virt-what-cpuid-helper \
164 tests/ppc64-baremetal/proc/cpuinfo \
165 tests/ppc64-baremetal/sbin/dmidecode \
166 tests/ppc64-baremetal/sbin/uname \
167 tests/ppc64-baremetal/sbin/virt-what-cpuid-helper \
168 tests/ppc64-kvm/proc/cpuinfo \
169 tests/ppc64-kvm/proc/self/status \
170 tests/ppc64-kvm/sbin/dmidecode \
171 tests/ppc64-kvm/sbin/uname \
172 tests/ppc64-kvm/sbin/virt-what-cpuid-helper \
173 tests/ppc64-lpar-dedicated/proc/cpuinfo \
174 tests/ppc64-lpar-dedicated/proc/ppc64/lparcfg \
175 tests/ppc64-lpar-dedicated/sbin/dmidecode \
176 tests/ppc64-lpar-dedicated/sbin/uname \
177 tests/ppc64-lpar-dedicated/sbin/virt-what-cpuid-helper \
178 tests/ppc64-lpar-shared/sbin/dmidecode \
179 tests/ppc64-lpar-shared/sbin/uname \
180 tests/ppc64-lpar-shared/sbin/virt-what-cpuid-helper \
181 tests/ppc64-lpar-shared/proc/cpuinfo \
182 tests/ppc64-lpar-shared/proc/self/status \
183 tests/ppc64-lpar-shared/proc/ppc64/lparcfg \
184 tests/ppc64-lpar-shared/sbin/dmidecode \
185 tests/ppc64-lpar-shared/sbin/uname \
186 tests/ppc64-lpar-shared/sbin/virt-what-cpuid-helper \
187 tests/qemu/proc/cpuinfo \
188 tests/qemu/proc/self/status \
189 tests/qemu/sbin/dmidecode \
190 tests/qemu/sbin/uname \
191 tests/qemu/sbin/virt-what-cpuid-helper \
192 tests/qemu-arm/proc/cpuinfo \
193 tests/qemu-arm/proc/device-tree/fw-cfg@9020000/compatible \
194 tests/qemu-arm/proc/self/status \
195 tests/qemu-arm/sbin/dmidecode \
196 tests/qemu-arm/sbin/uname \
197 tests/qemu-arm/sbin/virt-what-cpuid-helper \
198 tests/qemu-smbios/proc/cpuinfo \
199 tests/qemu-smbios/proc/self/status \
200 tests/qemu-smbios/sbin/dmidecode \
201 tests/qemu-smbios/sbin/uname \
202 tests/qemu-smbios/sbin/virt-what-cpuid-helper \
203 tests/qemu-smbios-kvm/proc/cpuinfo \
204 tests/qemu-smbios-kvm/proc/self/status \
205 tests/qemu-smbios-kvm/sbin/dmidecode \
206 tests/qemu-smbios-kvm/sbin/uname \
207 tests/qemu-smbios-kvm/sbin/virt-what-cpuid-helper \
208 tests/rhel5-xen-dom0/proc/cpuinfo \
209 tests/rhel5-xen-dom0/proc/self/status \
210 tests/rhel5-xen-dom0/proc/xen/balloon \
211 tests/rhel5-xen-dom0/proc/xen/capabilities \
212 tests/rhel5-xen-dom0/proc/xen/privcmd \
213 tests/rhel5-xen-dom0/proc/xen/xenbus \
214 tests/rhel5-xen-dom0/proc/xen/xsd_kva \
215 tests/rhel5-xen-dom0/proc/xen/xsd_port \
216 tests/rhel5-xen-dom0/sbin/dmidecode \
217 tests/rhel5-xen-dom0/sbin/uname \
218 tests/rhel5-xen-dom0/sbin/virt-what-cpuid-helper \
219 tests/rhel5-xen-dom0/sys/hypervisor/properties/pagesize \
220 tests/rhel5-xen-dom0/sys/hypervisor/properties/changeset \
221 tests/rhel5-xen-dom0/sys/hypervisor/properties/virtual_start \
222 tests/rhel5-xen-dom0/sys/hypervisor/properties/capabilities \
223 tests/rhel5-xen-dom0/sys/hypervisor/properties/writable_pt \
224 tests/rhel5-xen-dom0/sys/hypervisor/type \
225 tests/rhel5-xen-dom0/sys/hypervisor/vmcoreinfo \
226 tests/rhel5-xen-dom0/sys/hypervisor/version/minor \
227 tests/rhel5-xen-dom0/sys/hypervisor/version/major \
228 tests/rhel5-xen-dom0/sys/hypervisor/version/extra \
229 tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiler \
230 tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiled_by \
231 tests/rhel5-xen-dom0/sys/hypervisor/compilation/compile_date \
232 tests/rhel5-xen-dom0/sys/hypervisor/uuid \
233 tests/rhel5-xen-domU-hvm/proc/cpuinfo \
234 tests/rhel5-xen-domU-hvm/proc/self/status \
235 tests/rhel5-xen-domU-hvm/sbin/dmidecode \
236 tests/rhel5-xen-domU-hvm/sbin/uname \
237 tests/rhel5-xen-domU-hvm/sbin/virt-what-cpuid-helper \
238 tests/rhel5-xen-domU-hvm-ia64/proc/cpuinfo \
239 tests/rhel5-xen-domU-hvm-ia64/proc/self/status \
240 tests/rhel5-xen-domU-hvm-ia64/sbin/dmidecode \
241 tests/rhel5-xen-domU-hvm-ia64/sbin/uname \
242 tests/rhel5-xen-domU-hvm-ia64/sbin/virt-what-cpuid-helper \
243 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/bind \
244 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/unbind \
245 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/bind \
246 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/unbind \
247 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers_probe \
248 tests/rhel5-xen-domU-pv/proc/cpuinfo \
249 tests/rhel5-xen-domU-pv/proc/self/status \
250 tests/rhel5-xen-domU-pv/proc/xen/balloon \
251 tests/rhel5-xen-domU-pv/proc/xen/capabilities \
252 tests/rhel5-xen-domU-pv/proc/xen/privcmd \
253 tests/rhel5-xen-domU-pv/proc/xen/xenbus \
254 tests/rhel5-xen-domU-pv/sbin/dmidecode \
255 tests/rhel5-xen-domU-pv/sbin/uname \
256 tests/rhel5-xen-domU-pv/sbin/virt-what-cpuid-helper \
257 tests/rhel5-xen-domU-pv/sys/hypervisor/properties/pagesize \
258 tests/rhel5-xen-domU-pv/sys/hypervisor/properties/changeset \
259 tests/rhel5-xen-domU-pv/sys/hypervisor/properties/virtual_start \
260 tests/rhel5-xen-domU-pv/sys/hypervisor/properties/capabilities \
261 tests/rhel5-xen-domU-pv/sys/hypervisor/properties/writable_pt \
262 tests/rhel5-xen-domU-pv/sys/hypervisor/type \
263 tests/rhel5-xen-domU-pv/sys/hypervisor/vmcoreinfo \
264 tests/rhel5-xen-domU-pv/sys/hypervisor/version/minor \
265 tests/rhel5-xen-domU-pv/sys/hypervisor/version/major \
266 tests/rhel5-xen-domU-pv/sys/hypervisor/version/extra \
267 tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiler \
268 tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiled_by \
269 tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compile_date \
270 tests/rhel5-xen-domU-pv/sys/hypervisor/uuid \
271 tests/rhev/proc/cpuinfo \
272 tests/rhev/proc/self/status \
273 tests/rhev/sbin/dmidecode \
274 tests/rhev/sbin/uname \
275 tests/rhev/sbin/virt-what-cpuid-helper \
276 tests/vmm/proc/cpuinfo \
277 tests/vmm/sbin/dmidecode \
278 tests/vmm/sbin/uname \
279 tests/vmm/sbin/virt-what-cpuid-helper \
280 tests/xen-arm/proc/cpuinfo \
281 tests/xen-arm/proc/device-tree/hypervisor/compatible \
282 tests/xen-arm/proc/self/status \
283 tests/xen-arm/sbin/dmidecode \
284 tests/xen-arm/sbin/uname \
285 tests/xen-arm/sbin/virt-what-cpuid-helper \
286 tests/zvm/proc/cpuinfo \
287 tests/zvm/proc/self/status \
288 tests/zvm/proc/sysinfo \
289 tests/zvm/sbin/dmidecode \
290 tests/zvm/sbin/uname \
291 tests/zvm/sbin/virt-what-cpuid-helper \
292 $(TESTS)
47 # Check no files are missing from EXTRA_DIST rules, and that all
48 # generated files have been included in the tarball. (Note you must
49 # have done 'make dist')
50 maintainer-check-extra-dist:
51 @zcat $(PACKAGE_NAME)-$(VERSION).tar.gz | tar tf - | sort | \
52 sed 's,^$(PACKAGE_NAME)-$(VERSION)/,,' > tarfiles
53 @git ls-files | \
54 sort > gitfiles
55 @comm -13 tarfiles gitfiles > comm-out
56 @echo Checking for differences between EXTRA_DIST and git ...
57 @cat comm-out
58 @[ ! -s comm-out ]
59 @rm tarfiles gitfiles comm-out
60 @echo PASS: EXTRA_DIST tests
61
62 # Commit everything in the current directory and set the commit
63 # message to the current version number.
64 maintainer-commit:
65 git commit -a -m "Version $(VERSION)."
66
67 # Tag HEAD with the current version.
68 maintainer-tag:
69 git tag -a v$(VERSION) -m "Version $(VERSION)." -f
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
195195 SOURCES = virt-what-cpuid-helper.c virt-what-ia64-xen-rdtsc-test.c
196196 DIST_SOURCES = virt-what-cpuid-helper.c \
197197 virt-what-ia64-xen-rdtsc-test.c
198 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
199 ctags-recursive dvi-recursive html-recursive info-recursive \
200 install-data-recursive install-dvi-recursive \
201 install-exec-recursive install-html-recursive \
202 install-info-recursive install-pdf-recursive \
203 install-ps-recursive install-recursive installcheck-recursive \
204 installdirs-recursive pdf-recursive ps-recursive \
205 tags-recursive uninstall-recursive
198206 am__can_run_installinfo = \
199207 case $$AM_UPDATE_INFO_DIR in \
200208 n|no|NO) false;; \
203211 man1dir = $(mandir)/man1
204212 NROFF = nroff
205213 MANS = $(man_MANS)
206 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
207 $(LISP)config.h.in
214 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
215 distclean-recursive maintainer-clean-recursive
216 am__recursive_targets = \
217 $(RECURSIVE_TARGETS) \
218 $(RECURSIVE_CLEAN_TARGETS) \
219 $(am__extra_recursive_targets)
220 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
221 cscope distdir distdir-am dist dist-all distcheck
222 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
223 config.h.in
208224 # Read a list of newline-separated strings from the standard input,
209225 # and print each of them once, without duplicates. Input order is
210226 # *not* preserved.
224240 ETAGS = etags
225241 CTAGS = ctags
226242 CSCOPE = cscope
227 AM_RECURSIVE_TARGETS = cscope check recheck
228 am__tty_colors_dummy = \
229 mgn= red= grn= lgn= blu= brg= std=; \
230 am__color_tests=no
231 am__tty_colors = { \
232 $(am__tty_colors_dummy); \
233 if test "X$(AM_COLOR_TESTS)" = Xno; then \
234 am__color_tests=no; \
235 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
236 am__color_tests=yes; \
237 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
238 am__color_tests=yes; \
239 fi; \
240 if test $$am__color_tests = yes; then \
241 red=''; \
242 grn=''; \
243 lgn=''; \
244 blu=''; \
245 mgn=''; \
246 brg=''; \
247 std=''; \
248 fi; \
249 }
250 am__recheck_rx = ^[ ]*:recheck:[ ]*
251 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
252 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
253 # A command that, given a newline-separated list of test names on the
254 # standard input, print the name of the tests that are to be re-run
255 # upon "make recheck".
256 am__list_recheck_tests = $(AWK) '{ \
257 recheck = 1; \
258 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
259 { \
260 if (rc < 0) \
261 { \
262 if ((getline line2 < ($$0 ".log")) < 0) \
263 recheck = 0; \
264 break; \
265 } \
266 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
267 { \
268 recheck = 0; \
269 break; \
270 } \
271 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
272 { \
273 break; \
274 } \
275 }; \
276 if (recheck) \
277 print $$0; \
278 close ($$0 ".trs"); \
279 close ($$0 ".log"); \
280 }'
281 # A command that, given a newline-separated list of test names on the
282 # standard input, create the global log from their .trs and .log files.
283 am__create_global_log = $(AWK) ' \
284 function fatal(msg) \
285 { \
286 print "fatal: making $@: " msg | "cat >&2"; \
287 exit 1; \
288 } \
289 function rst_section(header) \
290 { \
291 print header; \
292 len = length(header); \
293 for (i = 1; i <= len; i = i + 1) \
294 printf "="; \
295 printf "\n\n"; \
296 } \
297 { \
298 copy_in_global_log = 1; \
299 global_test_result = "RUN"; \
300 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
301 { \
302 if (rc < 0) \
303 fatal("failed to read from " $$0 ".trs"); \
304 if (line ~ /$(am__global_test_result_rx)/) \
305 { \
306 sub("$(am__global_test_result_rx)", "", line); \
307 sub("[ ]*$$", "", line); \
308 global_test_result = line; \
309 } \
310 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
311 copy_in_global_log = 0; \
312 }; \
313 if (copy_in_global_log) \
314 { \
315 rst_section(global_test_result ": " $$0); \
316 while ((rc = (getline line < ($$0 ".log"))) != 0) \
317 { \
318 if (rc < 0) \
319 fatal("failed to read from " $$0 ".log"); \
320 print line; \
321 }; \
322 printf "\n"; \
323 }; \
324 close ($$0 ".trs"); \
325 close ($$0 ".log"); \
326 }'
327 # Restructured Text title.
328 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
329 # Solaris 10 'make', and several other traditional 'make' implementations,
330 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
331 # by disabling -e (using the XSI extension "set +e") if it's set.
332 am__sh_e_setup = case $$- in *e*) set +e;; esac
333 # Default flags passed to test drivers.
334 am__common_driver_flags = \
335 --color-tests "$$am__color_tests" \
336 --enable-hard-errors "$$am__enable_hard_errors" \
337 --expect-failure "$$am__expect_failure"
338 # To be inserted before the command running the test. Creates the
339 # directory for the log if needed. Stores in $dir the directory
340 # containing $f, in $tst the test, in $log the log. Executes the
341 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
342 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
343 # will run the test scripts (or their associated LOG_COMPILER, if
344 # thy have one).
345 am__check_pre = \
346 $(am__sh_e_setup); \
347 $(am__vpath_adj_setup) $(am__vpath_adj) \
348 $(am__tty_colors); \
349 srcdir=$(srcdir); export srcdir; \
350 case "$@" in \
351 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
352 *) am__odir=.;; \
353 esac; \
354 test "x$$am__odir" = x"." || test -d "$$am__odir" \
355 || $(MKDIR_P) "$$am__odir" || exit $$?; \
356 if test -f "./$$f"; then dir=./; \
357 elif test -f "$$f"; then dir=; \
358 else dir="$(srcdir)/"; fi; \
359 tst=$$dir$$f; log='$@'; \
360 if test -n '$(DISABLE_HARD_ERRORS)'; then \
361 am__enable_hard_errors=no; \
362 else \
363 am__enable_hard_errors=yes; \
364 fi; \
365 case " $(XFAIL_TESTS) " in \
366 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
367 am__expect_failure=yes;; \
368 *) \
369 am__expect_failure=no;; \
370 esac; \
371 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
372 # A shell command to get the names of the tests scripts with any registered
373 # extension removed (i.e., equivalently, the names of the test logs, with
374 # the '.log' extension removed). The result is saved in the shell variable
375 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
376 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
377 # since that might cause problem with VPATH rewrites for suffix-less tests.
378 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
379 am__set_TESTS_bases = \
380 bases='$(TEST_LOGS)'; \
381 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
382 bases=`echo $$bases`
383 RECHECK_LOGS = $(TEST_LOGS)
384 TEST_SUITE_LOG = test-suite.log
385 TEST_EXTENSIONS = @EXEEXT@ .test
386 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
387 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
388 am__set_b = \
389 case '$@' in \
390 */*) \
391 case '$*' in \
392 */*) b='$*';; \
393 *) b=`echo '$@' | sed 's/\.log$$//'`; \
394 esac;; \
395 *) \
396 b='$*';; \
397 esac
398 am__test_logs1 = $(TESTS:=.log)
399 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
400 TEST_LOGS = $(am__test_logs2:.test.log=.log)
401 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
402 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
403 $(TEST_LOG_FLAGS)
243 DIST_SUBDIRS = $(SUBDIRS)
404244 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
405245 $(srcdir)/virt-what.in COPYING README compile config.guess \
406 config.sub depcomp install-sh missing test-driver
246 config.sub depcomp install-sh missing
407247 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
408248 distdir = $(PACKAGE)-$(VERSION)
409249 top_distdir = $(distdir)
414254 || { sleep 5 && rm -rf "$(distdir)"; }; \
415255 else :; fi
416256 am__post_remove_distdir = $(am__remove_distdir)
257 am__relativize = \
258 dir0=`pwd`; \
259 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
260 sed_rest='s,^[^/]*/*,,'; \
261 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
262 sed_butlast='s,/*[^/]*$$,,'; \
263 while test -n "$$dir1"; do \
264 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
265 if test "$$first" != "."; then \
266 if test "$$first" = ".."; then \
267 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
268 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
269 else \
270 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
271 if test "$$first2" = "$$first"; then \
272 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
273 else \
274 dir2="../$$dir2"; \
275 fi; \
276 dir0="$$dir0"/"$$first"; \
277 fi; \
278 fi; \
279 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
280 done; \
281 reldir="$$dir2"
417282 DIST_ARCHIVES = $(distdir).tar.gz
418283 GZIP_ENV = --best
419284 DIST_TARGETS = dist-gzip
512377 srcdir = @srcdir@
513378 sysconfdir = @sysconfdir@
514379 target_alias = @target_alias@
380 tests = @tests@
515381 top_build_prefix = @top_build_prefix@
516382 top_builddir = @top_builddir@
517383 top_srcdir = @top_srcdir@
518 CLEANFILES = virt-what $(am__append_2)
519384 AM_CPPFLAGS = -Wall
385 CLEANFILES = virt-what *~ $(am__append_2)
386 EXTRA_DIST = .gitignore virt-what.in virt-what.pod
387 SUBDIRS = . tests
520388 sbin_SCRIPTS = virt-what
521389 @HAVE_POD2MAN_TRUE@man_MANS = virt-what.1
522 TESTS = \
523 tests/test-aws-baremetal-x86.sh \
524 tests/test-aws-kvm-x86.sh \
525 tests/test-aws-xen-x86.sh \
526 tests/test-baremetal.sh \
527 tests/test-bhyve.sh \
528 tests/test-docker.sh \
529 tests/test-esx4.1.sh \
530 tests/test-hyperv.sh \
531 tests/test-kvm.sh \
532 tests/test-kvm-explicit-cpu.sh \
533 tests/test-linux-vserver.sh \
534 tests/test-ldoms.sh \
535 tests/test-lkvm.sh \
536 tests/test-lkvm-arm.sh \
537 tests/test-lxc.sh \
538 tests/test-lx86.sh \
539 tests/test-parallels-desktop.sh \
540 tests/test-ppc64-baremetal.sh \
541 tests/test-ppc64-kvm.sh \
542 tests/test-ppc64-lpar-dedicated.sh \
543 tests/test-ppc64-lpar-shared.sh \
544 tests/test-qemu.sh \
545 tests/test-qemu-arm.sh \
546 tests/test-qemu-smbios.sh \
547 tests/test-qemu-smbios-kvm.sh \
548 tests/test-rhel5-xen-dom0.sh \
549 tests/test-rhel5-xen-domU-hvm.sh \
550 tests/test-rhel5-xen-domU-hvm-ia64.sh \
551 tests/test-rhel5-xen-domU-pv.sh \
552 tests/test-rhev.sh \
553 tests/test-vmm.sh \
554 tests/test-xen-arm.sh \
555 tests/test-zvm.sh
556
557 EXTRA_DIST = \
558 virt-what.in \
559 virt-what.pod \
560 tests/aws-baremetal-x86/proc/cpuinfo \
561 tests/aws-baremetal-x86/proc/self/status \
562 tests/aws-baremetal-x86/sbin/dmidecode \
563 tests/aws-baremetal-x86/sbin/uname \
564 tests/aws-baremetal-x86/sbin/virt-what-cpuid-helper \
565 tests/aws-kvm-x86/proc/cpuinfo \
566 tests/aws-kvm-x86/proc/self/status \
567 tests/aws-kvm-x86/sbin/dmidecode \
568 tests/aws-kvm-x86/sbin/uname \
569 tests/aws-kvm-x86/sbin/virt-what-cpuid-helper \
570 tests/aws-xen-x86/proc/cpuinfo \
571 tests/aws-xen-x86/proc/self/status \
572 tests/aws-xen-x86/sbin/dmidecode \
573 tests/aws-xen-x86/sbin/uname \
574 tests/aws-xen-x86/sbin/virt-what-cpuid-helper \
575 tests/baremetal/proc/cpuinfo \
576 tests/baremetal/proc/self/status \
577 tests/baremetal/sbin/dmidecode \
578 tests/baremetal/sbin/uname \
579 tests/baremetal/sbin/virt-what-cpuid-helper \
580 tests/bhyve/proc/cpuinfo \
581 tests/bhyve/sbin/dmidecode \
582 tests/bhyve/sbin/uname \
583 tests/bhyve/sbin/virt-what-cpuid-helper \
584 tests/docker/.dockerinit \
585 tests/docker/proc/cpuinfo \
586 tests/docker/proc/self/status \
587 tests/docker/sbin/dmidecode \
588 tests/docker/sbin/uname \
589 tests/docker/sbin/virt-what-cpuid-helper \
590 tests/esx4.1/proc/cpuinfo \
591 tests/esx4.1/proc/self/status \
592 tests/esx4.1/sbin/dmidecode \
593 tests/esx4.1/sbin/uname \
594 tests/esx4.1/sbin/virt-what-cpuid-helper \
595 tests/hyperv/proc/cpuinfo \
596 tests/hyperv/proc/self/status \
597 tests/hyperv/sbin/dmidecode \
598 tests/hyperv/sbin/uname \
599 tests/hyperv/sbin/virt-what-cpuid-helper \
600 tests/kvm/proc/cpuinfo \
601 tests/kvm/proc/self/status \
602 tests/kvm/sbin/dmidecode \
603 tests/kvm/sbin/uname \
604 tests/kvm/sbin/virt-what-cpuid-helper \
605 tests/kvm-explicit-cpu/proc/cpuinfo \
606 tests/kvm-explicit-cpu/proc/self/status \
607 tests/kvm-explicit-cpu/sbin/dmidecode \
608 tests/kvm-explicit-cpu/sbin/uname \
609 tests/kvm-explicit-cpu/sbin/virt-what-cpuid-helper \
610 tests/ldoms/dev/mdesc \
611 tests/ldoms/proc/cpuinfo \
612 tests/ldoms/sbin/uname \
613 tests/ldoms/sbin/virt-what-cpuid-helper \
614 tests/linux-vserver/proc/cpuinfo \
615 tests/linux-vserver/proc/self/status \
616 tests/linux-vserver/sbin/dmidecode \
617 tests/linux-vserver/sbin/uname \
618 tests/linux-vserver/sbin/virt-what-cpuid-helper \
619 tests/lkvm/proc/cpuinfo \
620 tests/lkvm/proc/self/status \
621 tests/lkvm/sbin/dmidecode \
622 tests/lkvm/sbin/uname \
623 tests/lkvm/sbin/virt-what-cpuid-helper \
624 tests/lkvm-arm/proc/cpuinfo \
625 tests/lkvm-arm/proc/device-tree/compatible \
626 tests/lkvm-arm/proc/self/status \
627 tests/lkvm-arm/sbin/dmidecode \
628 tests/lkvm-arm/sbin/uname \
629 tests/lkvm-arm/sbin/virt-what-cpuid-helper \
630 tests/lxc/proc/1/environ \
631 tests/lxc/proc/cpuinfo \
632 tests/lxc/proc/self/status \
633 tests/lxc/sbin/dmidecode \
634 tests/lxc/sbin/uname \
635 tests/lxc/sbin/virt-what-cpuid-helper \
636 tests/lx86/proc/cpuinfo \
637 tests/lx86/proc/self/status \
638 tests/lx86/sbin/dmidecode \
639 tests/lx86/sbin/uname \
640 tests/lx86/sbin/virt-what-cpuid-helper \
641 tests/parallels-desktop/proc/cpuinfo \
642 tests/parallels-desktop/proc/self/status \
643 tests/parallels-desktop/sbin/dmidecode \
644 tests/parallels-desktop/sbin/uname \
645 tests/parallels-desktop/sbin/virt-what-cpuid-helper \
646 tests/ppc64-baremetal/proc/cpuinfo \
647 tests/ppc64-baremetal/sbin/dmidecode \
648 tests/ppc64-baremetal/sbin/uname \
649 tests/ppc64-baremetal/sbin/virt-what-cpuid-helper \
650 tests/ppc64-kvm/proc/cpuinfo \
651 tests/ppc64-kvm/proc/self/status \
652 tests/ppc64-kvm/sbin/dmidecode \
653 tests/ppc64-kvm/sbin/uname \
654 tests/ppc64-kvm/sbin/virt-what-cpuid-helper \
655 tests/ppc64-lpar-dedicated/proc/cpuinfo \
656 tests/ppc64-lpar-dedicated/proc/ppc64/lparcfg \
657 tests/ppc64-lpar-dedicated/sbin/dmidecode \
658 tests/ppc64-lpar-dedicated/sbin/uname \
659 tests/ppc64-lpar-dedicated/sbin/virt-what-cpuid-helper \
660 tests/ppc64-lpar-shared/sbin/dmidecode \
661 tests/ppc64-lpar-shared/sbin/uname \
662 tests/ppc64-lpar-shared/sbin/virt-what-cpuid-helper \
663 tests/ppc64-lpar-shared/proc/cpuinfo \
664 tests/ppc64-lpar-shared/proc/self/status \
665 tests/ppc64-lpar-shared/proc/ppc64/lparcfg \
666 tests/ppc64-lpar-shared/sbin/dmidecode \
667 tests/ppc64-lpar-shared/sbin/uname \
668 tests/ppc64-lpar-shared/sbin/virt-what-cpuid-helper \
669 tests/qemu/proc/cpuinfo \
670 tests/qemu/proc/self/status \
671 tests/qemu/sbin/dmidecode \
672 tests/qemu/sbin/uname \
673 tests/qemu/sbin/virt-what-cpuid-helper \
674 tests/qemu-arm/proc/cpuinfo \
675 tests/qemu-arm/proc/device-tree/fw-cfg@9020000/compatible \
676 tests/qemu-arm/proc/self/status \
677 tests/qemu-arm/sbin/dmidecode \
678 tests/qemu-arm/sbin/uname \
679 tests/qemu-arm/sbin/virt-what-cpuid-helper \
680 tests/qemu-smbios/proc/cpuinfo \
681 tests/qemu-smbios/proc/self/status \
682 tests/qemu-smbios/sbin/dmidecode \
683 tests/qemu-smbios/sbin/uname \
684 tests/qemu-smbios/sbin/virt-what-cpuid-helper \
685 tests/qemu-smbios-kvm/proc/cpuinfo \
686 tests/qemu-smbios-kvm/proc/self/status \
687 tests/qemu-smbios-kvm/sbin/dmidecode \
688 tests/qemu-smbios-kvm/sbin/uname \
689 tests/qemu-smbios-kvm/sbin/virt-what-cpuid-helper \
690 tests/rhel5-xen-dom0/proc/cpuinfo \
691 tests/rhel5-xen-dom0/proc/self/status \
692 tests/rhel5-xen-dom0/proc/xen/balloon \
693 tests/rhel5-xen-dom0/proc/xen/capabilities \
694 tests/rhel5-xen-dom0/proc/xen/privcmd \
695 tests/rhel5-xen-dom0/proc/xen/xenbus \
696 tests/rhel5-xen-dom0/proc/xen/xsd_kva \
697 tests/rhel5-xen-dom0/proc/xen/xsd_port \
698 tests/rhel5-xen-dom0/sbin/dmidecode \
699 tests/rhel5-xen-dom0/sbin/uname \
700 tests/rhel5-xen-dom0/sbin/virt-what-cpuid-helper \
701 tests/rhel5-xen-dom0/sys/hypervisor/properties/pagesize \
702 tests/rhel5-xen-dom0/sys/hypervisor/properties/changeset \
703 tests/rhel5-xen-dom0/sys/hypervisor/properties/virtual_start \
704 tests/rhel5-xen-dom0/sys/hypervisor/properties/capabilities \
705 tests/rhel5-xen-dom0/sys/hypervisor/properties/writable_pt \
706 tests/rhel5-xen-dom0/sys/hypervisor/type \
707 tests/rhel5-xen-dom0/sys/hypervisor/vmcoreinfo \
708 tests/rhel5-xen-dom0/sys/hypervisor/version/minor \
709 tests/rhel5-xen-dom0/sys/hypervisor/version/major \
710 tests/rhel5-xen-dom0/sys/hypervisor/version/extra \
711 tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiler \
712 tests/rhel5-xen-dom0/sys/hypervisor/compilation/compiled_by \
713 tests/rhel5-xen-dom0/sys/hypervisor/compilation/compile_date \
714 tests/rhel5-xen-dom0/sys/hypervisor/uuid \
715 tests/rhel5-xen-domU-hvm/proc/cpuinfo \
716 tests/rhel5-xen-domU-hvm/proc/self/status \
717 tests/rhel5-xen-domU-hvm/sbin/dmidecode \
718 tests/rhel5-xen-domU-hvm/sbin/uname \
719 tests/rhel5-xen-domU-hvm/sbin/virt-what-cpuid-helper \
720 tests/rhel5-xen-domU-hvm-ia64/proc/cpuinfo \
721 tests/rhel5-xen-domU-hvm-ia64/proc/self/status \
722 tests/rhel5-xen-domU-hvm-ia64/sbin/dmidecode \
723 tests/rhel5-xen-domU-hvm-ia64/sbin/uname \
724 tests/rhel5-xen-domU-hvm-ia64/sbin/virt-what-cpuid-helper \
725 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/bind \
726 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/unbind \
727 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/bind \
728 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/unbind \
729 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers_probe \
730 tests/rhel5-xen-domU-pv/proc/cpuinfo \
731 tests/rhel5-xen-domU-pv/proc/self/status \
732 tests/rhel5-xen-domU-pv/proc/xen/balloon \
733 tests/rhel5-xen-domU-pv/proc/xen/capabilities \
734 tests/rhel5-xen-domU-pv/proc/xen/privcmd \
735 tests/rhel5-xen-domU-pv/proc/xen/xenbus \
736 tests/rhel5-xen-domU-pv/sbin/dmidecode \
737 tests/rhel5-xen-domU-pv/sbin/uname \
738 tests/rhel5-xen-domU-pv/sbin/virt-what-cpuid-helper \
739 tests/rhel5-xen-domU-pv/sys/hypervisor/properties/pagesize \
740 tests/rhel5-xen-domU-pv/sys/hypervisor/properties/changeset \
741 tests/rhel5-xen-domU-pv/sys/hypervisor/properties/virtual_start \
742 tests/rhel5-xen-domU-pv/sys/hypervisor/properties/capabilities \
743 tests/rhel5-xen-domU-pv/sys/hypervisor/properties/writable_pt \
744 tests/rhel5-xen-domU-pv/sys/hypervisor/type \
745 tests/rhel5-xen-domU-pv/sys/hypervisor/vmcoreinfo \
746 tests/rhel5-xen-domU-pv/sys/hypervisor/version/minor \
747 tests/rhel5-xen-domU-pv/sys/hypervisor/version/major \
748 tests/rhel5-xen-domU-pv/sys/hypervisor/version/extra \
749 tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiler \
750 tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compiled_by \
751 tests/rhel5-xen-domU-pv/sys/hypervisor/compilation/compile_date \
752 tests/rhel5-xen-domU-pv/sys/hypervisor/uuid \
753 tests/rhev/proc/cpuinfo \
754 tests/rhev/proc/self/status \
755 tests/rhev/sbin/dmidecode \
756 tests/rhev/sbin/uname \
757 tests/rhev/sbin/virt-what-cpuid-helper \
758 tests/vmm/proc/cpuinfo \
759 tests/vmm/sbin/dmidecode \
760 tests/vmm/sbin/uname \
761 tests/vmm/sbin/virt-what-cpuid-helper \
762 tests/xen-arm/proc/cpuinfo \
763 tests/xen-arm/proc/device-tree/hypervisor/compatible \
764 tests/xen-arm/proc/self/status \
765 tests/xen-arm/sbin/dmidecode \
766 tests/xen-arm/sbin/uname \
767 tests/xen-arm/sbin/virt-what-cpuid-helper \
768 tests/zvm/proc/cpuinfo \
769 tests/zvm/proc/self/status \
770 tests/zvm/proc/sysinfo \
771 tests/zvm/sbin/dmidecode \
772 tests/zvm/sbin/uname \
773 tests/zvm/sbin/virt-what-cpuid-helper \
774 $(TESTS)
775
776390 all: config.h
777 $(MAKE) $(AM_MAKEFLAGS) all-am
391 $(MAKE) $(AM_MAKEFLAGS) all-recursive
778392
779393 .SUFFIXES:
780 .SUFFIXES: .c .log .o .obj .test .test$(EXEEXT) .trs
394 .SUFFIXES: .c .o .obj
781395 am--refresh: Makefile
782396 @:
783397 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
986600 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
987601 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
988602
603 # This directory's subdirectories are mostly independent; you can cd
604 # into them and run 'make' without going through this Makefile.
605 # To change the values of 'make' variables: instead of editing Makefiles,
606 # (1) if the variable is set in 'config.status', edit 'config.status'
607 # (which will cause the Makefiles to be regenerated when you run 'make');
608 # (2) otherwise, pass the desired values on the 'make' command line.
609 $(am__recursive_targets):
610 @fail=; \
611 if $(am__make_keepgoing); then \
612 failcom='fail=yes'; \
613 else \
614 failcom='exit 1'; \
615 fi; \
616 dot_seen=no; \
617 target=`echo $@ | sed s/-recursive//`; \
618 case "$@" in \
619 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
620 *) list='$(SUBDIRS)' ;; \
621 esac; \
622 for subdir in $$list; do \
623 echo "Making $$target in $$subdir"; \
624 if test "$$subdir" = "."; then \
625 dot_seen=yes; \
626 local_target="$$target-am"; \
627 else \
628 local_target="$$target"; \
629 fi; \
630 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
631 || eval $$failcom; \
632 done; \
633 if test "$$dot_seen" = "no"; then \
634 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
635 fi; test -z "$$fail"
636
989637 ID: $(am__tagged_files)
990638 $(am__define_uniq_tagged_files); mkid -fID $$unique
991 tags: tags-am
639 tags: tags-recursive
992640 TAGS: tags
993641
994642 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
995643 set x; \
996644 here=`pwd`; \
645 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
646 include_option=--etags-include; \
647 empty_fix=.; \
648 else \
649 include_option=--include; \
650 empty_fix=; \
651 fi; \
652 list='$(SUBDIRS)'; for subdir in $$list; do \
653 if test "$$subdir" = .; then :; else \
654 test ! -f $$subdir/TAGS || \
655 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
656 fi; \
657 done; \
997658 $(am__define_uniq_tagged_files); \
998659 shift; \
999660 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
1006667 $$unique; \
1007668 fi; \
1008669 fi
1009 ctags: ctags-am
670 ctags: ctags-recursive
1010671
1011672 CTAGS: ctags
1012673 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
1025686 clean-cscope:
1026687 -rm -f cscope.files
1027688 cscope.files: clean-cscope cscopelist
1028 cscopelist: cscopelist-am
689 cscopelist: cscopelist-recursive
1029690
1030691 cscopelist-am: $(am__tagged_files)
1031692 list='$(am__tagged_files)'; \
1044705 distclean-tags:
1045706 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1046707 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
1047
1048 # Recover from deleted '.trs' file; this should ensure that
1049 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
1050 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
1051 # to avoid problems with "make -n".
1052 .log.trs:
1053 rm -f $< $@
1054 $(MAKE) $(AM_MAKEFLAGS) $<
1055
1056 # Leading 'am--fnord' is there to ensure the list of targets does not
1057 # expand to empty, as could happen e.g. with make check TESTS=''.
1058 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
1059 am--force-recheck:
1060 @:
1061
1062 $(TEST_SUITE_LOG): $(TEST_LOGS)
1063 @$(am__set_TESTS_bases); \
1064 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
1065 redo_bases=`for i in $$bases; do \
1066 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
1067 done`; \
1068 if test -n "$$redo_bases"; then \
1069 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
1070 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
1071 if $(am__make_dryrun); then :; else \
1072 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
1073 fi; \
1074 fi; \
1075 if test -n "$$am__remaking_logs"; then \
1076 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
1077 "recursion detected" >&2; \
1078 elif test -n "$$redo_logs"; then \
1079 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
1080 fi; \
1081 if $(am__make_dryrun); then :; else \
1082 st=0; \
1083 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
1084 for i in $$redo_bases; do \
1085 test -f $$i.trs && test -r $$i.trs \
1086 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
1087 test -f $$i.log && test -r $$i.log \
1088 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
1089 done; \
1090 test $$st -eq 0 || exit 1; \
1091 fi
1092 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
1093 ws='[ ]'; \
1094 results=`for b in $$bases; do echo $$b.trs; done`; \
1095 test -n "$$results" || results=/dev/null; \
1096 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
1097 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
1098 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
1099 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
1100 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
1101 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
1102 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
1103 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
1104 success=true; \
1105 else \
1106 success=false; \
1107 fi; \
1108 br='==================='; br=$$br$$br$$br$$br; \
1109 result_count () \
1110 { \
1111 if test x"$$1" = x"--maybe-color"; then \
1112 maybe_colorize=yes; \
1113 elif test x"$$1" = x"--no-color"; then \
1114 maybe_colorize=no; \
1115 else \
1116 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
1117 fi; \
1118 shift; \
1119 desc=$$1 count=$$2; \
1120 if test $$maybe_colorize = yes && test $$count -gt 0; then \
1121 color_start=$$3 color_end=$$std; \
1122 else \
1123 color_start= color_end=; \
1124 fi; \
1125 echo "$${color_start}# $$desc $$count$${color_end}"; \
1126 }; \
1127 create_testsuite_report () \
1128 { \
1129 result_count $$1 "TOTAL:" $$all "$$brg"; \
1130 result_count $$1 "PASS: " $$pass "$$grn"; \
1131 result_count $$1 "SKIP: " $$skip "$$blu"; \
1132 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
1133 result_count $$1 "FAIL: " $$fail "$$red"; \
1134 result_count $$1 "XPASS:" $$xpass "$$red"; \
1135 result_count $$1 "ERROR:" $$error "$$mgn"; \
1136 }; \
1137 { \
1138 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
1139 $(am__rst_title); \
1140 create_testsuite_report --no-color; \
1141 echo; \
1142 echo ".. contents:: :depth: 2"; \
1143 echo; \
1144 for b in $$bases; do echo $$b; done \
1145 | $(am__create_global_log); \
1146 } >$(TEST_SUITE_LOG).tmp || exit 1; \
1147 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
1148 if $$success; then \
1149 col="$$grn"; \
1150 else \
1151 col="$$red"; \
1152 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
1153 fi; \
1154 echo "$${col}$$br$${std}"; \
1155 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
1156 echo "$${col}$$br$${std}"; \
1157 create_testsuite_report --maybe-color; \
1158 echo "$$col$$br$$std"; \
1159 if $$success; then :; else \
1160 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
1161 if test -n "$(PACKAGE_BUGREPORT)"; then \
1162 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
1163 fi; \
1164 echo "$$col$$br$$std"; \
1165 fi; \
1166 $$success || exit 1
1167
1168 check-TESTS:
1169 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
1170 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
1171 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1172 @set +e; $(am__set_TESTS_bases); \
1173 log_list=`for i in $$bases; do echo $$i.log; done`; \
1174 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
1175 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
1176 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
1177 exit $$?;
1178 recheck: all
1179 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1180 @set +e; $(am__set_TESTS_bases); \
1181 bases=`for i in $$bases; do echo $$i; done \
1182 | $(am__list_recheck_tests)` || exit 1; \
1183 log_list=`for i in $$bases; do echo $$i.log; done`; \
1184 log_list=`echo $$log_list`; \
1185 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
1186 am__force_recheck=am--force-recheck \
1187 TEST_LOGS="$$log_list"; \
1188 exit $$?
1189 tests/test-aws-baremetal-x86.sh.log: tests/test-aws-baremetal-x86.sh
1190 @p='tests/test-aws-baremetal-x86.sh'; \
1191 b='tests/test-aws-baremetal-x86.sh'; \
1192 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1193 --log-file $$b.log --trs-file $$b.trs \
1194 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1195 "$$tst" $(AM_TESTS_FD_REDIRECT)
1196 tests/test-aws-kvm-x86.sh.log: tests/test-aws-kvm-x86.sh
1197 @p='tests/test-aws-kvm-x86.sh'; \
1198 b='tests/test-aws-kvm-x86.sh'; \
1199 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1200 --log-file $$b.log --trs-file $$b.trs \
1201 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1202 "$$tst" $(AM_TESTS_FD_REDIRECT)
1203 tests/test-aws-xen-x86.sh.log: tests/test-aws-xen-x86.sh
1204 @p='tests/test-aws-xen-x86.sh'; \
1205 b='tests/test-aws-xen-x86.sh'; \
1206 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1207 --log-file $$b.log --trs-file $$b.trs \
1208 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1209 "$$tst" $(AM_TESTS_FD_REDIRECT)
1210 tests/test-baremetal.sh.log: tests/test-baremetal.sh
1211 @p='tests/test-baremetal.sh'; \
1212 b='tests/test-baremetal.sh'; \
1213 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1214 --log-file $$b.log --trs-file $$b.trs \
1215 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1216 "$$tst" $(AM_TESTS_FD_REDIRECT)
1217 tests/test-bhyve.sh.log: tests/test-bhyve.sh
1218 @p='tests/test-bhyve.sh'; \
1219 b='tests/test-bhyve.sh'; \
1220 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1221 --log-file $$b.log --trs-file $$b.trs \
1222 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1223 "$$tst" $(AM_TESTS_FD_REDIRECT)
1224 tests/test-docker.sh.log: tests/test-docker.sh
1225 @p='tests/test-docker.sh'; \
1226 b='tests/test-docker.sh'; \
1227 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1228 --log-file $$b.log --trs-file $$b.trs \
1229 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1230 "$$tst" $(AM_TESTS_FD_REDIRECT)
1231 tests/test-esx4.1.sh.log: tests/test-esx4.1.sh
1232 @p='tests/test-esx4.1.sh'; \
1233 b='tests/test-esx4.1.sh'; \
1234 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1235 --log-file $$b.log --trs-file $$b.trs \
1236 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1237 "$$tst" $(AM_TESTS_FD_REDIRECT)
1238 tests/test-hyperv.sh.log: tests/test-hyperv.sh
1239 @p='tests/test-hyperv.sh'; \
1240 b='tests/test-hyperv.sh'; \
1241 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1242 --log-file $$b.log --trs-file $$b.trs \
1243 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1244 "$$tst" $(AM_TESTS_FD_REDIRECT)
1245 tests/test-kvm.sh.log: tests/test-kvm.sh
1246 @p='tests/test-kvm.sh'; \
1247 b='tests/test-kvm.sh'; \
1248 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1249 --log-file $$b.log --trs-file $$b.trs \
1250 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1251 "$$tst" $(AM_TESTS_FD_REDIRECT)
1252 tests/test-kvm-explicit-cpu.sh.log: tests/test-kvm-explicit-cpu.sh
1253 @p='tests/test-kvm-explicit-cpu.sh'; \
1254 b='tests/test-kvm-explicit-cpu.sh'; \
1255 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1256 --log-file $$b.log --trs-file $$b.trs \
1257 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1258 "$$tst" $(AM_TESTS_FD_REDIRECT)
1259 tests/test-linux-vserver.sh.log: tests/test-linux-vserver.sh
1260 @p='tests/test-linux-vserver.sh'; \
1261 b='tests/test-linux-vserver.sh'; \
1262 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1263 --log-file $$b.log --trs-file $$b.trs \
1264 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1265 "$$tst" $(AM_TESTS_FD_REDIRECT)
1266 tests/test-ldoms.sh.log: tests/test-ldoms.sh
1267 @p='tests/test-ldoms.sh'; \
1268 b='tests/test-ldoms.sh'; \
1269 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1270 --log-file $$b.log --trs-file $$b.trs \
1271 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1272 "$$tst" $(AM_TESTS_FD_REDIRECT)
1273 tests/test-lkvm.sh.log: tests/test-lkvm.sh
1274 @p='tests/test-lkvm.sh'; \
1275 b='tests/test-lkvm.sh'; \
1276 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1277 --log-file $$b.log --trs-file $$b.trs \
1278 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1279 "$$tst" $(AM_TESTS_FD_REDIRECT)
1280 tests/test-lkvm-arm.sh.log: tests/test-lkvm-arm.sh
1281 @p='tests/test-lkvm-arm.sh'; \
1282 b='tests/test-lkvm-arm.sh'; \
1283 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1284 --log-file $$b.log --trs-file $$b.trs \
1285 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1286 "$$tst" $(AM_TESTS_FD_REDIRECT)
1287 tests/test-lxc.sh.log: tests/test-lxc.sh
1288 @p='tests/test-lxc.sh'; \
1289 b='tests/test-lxc.sh'; \
1290 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1291 --log-file $$b.log --trs-file $$b.trs \
1292 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1293 "$$tst" $(AM_TESTS_FD_REDIRECT)
1294 tests/test-lx86.sh.log: tests/test-lx86.sh
1295 @p='tests/test-lx86.sh'; \
1296 b='tests/test-lx86.sh'; \
1297 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1298 --log-file $$b.log --trs-file $$b.trs \
1299 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1300 "$$tst" $(AM_TESTS_FD_REDIRECT)
1301 tests/test-parallels-desktop.sh.log: tests/test-parallels-desktop.sh
1302 @p='tests/test-parallels-desktop.sh'; \
1303 b='tests/test-parallels-desktop.sh'; \
1304 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1305 --log-file $$b.log --trs-file $$b.trs \
1306 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1307 "$$tst" $(AM_TESTS_FD_REDIRECT)
1308 tests/test-ppc64-baremetal.sh.log: tests/test-ppc64-baremetal.sh
1309 @p='tests/test-ppc64-baremetal.sh'; \
1310 b='tests/test-ppc64-baremetal.sh'; \
1311 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1312 --log-file $$b.log --trs-file $$b.trs \
1313 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1314 "$$tst" $(AM_TESTS_FD_REDIRECT)
1315 tests/test-ppc64-kvm.sh.log: tests/test-ppc64-kvm.sh
1316 @p='tests/test-ppc64-kvm.sh'; \
1317 b='tests/test-ppc64-kvm.sh'; \
1318 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1319 --log-file $$b.log --trs-file $$b.trs \
1320 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1321 "$$tst" $(AM_TESTS_FD_REDIRECT)
1322 tests/test-ppc64-lpar-dedicated.sh.log: tests/test-ppc64-lpar-dedicated.sh
1323 @p='tests/test-ppc64-lpar-dedicated.sh'; \
1324 b='tests/test-ppc64-lpar-dedicated.sh'; \
1325 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1326 --log-file $$b.log --trs-file $$b.trs \
1327 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1328 "$$tst" $(AM_TESTS_FD_REDIRECT)
1329 tests/test-ppc64-lpar-shared.sh.log: tests/test-ppc64-lpar-shared.sh
1330 @p='tests/test-ppc64-lpar-shared.sh'; \
1331 b='tests/test-ppc64-lpar-shared.sh'; \
1332 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1333 --log-file $$b.log --trs-file $$b.trs \
1334 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1335 "$$tst" $(AM_TESTS_FD_REDIRECT)
1336 tests/test-qemu.sh.log: tests/test-qemu.sh
1337 @p='tests/test-qemu.sh'; \
1338 b='tests/test-qemu.sh'; \
1339 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1340 --log-file $$b.log --trs-file $$b.trs \
1341 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1342 "$$tst" $(AM_TESTS_FD_REDIRECT)
1343 tests/test-qemu-arm.sh.log: tests/test-qemu-arm.sh
1344 @p='tests/test-qemu-arm.sh'; \
1345 b='tests/test-qemu-arm.sh'; \
1346 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1347 --log-file $$b.log --trs-file $$b.trs \
1348 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1349 "$$tst" $(AM_TESTS_FD_REDIRECT)
1350 tests/test-qemu-smbios.sh.log: tests/test-qemu-smbios.sh
1351 @p='tests/test-qemu-smbios.sh'; \
1352 b='tests/test-qemu-smbios.sh'; \
1353 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1354 --log-file $$b.log --trs-file $$b.trs \
1355 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1356 "$$tst" $(AM_TESTS_FD_REDIRECT)
1357 tests/test-qemu-smbios-kvm.sh.log: tests/test-qemu-smbios-kvm.sh
1358 @p='tests/test-qemu-smbios-kvm.sh'; \
1359 b='tests/test-qemu-smbios-kvm.sh'; \
1360 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1361 --log-file $$b.log --trs-file $$b.trs \
1362 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1363 "$$tst" $(AM_TESTS_FD_REDIRECT)
1364 tests/test-rhel5-xen-dom0.sh.log: tests/test-rhel5-xen-dom0.sh
1365 @p='tests/test-rhel5-xen-dom0.sh'; \
1366 b='tests/test-rhel5-xen-dom0.sh'; \
1367 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1368 --log-file $$b.log --trs-file $$b.trs \
1369 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1370 "$$tst" $(AM_TESTS_FD_REDIRECT)
1371 tests/test-rhel5-xen-domU-hvm.sh.log: tests/test-rhel5-xen-domU-hvm.sh
1372 @p='tests/test-rhel5-xen-domU-hvm.sh'; \
1373 b='tests/test-rhel5-xen-domU-hvm.sh'; \
1374 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1375 --log-file $$b.log --trs-file $$b.trs \
1376 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1377 "$$tst" $(AM_TESTS_FD_REDIRECT)
1378 tests/test-rhel5-xen-domU-hvm-ia64.sh.log: tests/test-rhel5-xen-domU-hvm-ia64.sh
1379 @p='tests/test-rhel5-xen-domU-hvm-ia64.sh'; \
1380 b='tests/test-rhel5-xen-domU-hvm-ia64.sh'; \
1381 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1382 --log-file $$b.log --trs-file $$b.trs \
1383 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1384 "$$tst" $(AM_TESTS_FD_REDIRECT)
1385 tests/test-rhel5-xen-domU-pv.sh.log: tests/test-rhel5-xen-domU-pv.sh
1386 @p='tests/test-rhel5-xen-domU-pv.sh'; \
1387 b='tests/test-rhel5-xen-domU-pv.sh'; \
1388 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1389 --log-file $$b.log --trs-file $$b.trs \
1390 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1391 "$$tst" $(AM_TESTS_FD_REDIRECT)
1392 tests/test-rhev.sh.log: tests/test-rhev.sh
1393 @p='tests/test-rhev.sh'; \
1394 b='tests/test-rhev.sh'; \
1395 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1396 --log-file $$b.log --trs-file $$b.trs \
1397 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1398 "$$tst" $(AM_TESTS_FD_REDIRECT)
1399 tests/test-vmm.sh.log: tests/test-vmm.sh
1400 @p='tests/test-vmm.sh'; \
1401 b='tests/test-vmm.sh'; \
1402 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1403 --log-file $$b.log --trs-file $$b.trs \
1404 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1405 "$$tst" $(AM_TESTS_FD_REDIRECT)
1406 tests/test-xen-arm.sh.log: tests/test-xen-arm.sh
1407 @p='tests/test-xen-arm.sh'; \
1408 b='tests/test-xen-arm.sh'; \
1409 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1410 --log-file $$b.log --trs-file $$b.trs \
1411 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1412 "$$tst" $(AM_TESTS_FD_REDIRECT)
1413 tests/test-zvm.sh.log: tests/test-zvm.sh
1414 @p='tests/test-zvm.sh'; \
1415 b='tests/test-zvm.sh'; \
1416 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1417 --log-file $$b.log --trs-file $$b.trs \
1418 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1419 "$$tst" $(AM_TESTS_FD_REDIRECT)
1420 .test.log:
1421 @p='$<'; \
1422 $(am__set_b); \
1423 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
1424 --log-file $$b.log --trs-file $$b.trs \
1425 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
1426 "$$tst" $(AM_TESTS_FD_REDIRECT)
1427 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
1428 @am__EXEEXT_TRUE@ @p='$<'; \
1429 @am__EXEEXT_TRUE@ $(am__set_b); \
1430 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
1431 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
1432 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
1433 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
1434708
1435709 distdir: $(BUILT_SOURCES)
1436710 $(MAKE) $(AM_MAKEFLAGS) distdir-am
1467741 || exit 1; \
1468742 fi; \
1469743 done
744 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
745 if test "$$subdir" = .; then :; else \
746 $(am__make_dryrun) \
747 || test -d "$(distdir)/$$subdir" \
748 || $(MKDIR_P) "$(distdir)/$$subdir" \
749 || exit 1; \
750 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
751 $(am__relativize); \
752 new_distdir=$$reldir; \
753 dir1=$$subdir; dir2="$(top_distdir)"; \
754 $(am__relativize); \
755 new_top_distdir=$$reldir; \
756 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
757 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
758 ($(am__cd) $$subdir && \
759 $(MAKE) $(AM_MAKEFLAGS) \
760 top_distdir="$$new_top_distdir" \
761 distdir="$$new_distdir" \
762 am__remove_distdir=: \
763 am__skip_length_check=: \
764 am__skip_mode_fix=: \
765 distdir) \
766 || exit 1; \
767 fi; \
768 done
1470769 -test -n "$(am__skip_mode_fix)" \
1471770 || find "$(distdir)" -type d ! -perm -755 \
1472771 -exec chmod u+rwx,go+rx {} \; -o \
1488787
1489788 dist-xz: distdir
1490789 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
790 $(am__post_remove_distdir)
791
792 dist-zstd: distdir
793 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
1491794 $(am__post_remove_distdir)
1492795
1493796 dist-tarZ: distdir
1532835 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
1533836 *.zip*) \
1534837 unzip $(distdir).zip ;;\
838 *.tar.zst*) \
839 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
1535840 esac
1536841 chmod -R a-w $(distdir)
1537842 chmod u+w $(distdir)
1599904 $(distcleancheck_listfiles) ; \
1600905 exit 1; } >&2
1601906 check-am: all-am
1602 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
1603 check: check-am
907 check: check-recursive
1604908 all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(MANS) config.h
1605 installdirs:
909 installdirs: installdirs-recursive
910 installdirs-am:
1606911 for dir in "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man1dir)"; do \
1607912 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1608913 done
1609 install: install-am
1610 install-exec: install-exec-am
1611 install-data: install-data-am
1612 uninstall: uninstall-am
914 install: install-recursive
915 install-exec: install-exec-recursive
916 install-data: install-data-recursive
917 uninstall: uninstall-recursive
1613918
1614919 install-am: all-am
1615920 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1616921
1617 installcheck: installcheck-am
922 installcheck: installcheck-recursive
1618923 install-strip:
1619924 if test -z '$(STRIP)'; then \
1620925 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1626931 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1627932 fi
1628933 mostlyclean-generic:
1629 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
1630 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
1631 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1632934
1633935 clean-generic:
1634936 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
1640942 maintainer-clean-generic:
1641943 @echo "This command is intended for maintainers to use"
1642944 @echo "it deletes files that may require special tools to rebuild."
1643 clean: clean-am
945 clean: clean-recursive
1644946
1645947 clean-am: clean-generic clean-libexecPROGRAMS mostlyclean-am
1646948
1647 distclean: distclean-am
949 distclean: distclean-recursive
1648950 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1649951 -rm -f ./$(DEPDIR)/virt-what-cpuid-helper.Po
1650952 -rm -f ./$(DEPDIR)/virt-what-ia64-xen-rdtsc-test.Po
1652954 distclean-am: clean-am distclean-compile distclean-generic \
1653955 distclean-hdr distclean-tags
1654956
1655 dvi: dvi-am
957 dvi: dvi-recursive
1656958
1657959 dvi-am:
1658960
1659 html: html-am
961 html: html-recursive
1660962
1661963 html-am:
1662964
1663 info: info-am
965 info: info-recursive
1664966
1665967 info-am:
1666968
1667969 install-data-am: install-man
1668970
1669 install-dvi: install-dvi-am
971 install-dvi: install-dvi-recursive
1670972
1671973 install-dvi-am:
1672974
1673975 install-exec-am: install-libexecPROGRAMS install-sbinSCRIPTS
1674976
1675 install-html: install-html-am
977 install-html: install-html-recursive
1676978
1677979 install-html-am:
1678980
1679 install-info: install-info-am
981 install-info: install-info-recursive
1680982
1681983 install-info-am:
1682984
1683985 install-man: install-man1
1684986
1685 install-pdf: install-pdf-am
987 install-pdf: install-pdf-recursive
1686988
1687989 install-pdf-am:
1688990
1689 install-ps: install-ps-am
991 install-ps: install-ps-recursive
1690992
1691993 install-ps-am:
1692994
1693995 installcheck-am:
1694996
1695 maintainer-clean: maintainer-clean-am
997 maintainer-clean: maintainer-clean-recursive
1696998 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1697999 -rm -rf $(top_srcdir)/autom4te.cache
16981000 -rm -f ./$(DEPDIR)/virt-what-cpuid-helper.Po
17001002 -rm -f Makefile
17011003 maintainer-clean-am: distclean-am maintainer-clean-generic
17021004
1703 mostlyclean: mostlyclean-am
1005 mostlyclean: mostlyclean-recursive
17041006
17051007 mostlyclean-am: mostlyclean-compile mostlyclean-generic
17061008
1707 pdf: pdf-am
1009 pdf: pdf-recursive
17081010
17091011 pdf-am:
17101012
1711 ps: ps-am
1013 ps: ps-recursive
17121014
17131015 ps-am:
17141016
17171019
17181020 uninstall-man: uninstall-man1
17191021
1720 .MAKE: all check-am install-am install-strip
1721
1722 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles am--refresh check \
1723 check-TESTS check-am clean clean-cscope clean-generic \
1724 clean-libexecPROGRAMS cscope cscopelist-am ctags ctags-am dist \
1725 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
1726 dist-xz dist-zip distcheck distclean distclean-compile \
1727 distclean-generic distclean-hdr distclean-tags distcleancheck \
1728 distdir distuninstallcheck dvi dvi-am html html-am info \
1729 info-am install install-am install-data install-data-am \
1730 install-dvi install-dvi-am install-exec install-exec-am \
1731 install-html install-html-am install-info install-info-am \
1732 install-libexecPROGRAMS install-man install-man1 install-pdf \
1733 install-pdf-am install-ps install-ps-am install-sbinSCRIPTS \
1734 install-strip installcheck installcheck-am installdirs \
1735 maintainer-clean maintainer-clean-generic mostlyclean \
1736 mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
1737 recheck tags tags-am uninstall uninstall-am \
1738 uninstall-libexecPROGRAMS uninstall-man uninstall-man1 \
1739 uninstall-sbinSCRIPTS
1022 .MAKE: $(am__recursive_targets) all install-am install-strip
1023
1024 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
1025 am--depfiles am--refresh check check-am clean clean-cscope \
1026 clean-generic clean-libexecPROGRAMS cscope cscopelist-am ctags \
1027 ctags-am dist dist-all dist-bzip2 dist-gzip dist-lzip \
1028 dist-shar dist-tarZ dist-xz dist-zip dist-zstd distcheck \
1029 distclean distclean-compile distclean-generic distclean-hdr \
1030 distclean-tags distcleancheck distdir distuninstallcheck dvi \
1031 dvi-am html html-am info info-am install install-am \
1032 install-data install-data-am install-dvi install-dvi-am \
1033 install-exec install-exec-am install-html install-html-am \
1034 install-info install-info-am install-libexecPROGRAMS \
1035 install-man install-man1 install-pdf install-pdf-am install-ps \
1036 install-ps-am install-sbinSCRIPTS install-strip installcheck \
1037 installcheck-am installdirs installdirs-am maintainer-clean \
1038 maintainer-clean-generic mostlyclean mostlyclean-compile \
1039 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
1040 uninstall-am uninstall-libexecPROGRAMS uninstall-man \
1041 uninstall-man1 uninstall-sbinSCRIPTS
17401042
17411043 .PRECIOUS: Makefile
17421044
17471049 @HAVE_POD2MAN_TRUE@virt-what.txt: virt-what.pod
17481050 @HAVE_POD2MAN_TRUE@ pod2text $? > $@
17491051
1052 #----------------------------------------------------------------------
1053 # Maintainers only!
1054
1055 # Check no files are missing from EXTRA_DIST rules, and that all
1056 # generated files have been included in the tarball. (Note you must
1057 # have done 'make dist')
1058 maintainer-check-extra-dist:
1059 @zcat $(PACKAGE_NAME)-$(VERSION).tar.gz | tar tf - | sort | \
1060 sed 's,^$(PACKAGE_NAME)-$(VERSION)/,,' > tarfiles
1061 @git ls-files | \
1062 sort > gitfiles
1063 @comm -13 tarfiles gitfiles > comm-out
1064 @echo Checking for differences between EXTRA_DIST and git ...
1065 @cat comm-out
1066 @[ ! -s comm-out ]
1067 @rm tarfiles gitfiles comm-out
1068 @echo PASS: EXTRA_DIST tests
1069
1070 # Commit everything in the current directory and set the commit
1071 # message to the current version number.
1072 maintainer-commit:
1073 git commit -a -m "Version $(VERSION)."
1074
1075 # Tag HEAD with the current version.
1076 maintainer-tag:
1077 git tag -a v$(VERSION) -m "Version $(VERSION)." -f
1078
17501079 # Tell versions [3.59,3.63) of GNU make to not export all variables.
17511080 # Otherwise a system limit (for SysV at least) may be exceeded.
17521081 .NOEXPORT:
0 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.16.2 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
22 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
22 # Copyright (C) 2002-2020 Free Software Foundation, Inc.
2323 #
2424 # This file is free software; the Free Software Foundation
2525 # gives unlimited permission to copy and/or distribute it,
3434 [am__api_version='1.16'
3535 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3636 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.16.1], [],
37 m4_if([$1], [1.16.2], [],
3838 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3939 ])
4040
5050 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5151 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5252 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.16.1])dnl
53 [AM_AUTOMAKE_VERSION([1.16.2])dnl
5454 m4_ifndef([AC_AUTOCONF_VERSION],
5555 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5656 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
5757
5858 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
5959
60 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
60 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
6161 #
6262 # This file is free software; the Free Software Foundation
6363 # gives unlimited permission to copy and/or distribute it,
109109
110110 # AM_CONDITIONAL -*- Autoconf -*-
111111
112 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
112 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
113113 #
114114 # This file is free software; the Free Software Foundation
115115 # gives unlimited permission to copy and/or distribute it,
140140 Usually this means the macro was only invoked conditionally.]])
141141 fi])])
142142
143 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
143 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
144144 #
145145 # This file is free software; the Free Software Foundation
146146 # gives unlimited permission to copy and/or distribute it,
331331
332332 # Generate code to set up dependency tracking. -*- Autoconf -*-
333333
334 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
334 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
335335 #
336336 # This file is free software; the Free Software Foundation
337337 # gives unlimited permission to copy and/or distribute it,
370370 done
371371 if test $am_rc -ne 0; then
372372 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
373 for automatic dependency tracking. Try re-running configure with the
373 for automatic dependency tracking. If GNU make was not used, consider
374 re-running the configure script with MAKE="gmake" (or whatever is
375 necessary). You can also try re-running configure with the
374376 '--disable-dependency-tracking' option to at least be able to build
375377 the package (albeit without support for automatic dependency tracking).])
376378 fi
397399
398400 # Do all the work for Automake. -*- Autoconf -*-
399401
400 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
402 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
401403 #
402404 # This file is free software; the Free Software Foundation
403405 # gives unlimited permission to copy and/or distribute it,
594596 done
595597 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
596598
597 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
599 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
598600 #
599601 # This file is free software; the Free Software Foundation
600602 # gives unlimited permission to copy and/or distribute it,
615617 fi
616618 AC_SUBST([install_sh])])
617619
618 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
620 # Copyright (C) 2003-2020 Free Software Foundation, Inc.
619621 #
620622 # This file is free software; the Free Software Foundation
621623 # gives unlimited permission to copy and/or distribute it,
636638
637639 # Check to see how 'make' treats includes. -*- Autoconf -*-
638640
639 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
641 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
640642 #
641643 # This file is free software; the Free Software Foundation
642644 # gives unlimited permission to copy and/or distribute it,
679681
680682 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
681683
682 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
684 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
683685 #
684686 # This file is free software; the Free Software Foundation
685687 # gives unlimited permission to copy and/or distribute it,
718720
719721 # Helper functions for option handling. -*- Autoconf -*-
720722
721 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
723 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
722724 #
723725 # This file is free software; the Free Software Foundation
724726 # gives unlimited permission to copy and/or distribute it,
747749 AC_DEFUN([_AM_IF_OPTION],
748750 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
749751
750 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
752 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
751753 #
752754 # This file is free software; the Free Software Foundation
753755 # gives unlimited permission to copy and/or distribute it,
794796 # For backward compatibility.
795797 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
796798
797 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
799 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
798800 #
799801 # This file is free software; the Free Software Foundation
800802 # gives unlimited permission to copy and/or distribute it,
813815
814816 # Check to make sure that the build environment is sane. -*- Autoconf -*-
815817
816 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
818 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
817819 #
818820 # This file is free software; the Free Software Foundation
819821 # gives unlimited permission to copy and/or distribute it,
894896 rm -f conftest.file
895897 ])
896898
897 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
899 # Copyright (C) 2009-2020 Free Software Foundation, Inc.
898900 #
899901 # This file is free software; the Free Software Foundation
900902 # gives unlimited permission to copy and/or distribute it,
954956 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
955957 ])
956958
957 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
959 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
958960 #
959961 # This file is free software; the Free Software Foundation
960962 # gives unlimited permission to copy and/or distribute it,
982984 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
983985 AC_SUBST([INSTALL_STRIP_PROGRAM])])
984986
985 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
987 # Copyright (C) 2006-2020 Free Software Foundation, Inc.
986988 #
987989 # This file is free software; the Free Software Foundation
988990 # gives unlimited permission to copy and/or distribute it,
10011003
10021004 # Check how to create a tarball. -*- Autoconf -*-
10031005
1004 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
1006 # Copyright (C) 2004-2020 Free Software Foundation, Inc.
10051007 #
10061008 # This file is free software; the Free Software Foundation
10071009 # gives unlimited permission to copy and/or distribute it,
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for virt-what 1.19.
2 # Generated by GNU Autoconf 2.69 for virt-what 1.21.
33 #
44 #
55 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
575575 # Identity of this package.
576576 PACKAGE_NAME='virt-what'
577577 PACKAGE_TARNAME='virt-what'
578 PACKAGE_VERSION='1.19'
579 PACKAGE_STRING='virt-what 1.19'
578 PACKAGE_VERSION='1.21'
579 PACKAGE_STRING='virt-what 1.21'
580580 PACKAGE_BUGREPORT=''
581581 PACKAGE_URL=''
582582
587587 HAVE_POD2MAN_FALSE
588588 HAVE_POD2MAN_TRUE
589589 POD2MAN
590 tests
590591 HOST_CPU_IA64_FALSE
591592 HOST_CPU_IA64_TRUE
592593 host_os
12351236 # Omit some internal or obsolete options to make the list less imposing.
12361237 # This message is too long to be a string in the A/UX 3.1 sh.
12371238 cat <<_ACEOF
1238 \`configure' configures virt-what 1.19 to adapt to many kinds of systems.
1239 \`configure' configures virt-what 1.21 to adapt to many kinds of systems.
12391240
12401241 Usage: $0 [OPTION]... [VAR=VALUE]...
12411242
13051306
13061307 if test -n "$ac_init_help"; then
13071308 case $ac_init_help in
1308 short | recursive ) echo "Configuration of virt-what 1.19:";;
1309 short | recursive ) echo "Configuration of virt-what 1.21:";;
13091310 esac
13101311 cat <<\_ACEOF
13111312
13961397 test -n "$ac_init_help" && exit $ac_status
13971398 if $ac_init_version; then
13981399 cat <<\_ACEOF
1399 virt-what configure 1.19
1400 virt-what configure 1.21
14001401 generated by GNU Autoconf 2.69
14011402
14021403 Copyright (C) 2012 Free Software Foundation, Inc.
14881489 This file contains any messages produced by compilers while
14891490 running configure, to aid debugging if configure makes a mistake.
14901491
1491 It was created by virt-what $as_me 1.19, which was
1492 It was created by virt-what $as_me 1.21, which was
14921493 generated by GNU Autoconf 2.69. Invocation command line was
14931494
14941495 $ $0 $@
23512352
23522353 # Define the identity of the package.
23532354 PACKAGE='virt-what'
2354 VERSION='1.19'
2355 VERSION='1.21'
23552356
23562357
23572358 cat >>confdefs.h <<_ACEOF
40154016 fi
40164017
40174018
4019 tests="\
4020 aws-baremetal-x86 \
4021 aws-kvm-arm \
4022 aws-kvm-x86 \
4023 aws-xen-x86 \
4024 baremetal \
4025 bhyve \
4026 docker \
4027 esx4.1 \
4028 hyperv \
4029 kvm \
4030 kvm-explicit-cpu \
4031 ldoms \
4032 linux-vserver \
4033 lkvm \
4034 lkvm-arm \
4035 lx86 \
4036 lxc \
4037 nutanix-ahv \
4038 parallels-desktop \
4039 podman \
4040 ppc64-baremetal \
4041 ppc64-kvm \
4042 ppc64-lpar-dedicated \
4043 ppc64-lpar-shared \
4044 qemu \
4045 qemu-arm \
4046 qemu-smbios \
4047 qemu-smbios-kvm \
4048 rhel5-xen-dom0 \
4049 rhel5-xen-domU-hvm \
4050 rhel5-xen-domU-hvm-ia64 \
4051 rhel5-xen-domU-pv \
4052 rhev \
4053 vmm \
4054 xen-arm \
4055 zvm \
4056 "
4057
4058
40184059 ac_config_headers="$ac_config_headers config.h"
40194060
40204061 ac_config_files="$ac_config_files virt-what"
40214062
4022 ac_config_files="$ac_config_files Makefile"
4063 ac_config_files="$ac_config_files Makefile tests/Makefile tests/aws-baremetal-x86/Makefile tests/aws-kvm-arm/Makefile tests/aws-kvm-x86/Makefile tests/aws-xen-x86/Makefile tests/baremetal/Makefile tests/bhyve/Makefile tests/docker/Makefile tests/esx4.1/Makefile tests/hyperv/Makefile tests/kvm/Makefile tests/kvm-explicit-cpu/Makefile tests/ldoms/Makefile tests/linux-vserver/Makefile tests/lkvm/Makefile tests/lkvm-arm/Makefile tests/lx86/Makefile tests/lxc/Makefile tests/nutanix-ahv/Makefile tests/parallels-desktop/Makefile tests/podman/Makefile tests/ppc64-baremetal/Makefile tests/ppc64-kvm/Makefile tests/ppc64-lpar-dedicated/Makefile tests/ppc64-lpar-shared/Makefile tests/qemu/Makefile tests/qemu-arm/Makefile tests/qemu-smbios/Makefile tests/qemu-smbios-kvm/Makefile tests/rhel5-xen-dom0/Makefile tests/rhel5-xen-domU-hvm/Makefile tests/rhel5-xen-domU-hvm-ia64/Makefile tests/rhel5-xen-domU-pv/Makefile tests/rhev/Makefile tests/vmm/Makefile tests/xen-arm/Makefile tests/zvm/Makefile"
40234064
40244065
40254066 # Extract the first word of "pod2man", so it can be a program name with args.
46114652 # report actual input values of CONFIG_FILES etc. instead of their
46124653 # values after options handling.
46134654 ac_log="
4614 This file was extended by virt-what $as_me 1.19, which was
4655 This file was extended by virt-what $as_me 1.21, which was
46154656 generated by GNU Autoconf 2.69. Invocation command line was
46164657
46174658 CONFIG_FILES = $CONFIG_FILES
46774718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46784719 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
46794720 ac_cs_version="\\
4680 virt-what config.status 1.19
4721 virt-what config.status 1.21
46814722 configured by $0, generated by GNU Autoconf 2.69,
46824723 with options \\"\$ac_cs_config\\"
46834724
48104851 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
48114852 "virt-what") CONFIG_FILES="$CONFIG_FILES virt-what" ;;
48124853 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4854 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
4855 "tests/aws-baremetal-x86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/aws-baremetal-x86/Makefile" ;;
4856 "tests/aws-kvm-arm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/aws-kvm-arm/Makefile" ;;
4857 "tests/aws-kvm-x86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/aws-kvm-x86/Makefile" ;;
4858 "tests/aws-xen-x86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/aws-xen-x86/Makefile" ;;
4859 "tests/baremetal/Makefile") CONFIG_FILES="$CONFIG_FILES tests/baremetal/Makefile" ;;
4860 "tests/bhyve/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bhyve/Makefile" ;;
4861 "tests/docker/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docker/Makefile" ;;
4862 "tests/esx4.1/Makefile") CONFIG_FILES="$CONFIG_FILES tests/esx4.1/Makefile" ;;
4863 "tests/hyperv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hyperv/Makefile" ;;
4864 "tests/kvm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kvm/Makefile" ;;
4865 "tests/kvm-explicit-cpu/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kvm-explicit-cpu/Makefile" ;;
4866 "tests/ldoms/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ldoms/Makefile" ;;
4867 "tests/linux-vserver/Makefile") CONFIG_FILES="$CONFIG_FILES tests/linux-vserver/Makefile" ;;
4868 "tests/lkvm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lkvm/Makefile" ;;
4869 "tests/lkvm-arm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lkvm-arm/Makefile" ;;
4870 "tests/lx86/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lx86/Makefile" ;;
4871 "tests/lxc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lxc/Makefile" ;;
4872 "tests/nutanix-ahv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/nutanix-ahv/Makefile" ;;
4873 "tests/parallels-desktop/Makefile") CONFIG_FILES="$CONFIG_FILES tests/parallels-desktop/Makefile" ;;
4874 "tests/podman/Makefile") CONFIG_FILES="$CONFIG_FILES tests/podman/Makefile" ;;
4875 "tests/ppc64-baremetal/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ppc64-baremetal/Makefile" ;;
4876 "tests/ppc64-kvm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ppc64-kvm/Makefile" ;;
4877 "tests/ppc64-lpar-dedicated/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ppc64-lpar-dedicated/Makefile" ;;
4878 "tests/ppc64-lpar-shared/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ppc64-lpar-shared/Makefile" ;;
4879 "tests/qemu/Makefile") CONFIG_FILES="$CONFIG_FILES tests/qemu/Makefile" ;;
4880 "tests/qemu-arm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/qemu-arm/Makefile" ;;
4881 "tests/qemu-smbios/Makefile") CONFIG_FILES="$CONFIG_FILES tests/qemu-smbios/Makefile" ;;
4882 "tests/qemu-smbios-kvm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/qemu-smbios-kvm/Makefile" ;;
4883 "tests/rhel5-xen-dom0/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rhel5-xen-dom0/Makefile" ;;
4884 "tests/rhel5-xen-domU-hvm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rhel5-xen-domU-hvm/Makefile" ;;
4885 "tests/rhel5-xen-domU-hvm-ia64/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rhel5-xen-domU-hvm-ia64/Makefile" ;;
4886 "tests/rhel5-xen-domU-pv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rhel5-xen-domU-pv/Makefile" ;;
4887 "tests/rhev/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rhev/Makefile" ;;
4888 "tests/vmm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/vmm/Makefile" ;;
4889 "tests/xen-arm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/xen-arm/Makefile" ;;
4890 "tests/zvm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/zvm/Makefile" ;;
48134891
48144892 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
48154893 esac
54875565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
54885566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54895567 as_fn_error $? "Something went wrong bootstrapping makefile fragments
5490 for automatic dependency tracking. Try re-running configure with the
5568 for automatic dependency tracking. If GNU make was not used, consider
5569 re-running the configure script with MAKE=\"gmake\" (or whatever is
5570 necessary). You can also try re-running configure with the
54915571 '--disable-dependency-tracking' option to at least be able to build
54925572 the package (albeit without support for automatic dependency tracking).
54935573 See \`config.log' for more details" "$LINENO" 5; }
1414 # along with this program; if not, write to the Free Software
1515 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1616
17 AC_INIT([virt-what],[1.19])
17 AC_INIT([virt-what],[1.21])
1818 AM_INIT_AUTOMAKE([foreign])
1919
2020 dnl Check for basic C environment.
3131 AC_CANONICAL_HOST
3232 AM_CONDITIONAL([HOST_CPU_IA64], [ test "x$host_cpu" = "xia64" ])
3333
34 dnl List of tests.
35 tests="\
36 aws-baremetal-x86 \
37 aws-kvm-arm \
38 aws-kvm-x86 \
39 aws-xen-x86 \
40 baremetal \
41 bhyve \
42 docker \
43 esx4.1 \
44 hyperv \
45 kvm \
46 kvm-explicit-cpu \
47 ldoms \
48 linux-vserver \
49 lkvm \
50 lkvm-arm \
51 lx86 \
52 lxc \
53 nutanix-ahv \
54 parallels-desktop \
55 podman \
56 ppc64-baremetal \
57 ppc64-kvm \
58 ppc64-lpar-dedicated \
59 ppc64-lpar-shared \
60 qemu \
61 qemu-arm \
62 qemu-smbios \
63 qemu-smbios-kvm \
64 rhel5-xen-dom0 \
65 rhel5-xen-domU-hvm \
66 rhel5-xen-domU-hvm-ia64 \
67 rhel5-xen-domU-pv \
68 rhev \
69 vmm \
70 xen-arm \
71 zvm \
72 "
73 AC_SUBST([tests])
74
3475 dnl Produce output files.
3576 AC_CONFIG_HEADERS([config.h])
3677 AC_CONFIG_FILES([virt-what],[chmod +x virt-what])
37 AC_CONFIG_FILES([Makefile])
78 AC_CONFIG_FILES([Makefile
79 tests/Makefile
80 tests/aws-baremetal-x86/Makefile
81 tests/aws-kvm-arm/Makefile
82 tests/aws-kvm-x86/Makefile
83 tests/aws-xen-x86/Makefile
84 tests/baremetal/Makefile
85 tests/bhyve/Makefile
86 tests/docker/Makefile
87 tests/esx4.1/Makefile
88 tests/hyperv/Makefile
89 tests/kvm/Makefile
90 tests/kvm-explicit-cpu/Makefile
91 tests/ldoms/Makefile
92 tests/linux-vserver/Makefile
93 tests/lkvm/Makefile
94 tests/lkvm-arm/Makefile
95 tests/lx86/Makefile
96 tests/lxc/Makefile
97 tests/nutanix-ahv/Makefile
98 tests/parallels-desktop/Makefile
99 tests/podman/Makefile
100 tests/ppc64-baremetal/Makefile
101 tests/ppc64-kvm/Makefile
102 tests/ppc64-lpar-dedicated/Makefile
103 tests/ppc64-lpar-shared/Makefile
104 tests/qemu/Makefile
105 tests/qemu-arm/Makefile
106 tests/qemu-smbios/Makefile
107 tests/qemu-smbios-kvm/Makefile
108 tests/rhel5-xen-dom0/Makefile
109 tests/rhel5-xen-domU-hvm/Makefile
110 tests/rhel5-xen-domU-hvm-ia64/Makefile
111 tests/rhel5-xen-domU-pv/Makefile
112 tests/rhev/Makefile
113 tests/vmm/Makefile
114 tests/xen-arm/Makefile
115 tests/zvm/Makefile
116 ])
38117
39118 AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [false])
40119 if test "$POD2MAN" = "false"; then
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 SUBDIRS = $(tests)
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
131 ctags-recursive dvi-recursive html-recursive info-recursive \
132 install-data-recursive install-dvi-recursive \
133 install-exec-recursive install-html-recursive \
134 install-info-recursive install-pdf-recursive \
135 install-ps-recursive install-recursive installcheck-recursive \
136 installdirs-recursive pdf-recursive ps-recursive \
137 tags-recursive uninstall-recursive
138 am__can_run_installinfo = \
139 case $$AM_UPDATE_INFO_DIR in \
140 n|no|NO) false;; \
141 *) (install-info --version) >/dev/null 2>&1;; \
142 esac
143 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
144 distclean-recursive maintainer-clean-recursive
145 am__recursive_targets = \
146 $(RECURSIVE_TARGETS) \
147 $(RECURSIVE_CLEAN_TARGETS) \
148 $(am__extra_recursive_targets)
149 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
150 distdir distdir-am
151 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
152 # Read a list of newline-separated strings from the standard input,
153 # and print each of them once, without duplicates. Input order is
154 # *not* preserved.
155 am__uniquify_input = $(AWK) '\
156 BEGIN { nonempty = 0; } \
157 { items[$$0] = 1; nonempty = 1; } \
158 END { if (nonempty) { for (i in items) print i; }; } \
159 '
160 # Make sure the list of sources is unique. This is necessary because,
161 # e.g., the same source file might be shared among _SOURCES variables
162 # for different programs/libraries.
163 am__define_uniq_tagged_files = \
164 list='$(am__tagged_files)'; \
165 unique=`for i in $$list; do \
166 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
167 done | $(am__uniquify_input)`
168 ETAGS = etags
169 CTAGS = ctags
170 DIST_SUBDIRS = $(SUBDIRS)
171 am__DIST_COMMON = $(srcdir)/Makefile.in
172 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
173 am__relativize = \
174 dir0=`pwd`; \
175 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
176 sed_rest='s,^[^/]*/*,,'; \
177 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
178 sed_butlast='s,/*[^/]*$$,,'; \
179 while test -n "$$dir1"; do \
180 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
181 if test "$$first" != "."; then \
182 if test "$$first" = ".."; then \
183 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
184 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
185 else \
186 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
187 if test "$$first2" = "$$first"; then \
188 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
189 else \
190 dir2="../$$dir2"; \
191 fi; \
192 dir0="$$dir0"/"$$first"; \
193 fi; \
194 fi; \
195 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
196 done; \
197 reldir="$$dir2"
198 ACLOCAL = @ACLOCAL@
199 AMTAR = @AMTAR@
200 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
201 AUTOCONF = @AUTOCONF@
202 AUTOHEADER = @AUTOHEADER@
203 AUTOMAKE = @AUTOMAKE@
204 AWK = @AWK@
205 CC = @CC@
206 CCDEPMODE = @CCDEPMODE@
207 CFLAGS = @CFLAGS@
208 CPP = @CPP@
209 CPPFLAGS = @CPPFLAGS@
210 CYGPATH_W = @CYGPATH_W@
211 DEFS = @DEFS@
212 DEPDIR = @DEPDIR@
213 ECHO_C = @ECHO_C@
214 ECHO_N = @ECHO_N@
215 ECHO_T = @ECHO_T@
216 EXEEXT = @EXEEXT@
217 INSTALL = @INSTALL@
218 INSTALL_DATA = @INSTALL_DATA@
219 INSTALL_PROGRAM = @INSTALL_PROGRAM@
220 INSTALL_SCRIPT = @INSTALL_SCRIPT@
221 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
222 LDFLAGS = @LDFLAGS@
223 LIBOBJS = @LIBOBJS@
224 LIBS = @LIBS@
225 LTLIBOBJS = @LTLIBOBJS@
226 MAKEINFO = @MAKEINFO@
227 MKDIR_P = @MKDIR_P@
228 OBJEXT = @OBJEXT@
229 PACKAGE = @PACKAGE@
230 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
231 PACKAGE_NAME = @PACKAGE_NAME@
232 PACKAGE_STRING = @PACKAGE_STRING@
233 PACKAGE_TARNAME = @PACKAGE_TARNAME@
234 PACKAGE_URL = @PACKAGE_URL@
235 PACKAGE_VERSION = @PACKAGE_VERSION@
236 PATH_SEPARATOR = @PATH_SEPARATOR@
237 POD2MAN = @POD2MAN@
238 SET_MAKE = @SET_MAKE@
239 SHELL = @SHELL@
240 STRIP = @STRIP@
241 VERSION = @VERSION@
242 abs_builddir = @abs_builddir@
243 abs_srcdir = @abs_srcdir@
244 abs_top_builddir = @abs_top_builddir@
245 abs_top_srcdir = @abs_top_srcdir@
246 ac_ct_CC = @ac_ct_CC@
247 am__include = @am__include@
248 am__leading_dot = @am__leading_dot@
249 am__quote = @am__quote@
250 am__tar = @am__tar@
251 am__untar = @am__untar@
252 bindir = @bindir@
253 build = @build@
254 build_alias = @build_alias@
255 build_cpu = @build_cpu@
256 build_os = @build_os@
257 build_vendor = @build_vendor@
258 builddir = @builddir@
259 datadir = @datadir@
260 datarootdir = @datarootdir@
261 docdir = @docdir@
262 dvidir = @dvidir@
263 exec_prefix = @exec_prefix@
264 host = @host@
265 host_alias = @host_alias@
266 host_cpu = @host_cpu@
267 host_os = @host_os@
268 host_vendor = @host_vendor@
269 htmldir = @htmldir@
270 includedir = @includedir@
271 infodir = @infodir@
272 install_sh = @install_sh@
273 libdir = @libdir@
274 libexecdir = @libexecdir@
275 localedir = @localedir@
276 localstatedir = @localstatedir@
277 mandir = @mandir@
278 mkdir_p = @mkdir_p@
279 oldincludedir = @oldincludedir@
280 pdfdir = @pdfdir@
281 prefix = @prefix@
282 program_transform_name = @program_transform_name@
283 psdir = @psdir@
284 sbindir = @sbindir@
285 sharedstatedir = @sharedstatedir@
286 srcdir = @srcdir@
287 sysconfdir = @sysconfdir@
288 target_alias = @target_alias@
289 tests = @tests@
290 top_build_prefix = @top_build_prefix@
291 top_builddir = @top_builddir@
292 top_srcdir = @top_srcdir@
293 CLEANFILES = *~
294 SUBDIRS = $(tests)
295 all: all-recursive
296
297 .SUFFIXES:
298 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
299 @for dep in $?; do \
300 case '$(am__configure_deps)' in \
301 *$$dep*) \
302 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
303 && { if test -f $@; then exit 0; else break; fi; }; \
304 exit 1;; \
305 esac; \
306 done; \
307 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/Makefile'; \
308 $(am__cd) $(top_srcdir) && \
309 $(AUTOMAKE) --foreign tests/Makefile
310 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
311 @case '$?' in \
312 *config.status*) \
313 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
314 *) \
315 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
316 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
317 esac;
318
319 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
320 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
321
322 $(top_srcdir)/configure: $(am__configure_deps)
323 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
324 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
325 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
326 $(am__aclocal_m4_deps):
327
328 # This directory's subdirectories are mostly independent; you can cd
329 # into them and run 'make' without going through this Makefile.
330 # To change the values of 'make' variables: instead of editing Makefiles,
331 # (1) if the variable is set in 'config.status', edit 'config.status'
332 # (which will cause the Makefiles to be regenerated when you run 'make');
333 # (2) otherwise, pass the desired values on the 'make' command line.
334 $(am__recursive_targets):
335 @fail=; \
336 if $(am__make_keepgoing); then \
337 failcom='fail=yes'; \
338 else \
339 failcom='exit 1'; \
340 fi; \
341 dot_seen=no; \
342 target=`echo $@ | sed s/-recursive//`; \
343 case "$@" in \
344 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
345 *) list='$(SUBDIRS)' ;; \
346 esac; \
347 for subdir in $$list; do \
348 echo "Making $$target in $$subdir"; \
349 if test "$$subdir" = "."; then \
350 dot_seen=yes; \
351 local_target="$$target-am"; \
352 else \
353 local_target="$$target"; \
354 fi; \
355 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
356 || eval $$failcom; \
357 done; \
358 if test "$$dot_seen" = "no"; then \
359 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
360 fi; test -z "$$fail"
361
362 ID: $(am__tagged_files)
363 $(am__define_uniq_tagged_files); mkid -fID $$unique
364 tags: tags-recursive
365 TAGS: tags
366
367 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
368 set x; \
369 here=`pwd`; \
370 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
371 include_option=--etags-include; \
372 empty_fix=.; \
373 else \
374 include_option=--include; \
375 empty_fix=; \
376 fi; \
377 list='$(SUBDIRS)'; for subdir in $$list; do \
378 if test "$$subdir" = .; then :; else \
379 test ! -f $$subdir/TAGS || \
380 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
381 fi; \
382 done; \
383 $(am__define_uniq_tagged_files); \
384 shift; \
385 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
386 test -n "$$unique" || unique=$$empty_fix; \
387 if test $$# -gt 0; then \
388 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
389 "$$@" $$unique; \
390 else \
391 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
392 $$unique; \
393 fi; \
394 fi
395 ctags: ctags-recursive
396
397 CTAGS: ctags
398 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
399 $(am__define_uniq_tagged_files); \
400 test -z "$(CTAGS_ARGS)$$unique" \
401 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
402 $$unique
403
404 GTAGS:
405 here=`$(am__cd) $(top_builddir) && pwd` \
406 && $(am__cd) $(top_srcdir) \
407 && gtags -i $(GTAGS_ARGS) "$$here"
408 cscopelist: cscopelist-recursive
409
410 cscopelist-am: $(am__tagged_files)
411 list='$(am__tagged_files)'; \
412 case "$(srcdir)" in \
413 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
414 *) sdir=$(subdir)/$(srcdir) ;; \
415 esac; \
416 for i in $$list; do \
417 if test -f "$$i"; then \
418 echo "$(subdir)/$$i"; \
419 else \
420 echo "$$sdir/$$i"; \
421 fi; \
422 done >> $(top_builddir)/cscope.files
423
424 distclean-tags:
425 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
426
427 distdir: $(BUILT_SOURCES)
428 $(MAKE) $(AM_MAKEFLAGS) distdir-am
429
430 distdir-am: $(DISTFILES)
431 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
432 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
433 list='$(DISTFILES)'; \
434 dist_files=`for file in $$list; do echo $$file; done | \
435 sed -e "s|^$$srcdirstrip/||;t" \
436 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
437 case $$dist_files in \
438 */*) $(MKDIR_P) `echo "$$dist_files" | \
439 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
440 sort -u` ;; \
441 esac; \
442 for file in $$dist_files; do \
443 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
444 if test -d $$d/$$file; then \
445 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
446 if test -d "$(distdir)/$$file"; then \
447 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
448 fi; \
449 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
450 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
451 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
452 fi; \
453 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
454 else \
455 test -f "$(distdir)/$$file" \
456 || cp -p $$d/$$file "$(distdir)/$$file" \
457 || exit 1; \
458 fi; \
459 done
460 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
461 if test "$$subdir" = .; then :; else \
462 $(am__make_dryrun) \
463 || test -d "$(distdir)/$$subdir" \
464 || $(MKDIR_P) "$(distdir)/$$subdir" \
465 || exit 1; \
466 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
467 $(am__relativize); \
468 new_distdir=$$reldir; \
469 dir1=$$subdir; dir2="$(top_distdir)"; \
470 $(am__relativize); \
471 new_top_distdir=$$reldir; \
472 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
473 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
474 ($(am__cd) $$subdir && \
475 $(MAKE) $(AM_MAKEFLAGS) \
476 top_distdir="$$new_top_distdir" \
477 distdir="$$new_distdir" \
478 am__remove_distdir=: \
479 am__skip_length_check=: \
480 am__skip_mode_fix=: \
481 distdir) \
482 || exit 1; \
483 fi; \
484 done
485 check-am: all-am
486 check: check-recursive
487 all-am: Makefile
488 installdirs: installdirs-recursive
489 installdirs-am:
490 install: install-recursive
491 install-exec: install-exec-recursive
492 install-data: install-data-recursive
493 uninstall: uninstall-recursive
494
495 install-am: all-am
496 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
497
498 installcheck: installcheck-recursive
499 install-strip:
500 if test -z '$(STRIP)'; then \
501 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
502 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
503 install; \
504 else \
505 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
506 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
507 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
508 fi
509 mostlyclean-generic:
510
511 clean-generic:
512 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
513
514 distclean-generic:
515 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
516 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
517
518 maintainer-clean-generic:
519 @echo "This command is intended for maintainers to use"
520 @echo "it deletes files that may require special tools to rebuild."
521 clean: clean-recursive
522
523 clean-am: clean-generic mostlyclean-am
524
525 distclean: distclean-recursive
526 -rm -f Makefile
527 distclean-am: clean-am distclean-generic distclean-tags
528
529 dvi: dvi-recursive
530
531 dvi-am:
532
533 html: html-recursive
534
535 html-am:
536
537 info: info-recursive
538
539 info-am:
540
541 install-data-am:
542
543 install-dvi: install-dvi-recursive
544
545 install-dvi-am:
546
547 install-exec-am:
548
549 install-html: install-html-recursive
550
551 install-html-am:
552
553 install-info: install-info-recursive
554
555 install-info-am:
556
557 install-man:
558
559 install-pdf: install-pdf-recursive
560
561 install-pdf-am:
562
563 install-ps: install-ps-recursive
564
565 install-ps-am:
566
567 installcheck-am:
568
569 maintainer-clean: maintainer-clean-recursive
570 -rm -f Makefile
571 maintainer-clean-am: distclean-am maintainer-clean-generic
572
573 mostlyclean: mostlyclean-recursive
574
575 mostlyclean-am: mostlyclean-generic
576
577 pdf: pdf-recursive
578
579 pdf-am:
580
581 ps: ps-recursive
582
583 ps-am:
584
585 uninstall-am:
586
587 .MAKE: $(am__recursive_targets) install-am install-strip
588
589 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
590 check-am clean clean-generic cscopelist-am ctags ctags-am \
591 distclean distclean-generic distclean-tags distdir dvi dvi-am \
592 html html-am info info-am install install-am install-data \
593 install-data-am install-dvi install-dvi-am install-exec \
594 install-exec-am install-html install-html-am install-info \
595 install-info-am install-man install-pdf install-pdf-am \
596 install-ps install-ps-am install-strip installcheck \
597 installcheck-am installdirs installdirs-am maintainer-clean \
598 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
599 pdf-am ps ps-am tags tags-am uninstall uninstall-am
600
601 .PRECIOUS: Makefile
602
603
604 # Tell versions [3.59,3.63) of GNU make to not export all variables.
605 # Otherwise a system limit (for SysV at least) may be exceeded.
606 .NOEXPORT:
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/aws-baremetal-x86
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/aws-baremetal-x86/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/aws-baremetal-x86/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for AWS.
1 # Copyright (C) 2018 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="aws"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/aws-kvm-arm
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/aws-kvm-arm/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/aws-kvm-arm/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 processor : 0
1 BogoMIPS : 166.66
2 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
3 CPU implementer : 0x41
4 CPU architecture: 8
5 CPU variant : 0x0
6 CPU part : 0xd08
7 CPU revision : 3
8
0 Name: cat
1 Umask: 0022
2 State: R (running)
3 Tgid: 17874
4 Ngid: 0
5 Pid: 17874
6 PPid: 9992
7 TracerPid: 0
8 Uid: 0 0 0 0
9 Gid: 0 0 0 0
10 FDSize: 256
11 Groups: 0
12 NStgid: 17874
13 NSpid: 17874
14 NSpgid: 17874
15 NSsid: 9992
16 VmPeak: 109760 kB
17 VmSize: 109760 kB
18 VmLck: 0 kB
19 VmPin: 0 kB
20 VmHWM: 832 kB
21 VmRSS: 832 kB
22 RssAnon: 448 kB
23 RssFile: 384 kB
24 RssShmem: 0 kB
25 VmData: 384 kB
26 VmStk: 192 kB
27 VmExe: 64 kB
28 VmLib: 1664 kB
29 VmPTE: 192 kB
30 VmPMD: 128 kB
31 VmSwap: 0 kB
32 HugetlbPages: 0 kB
33 Threads: 1
34 SigQ: 0/1470
35 SigPnd: 0000000000000000
36 ShdPnd: 0000000000000000
37 SigBlk: 0000000000000000
38 SigIgn: 0000000000000000
39 SigCgt: 0000000000000000
40 CapInh: 0000000000000000
41 CapPrm: 0000003fffffffff
42 CapEff: 0000003fffffffff
43 CapBnd: 0000003fffffffff
44 CapAmb: 0000000000000000
45 NoNewPrivs: 0
46 Seccomp: 0
47 Speculation Store Bypass: unknown
48 Cpus_allowed: 1
49 Cpus_allowed_list: 0
50 Mems_allowed: 1
51 Mems_allowed_list: 0
52 voluntary_ctxt_switches: 0
53 nonvoluntary_ctxt_switches: 0
0 #!/bin/sh -
1 cat <<'EOF'
2 # dmidecode 3.1
3 Getting SMBIOS data from sysfs.
4 SMBIOS 2.7 present.
5 5 structures occupying 233 bytes.
6 Table at 0x7F780000.
7
8 Handle 0x0000, DMI type 0, 24 bytes
9 BIOS Information
10 Vendor: Amazon EC2
11 Version: 1.0
12 Release Date: 12/1/2018
13 Address: 0xF0000
14 Runtime Size: 64 kB
15 ROM Size: 64 kB
16 Characteristics:
17 PCI is supported
18 EDD is supported
19 ACPI is supported
20 System is a virtual machine
21 BIOS Revision: 1.0
22
23 Handle 0x0001, DMI type 1, 27 bytes
24 System Information
25 Manufacturer: Amazon EC2
26 Product Name: a1.medium
27 Version: Not Specified
28 Serial Number: ec2ce86a-12c2-9388-d9b0-8dc833cba752
29 UUID: ec2ce86a-12c2-9388-d9b0-8dc833cba752
30 Wake-up Type: Power Switch
31 SKU Number: Not Specified
32 Family: Not Specified
33
34 Handle 0x0002, DMI type 2, 15 bytes
35 Base Board Information
36 Manufacturer: Amazon EC2
37 Product Name: Not Specified
38 Version: Not Specified
39 Serial Number: Not Specified
40 Asset Tag: i-01c1b85d3dcc02ed7
41 Features: None
42 Location In Chassis: Not Specified
43 Chassis Handle: 0x0003
44 Type: Other
45 Contained Object Handles: 0
46
47 Handle 0x0003, DMI type 3, 21 bytes
48 Chassis Information
49 Manufacturer: Amazon EC2
50 Type: Other
51 Lock: Not Present
52 Version: Not Specified
53 Serial Number: Not Specified
54 Asset Tag: Amazon EC2
55 Boot-up State: Safe
56 Power Supply State: Safe
57 Thermal State: Safe
58 Security Status: None
59 OEM Information: 0x00000000
60 Height: Unspecified
61 Number Of Power Cords: 1
62 Contained Elements: 0
63
64 Handle 0xFEFF, DMI type 127, 4 bytes
65 End Of Table
66
67 EOF
0 #!/bin/sh -
1 echo aarch64
0 #!/bin/sh -
1 # prints nothing but exits successfully
0 # Test for AWS.
1 # Copyright (C) 2018 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 # XXX At the moment KVM cannot be detected on this platform.
19 # We hope to fix that, but for now the only fact printed is "aws".
20 expected="aws"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/aws-kvm-x86
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/aws-kvm-x86/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/aws-kvm-x86/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for AWS.
1 # Copyright (C) 2018 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="kvm
19 aws"
20
21 if [ "$output" != "$expected" ]; then
22 echo "$0: test failed because output did not match expected"
23 echo "Expected output was:"
24 echo "----------------------------------------"
25 echo "$expected"
26 echo "----------------------------------------"
27 echo "But the actual output of the program was:"
28 echo "----------------------------------------"
29 echo "$output"
30 echo "----------------------------------------"
31 exit 1
32 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/aws-xen-x86
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/aws-xen-x86/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/aws-xen-x86/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for AWS.
1 # Copyright (C) 2018 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="xen
19 xen-hvm
20 aws"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/baremetal
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/baremetal/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/baremetal/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for baremetal
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected=""
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 sbin/dmidecode \
25 sbin/uname \
26 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/bhyve
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 sbin/dmidecode \
443 sbin/uname \
444 sbin/virt-what-cpuid-helper
445
446 all: all-am
447
448 .SUFFIXES:
449 .SUFFIXES: .log .test .test$(EXEEXT) .trs
450 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
451 @for dep in $?; do \
452 case '$(am__configure_deps)' in \
453 *$$dep*) \
454 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
455 && { if test -f $@; then exit 0; else break; fi; }; \
456 exit 1;; \
457 esac; \
458 done; \
459 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/bhyve/Makefile'; \
460 $(am__cd) $(top_srcdir) && \
461 $(AUTOMAKE) --foreign tests/bhyve/Makefile
462 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
463 @case '$?' in \
464 *config.status*) \
465 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
466 *) \
467 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
468 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
469 esac;
470
471 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
472 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
473
474 $(top_srcdir)/configure: $(am__configure_deps)
475 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
476 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
477 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
478 $(am__aclocal_m4_deps):
479 tags TAGS:
480
481 ctags CTAGS:
482
483 cscope cscopelist:
484
485
486 # Recover from deleted '.trs' file; this should ensure that
487 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
488 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
489 # to avoid problems with "make -n".
490 .log.trs:
491 rm -f $< $@
492 $(MAKE) $(AM_MAKEFLAGS) $<
493
494 # Leading 'am--fnord' is there to ensure the list of targets does not
495 # expand to empty, as could happen e.g. with make check TESTS=''.
496 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
497 am--force-recheck:
498 @:
499
500 $(TEST_SUITE_LOG): $(TEST_LOGS)
501 @$(am__set_TESTS_bases); \
502 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
503 redo_bases=`for i in $$bases; do \
504 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
505 done`; \
506 if test -n "$$redo_bases"; then \
507 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
508 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
509 if $(am__make_dryrun); then :; else \
510 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
511 fi; \
512 fi; \
513 if test -n "$$am__remaking_logs"; then \
514 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
515 "recursion detected" >&2; \
516 elif test -n "$$redo_logs"; then \
517 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
518 fi; \
519 if $(am__make_dryrun); then :; else \
520 st=0; \
521 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
522 for i in $$redo_bases; do \
523 test -f $$i.trs && test -r $$i.trs \
524 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
525 test -f $$i.log && test -r $$i.log \
526 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
527 done; \
528 test $$st -eq 0 || exit 1; \
529 fi
530 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
531 ws='[ ]'; \
532 results=`for b in $$bases; do echo $$b.trs; done`; \
533 test -n "$$results" || results=/dev/null; \
534 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
535 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
536 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
537 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
538 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
539 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
540 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
541 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
542 success=true; \
543 else \
544 success=false; \
545 fi; \
546 br='==================='; br=$$br$$br$$br$$br; \
547 result_count () \
548 { \
549 if test x"$$1" = x"--maybe-color"; then \
550 maybe_colorize=yes; \
551 elif test x"$$1" = x"--no-color"; then \
552 maybe_colorize=no; \
553 else \
554 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
555 fi; \
556 shift; \
557 desc=$$1 count=$$2; \
558 if test $$maybe_colorize = yes && test $$count -gt 0; then \
559 color_start=$$3 color_end=$$std; \
560 else \
561 color_start= color_end=; \
562 fi; \
563 echo "$${color_start}# $$desc $$count$${color_end}"; \
564 }; \
565 create_testsuite_report () \
566 { \
567 result_count $$1 "TOTAL:" $$all "$$brg"; \
568 result_count $$1 "PASS: " $$pass "$$grn"; \
569 result_count $$1 "SKIP: " $$skip "$$blu"; \
570 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
571 result_count $$1 "FAIL: " $$fail "$$red"; \
572 result_count $$1 "XPASS:" $$xpass "$$red"; \
573 result_count $$1 "ERROR:" $$error "$$mgn"; \
574 }; \
575 { \
576 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
577 $(am__rst_title); \
578 create_testsuite_report --no-color; \
579 echo; \
580 echo ".. contents:: :depth: 2"; \
581 echo; \
582 for b in $$bases; do echo $$b; done \
583 | $(am__create_global_log); \
584 } >$(TEST_SUITE_LOG).tmp || exit 1; \
585 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
586 if $$success; then \
587 col="$$grn"; \
588 else \
589 col="$$red"; \
590 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
591 fi; \
592 echo "$${col}$$br$${std}"; \
593 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
594 echo "$${col}$$br$${std}"; \
595 create_testsuite_report --maybe-color; \
596 echo "$$col$$br$$std"; \
597 if $$success; then :; else \
598 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
599 if test -n "$(PACKAGE_BUGREPORT)"; then \
600 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
601 fi; \
602 echo "$$col$$br$$std"; \
603 fi; \
604 $$success || exit 1
605
606 check-TESTS:
607 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
608 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
609 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
610 @set +e; $(am__set_TESTS_bases); \
611 log_list=`for i in $$bases; do echo $$i.log; done`; \
612 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
613 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
614 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
615 exit $$?;
616 recheck: all
617 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
618 @set +e; $(am__set_TESTS_bases); \
619 bases=`for i in $$bases; do echo $$i; done \
620 | $(am__list_recheck_tests)` || exit 1; \
621 log_list=`for i in $$bases; do echo $$i.log; done`; \
622 log_list=`echo $$log_list`; \
623 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
624 am__force_recheck=am--force-recheck \
625 TEST_LOGS="$$log_list"; \
626 exit $$?
627 test.sh.log: test.sh
628 @p='test.sh'; \
629 b='test.sh'; \
630 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
631 --log-file $$b.log --trs-file $$b.trs \
632 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
633 "$$tst" $(AM_TESTS_FD_REDIRECT)
634 .test.log:
635 @p='$<'; \
636 $(am__set_b); \
637 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
638 --log-file $$b.log --trs-file $$b.trs \
639 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
640 "$$tst" $(AM_TESTS_FD_REDIRECT)
641 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
642 @am__EXEEXT_TRUE@ @p='$<'; \
643 @am__EXEEXT_TRUE@ $(am__set_b); \
644 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
645 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
646 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
647 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
648
649 distdir: $(BUILT_SOURCES)
650 $(MAKE) $(AM_MAKEFLAGS) distdir-am
651
652 distdir-am: $(DISTFILES)
653 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
654 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 list='$(DISTFILES)'; \
656 dist_files=`for file in $$list; do echo $$file; done | \
657 sed -e "s|^$$srcdirstrip/||;t" \
658 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
659 case $$dist_files in \
660 */*) $(MKDIR_P) `echo "$$dist_files" | \
661 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
662 sort -u` ;; \
663 esac; \
664 for file in $$dist_files; do \
665 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
666 if test -d $$d/$$file; then \
667 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
668 if test -d "$(distdir)/$$file"; then \
669 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
670 fi; \
671 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
672 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
673 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
674 fi; \
675 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
676 else \
677 test -f "$(distdir)/$$file" \
678 || cp -p $$d/$$file "$(distdir)/$$file" \
679 || exit 1; \
680 fi; \
681 done
682 check-am: all-am
683 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
684 check: check-am
685 all-am: Makefile
686 installdirs:
687 install: install-am
688 install-exec: install-exec-am
689 install-data: install-data-am
690 uninstall: uninstall-am
691
692 install-am: all-am
693 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
694
695 installcheck: installcheck-am
696 install-strip:
697 if test -z '$(STRIP)'; then \
698 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
699 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
700 install; \
701 else \
702 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
703 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
704 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
705 fi
706 mostlyclean-generic:
707 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
708 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
709 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
710
711 clean-generic:
712 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
713
714 distclean-generic:
715 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
716 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
717
718 maintainer-clean-generic:
719 @echo "This command is intended for maintainers to use"
720 @echo "it deletes files that may require special tools to rebuild."
721 clean: clean-am
722
723 clean-am: clean-generic mostlyclean-am
724
725 distclean: distclean-am
726 -rm -f Makefile
727 distclean-am: clean-am distclean-generic
728
729 dvi: dvi-am
730
731 dvi-am:
732
733 html: html-am
734
735 html-am:
736
737 info: info-am
738
739 info-am:
740
741 install-data-am:
742
743 install-dvi: install-dvi-am
744
745 install-dvi-am:
746
747 install-exec-am:
748
749 install-html: install-html-am
750
751 install-html-am:
752
753 install-info: install-info-am
754
755 install-info-am:
756
757 install-man:
758
759 install-pdf: install-pdf-am
760
761 install-pdf-am:
762
763 install-ps: install-ps-am
764
765 install-ps-am:
766
767 installcheck-am:
768
769 maintainer-clean: maintainer-clean-am
770 -rm -f Makefile
771 maintainer-clean-am: distclean-am maintainer-clean-generic
772
773 mostlyclean: mostlyclean-am
774
775 mostlyclean-am: mostlyclean-generic
776
777 pdf: pdf-am
778
779 pdf-am:
780
781 ps: ps-am
782
783 ps-am:
784
785 uninstall-am:
786
787 .MAKE: check-am install-am install-strip
788
789 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
790 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
791 dvi-am html html-am info info-am install install-am \
792 install-data install-data-am install-dvi install-dvi-am \
793 install-exec install-exec-am install-html install-html-am \
794 install-info install-info-am install-man install-pdf \
795 install-pdf-am install-ps install-ps-am install-strip \
796 installcheck installcheck-am installdirs maintainer-clean \
797 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
798 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
799
800 .PRECIOUS: Makefile
801
802
803 # Tell versions [3.59,3.63) of GNU make to not export all variables.
804 # Otherwise a system limit (for SysV at least) may be exceeded.
805 .NOEXPORT:
0 # Test for bhyve
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="bhyve"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
(New empty file)
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 .dockerenv \
24 .dockerinit \
25 proc/cpuinfo \
26 proc/self/cgroup \
27 proc/self/status \
28 sbin/dmidecode \
29 sbin/uname \
30 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/docker
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 .dockerenv \
442 .dockerinit \
443 proc/cpuinfo \
444 proc/self/cgroup \
445 proc/self/status \
446 sbin/dmidecode \
447 sbin/uname \
448 sbin/virt-what-cpuid-helper
449
450 all: all-am
451
452 .SUFFIXES:
453 .SUFFIXES: .log .test .test$(EXEEXT) .trs
454 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
455 @for dep in $?; do \
456 case '$(am__configure_deps)' in \
457 *$$dep*) \
458 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
459 && { if test -f $@; then exit 0; else break; fi; }; \
460 exit 1;; \
461 esac; \
462 done; \
463 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/docker/Makefile'; \
464 $(am__cd) $(top_srcdir) && \
465 $(AUTOMAKE) --foreign tests/docker/Makefile
466 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
467 @case '$?' in \
468 *config.status*) \
469 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
470 *) \
471 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
472 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
473 esac;
474
475 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477
478 $(top_srcdir)/configure: $(am__configure_deps)
479 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
480 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
481 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
482 $(am__aclocal_m4_deps):
483 tags TAGS:
484
485 ctags CTAGS:
486
487 cscope cscopelist:
488
489
490 # Recover from deleted '.trs' file; this should ensure that
491 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
492 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
493 # to avoid problems with "make -n".
494 .log.trs:
495 rm -f $< $@
496 $(MAKE) $(AM_MAKEFLAGS) $<
497
498 # Leading 'am--fnord' is there to ensure the list of targets does not
499 # expand to empty, as could happen e.g. with make check TESTS=''.
500 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
501 am--force-recheck:
502 @:
503
504 $(TEST_SUITE_LOG): $(TEST_LOGS)
505 @$(am__set_TESTS_bases); \
506 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
507 redo_bases=`for i in $$bases; do \
508 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
509 done`; \
510 if test -n "$$redo_bases"; then \
511 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
512 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
513 if $(am__make_dryrun); then :; else \
514 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
515 fi; \
516 fi; \
517 if test -n "$$am__remaking_logs"; then \
518 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
519 "recursion detected" >&2; \
520 elif test -n "$$redo_logs"; then \
521 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
522 fi; \
523 if $(am__make_dryrun); then :; else \
524 st=0; \
525 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
526 for i in $$redo_bases; do \
527 test -f $$i.trs && test -r $$i.trs \
528 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
529 test -f $$i.log && test -r $$i.log \
530 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
531 done; \
532 test $$st -eq 0 || exit 1; \
533 fi
534 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
535 ws='[ ]'; \
536 results=`for b in $$bases; do echo $$b.trs; done`; \
537 test -n "$$results" || results=/dev/null; \
538 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
539 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
540 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
541 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
542 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
543 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
544 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
545 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
546 success=true; \
547 else \
548 success=false; \
549 fi; \
550 br='==================='; br=$$br$$br$$br$$br; \
551 result_count () \
552 { \
553 if test x"$$1" = x"--maybe-color"; then \
554 maybe_colorize=yes; \
555 elif test x"$$1" = x"--no-color"; then \
556 maybe_colorize=no; \
557 else \
558 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
559 fi; \
560 shift; \
561 desc=$$1 count=$$2; \
562 if test $$maybe_colorize = yes && test $$count -gt 0; then \
563 color_start=$$3 color_end=$$std; \
564 else \
565 color_start= color_end=; \
566 fi; \
567 echo "$${color_start}# $$desc $$count$${color_end}"; \
568 }; \
569 create_testsuite_report () \
570 { \
571 result_count $$1 "TOTAL:" $$all "$$brg"; \
572 result_count $$1 "PASS: " $$pass "$$grn"; \
573 result_count $$1 "SKIP: " $$skip "$$blu"; \
574 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
575 result_count $$1 "FAIL: " $$fail "$$red"; \
576 result_count $$1 "XPASS:" $$xpass "$$red"; \
577 result_count $$1 "ERROR:" $$error "$$mgn"; \
578 }; \
579 { \
580 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
581 $(am__rst_title); \
582 create_testsuite_report --no-color; \
583 echo; \
584 echo ".. contents:: :depth: 2"; \
585 echo; \
586 for b in $$bases; do echo $$b; done \
587 | $(am__create_global_log); \
588 } >$(TEST_SUITE_LOG).tmp || exit 1; \
589 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
590 if $$success; then \
591 col="$$grn"; \
592 else \
593 col="$$red"; \
594 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
595 fi; \
596 echo "$${col}$$br$${std}"; \
597 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
598 echo "$${col}$$br$${std}"; \
599 create_testsuite_report --maybe-color; \
600 echo "$$col$$br$$std"; \
601 if $$success; then :; else \
602 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
603 if test -n "$(PACKAGE_BUGREPORT)"; then \
604 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
605 fi; \
606 echo "$$col$$br$$std"; \
607 fi; \
608 $$success || exit 1
609
610 check-TESTS:
611 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
612 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
613 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
614 @set +e; $(am__set_TESTS_bases); \
615 log_list=`for i in $$bases; do echo $$i.log; done`; \
616 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
617 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
618 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
619 exit $$?;
620 recheck: all
621 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
622 @set +e; $(am__set_TESTS_bases); \
623 bases=`for i in $$bases; do echo $$i; done \
624 | $(am__list_recheck_tests)` || exit 1; \
625 log_list=`for i in $$bases; do echo $$i.log; done`; \
626 log_list=`echo $$log_list`; \
627 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
628 am__force_recheck=am--force-recheck \
629 TEST_LOGS="$$log_list"; \
630 exit $$?
631 test.sh.log: test.sh
632 @p='test.sh'; \
633 b='test.sh'; \
634 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
635 --log-file $$b.log --trs-file $$b.trs \
636 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
637 "$$tst" $(AM_TESTS_FD_REDIRECT)
638 .test.log:
639 @p='$<'; \
640 $(am__set_b); \
641 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
642 --log-file $$b.log --trs-file $$b.trs \
643 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
644 "$$tst" $(AM_TESTS_FD_REDIRECT)
645 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
646 @am__EXEEXT_TRUE@ @p='$<'; \
647 @am__EXEEXT_TRUE@ $(am__set_b); \
648 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
649 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
650 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
651 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
652
653 distdir: $(BUILT_SOURCES)
654 $(MAKE) $(AM_MAKEFLAGS) distdir-am
655
656 distdir-am: $(DISTFILES)
657 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
658 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
659 list='$(DISTFILES)'; \
660 dist_files=`for file in $$list; do echo $$file; done | \
661 sed -e "s|^$$srcdirstrip/||;t" \
662 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
663 case $$dist_files in \
664 */*) $(MKDIR_P) `echo "$$dist_files" | \
665 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
666 sort -u` ;; \
667 esac; \
668 for file in $$dist_files; do \
669 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
670 if test -d $$d/$$file; then \
671 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
672 if test -d "$(distdir)/$$file"; then \
673 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
674 fi; \
675 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
676 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
677 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
678 fi; \
679 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
680 else \
681 test -f "$(distdir)/$$file" \
682 || cp -p $$d/$$file "$(distdir)/$$file" \
683 || exit 1; \
684 fi; \
685 done
686 check-am: all-am
687 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
688 check: check-am
689 all-am: Makefile
690 installdirs:
691 install: install-am
692 install-exec: install-exec-am
693 install-data: install-data-am
694 uninstall: uninstall-am
695
696 install-am: all-am
697 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
698
699 installcheck: installcheck-am
700 install-strip:
701 if test -z '$(STRIP)'; then \
702 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
703 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
704 install; \
705 else \
706 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
707 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
708 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
709 fi
710 mostlyclean-generic:
711 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
712 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
713 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
714
715 clean-generic:
716 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
717
718 distclean-generic:
719 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
720 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
721
722 maintainer-clean-generic:
723 @echo "This command is intended for maintainers to use"
724 @echo "it deletes files that may require special tools to rebuild."
725 clean: clean-am
726
727 clean-am: clean-generic mostlyclean-am
728
729 distclean: distclean-am
730 -rm -f Makefile
731 distclean-am: clean-am distclean-generic
732
733 dvi: dvi-am
734
735 dvi-am:
736
737 html: html-am
738
739 html-am:
740
741 info: info-am
742
743 info-am:
744
745 install-data-am:
746
747 install-dvi: install-dvi-am
748
749 install-dvi-am:
750
751 install-exec-am:
752
753 install-html: install-html-am
754
755 install-html-am:
756
757 install-info: install-info-am
758
759 install-info-am:
760
761 install-man:
762
763 install-pdf: install-pdf-am
764
765 install-pdf-am:
766
767 install-ps: install-ps-am
768
769 install-ps-am:
770
771 installcheck-am:
772
773 maintainer-clean: maintainer-clean-am
774 -rm -f Makefile
775 maintainer-clean-am: distclean-am maintainer-clean-generic
776
777 mostlyclean: mostlyclean-am
778
779 mostlyclean-am: mostlyclean-generic
780
781 pdf: pdf-am
782
783 pdf-am:
784
785 ps: ps-am
786
787 ps-am:
788
789 uninstall-am:
790
791 .MAKE: check-am install-am install-strip
792
793 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
794 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
795 dvi-am html html-am info info-am install install-am \
796 install-data install-data-am install-dvi install-dvi-am \
797 install-exec install-exec-am install-html install-html-am \
798 install-info install-info-am install-man install-pdf \
799 install-pdf-am install-ps install-ps-am install-strip \
800 installcheck installcheck-am installdirs maintainer-clean \
801 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
802 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
803
804 .PRECIOUS: Makefile
805
806
807 # Tell versions [3.59,3.63) of GNU make to not export all variables.
808 # Otherwise a system limit (for SysV at least) may be exceeded.
809 .NOEXPORT:
0 12:devices:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
1 11:blkio:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
2 10:perf_event:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
3 9:pids:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
4 8:cpuset:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
5 7:rdma:/
6 6:hugetlb:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
7 5:net_cls,net_prio:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
8 4:memory:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
9 3:freezer:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
10 2:cpu,cpuacct:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
11 1:name=systemd:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
12 0::/system.slice/containerd.service
0 # Test for Docker
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="docker"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/esx4.1
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/esx4.1/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/esx4.1/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for ESX 4.1
1 # Data supplied by Matthew Booth.
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 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
19 expected="vmware"
20
21 if [ "$output" != "$expected" ]; then
22 echo "$0: test failed because output did not match expected"
23 echo "Expected output was:"
24 echo "----------------------------------------"
25 echo "$expected"
26 echo "----------------------------------------"
27 echo "But the actual output of the program was:"
28 echo "----------------------------------------"
29 echo "$output"
30 echo "----------------------------------------"
31 exit 1
32 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/hyperv
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/hyperv/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/hyperv/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for Microsoft HyperV.
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="hyperv"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/kvm
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/kvm/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/kvm/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for KVM
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="kvm"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/kvm-explicit-cpu
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/kvm-explicit-cpu/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/kvm-explicit-cpu/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for KVM with explicit -cpu core2duo option.
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="kvm"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 dev/mdesc \
24 proc/cpuinfo \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/ldoms
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 dev/mdesc \
442 proc/cpuinfo \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/ldoms/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/ldoms/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 #!/bin/sh -
1 # dmidecode fails on this platform.
2 exit 1
0 # Test for LDoms
1 # Copyright (C) 2017 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="ldoms
19 ldoms-guest"
20
21 if [ "$output" != "$expected" ]; then
22 echo "$0: test failed because output did not match expected"
23 echo "Expected output was:"
24 echo "----------------------------------------"
25 echo "$expected"
26 echo "----------------------------------------"
27 echo "But the actual output of the program was:"
28 echo "----------------------------------------"
29 echo "$output"
30 echo "----------------------------------------"
31 exit 1
32 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/linux-vserver
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/linux-vserver/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/linux-vserver/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for linux vserver.
1 # Data supplied by Barış Metin.
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 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
19 expected="linux_vserver
20 linux_vserver-guest"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/lkvm
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/lkvm/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/lkvm/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for LKVM
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="lkvm"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/device-tree/compatible \
25 proc/self/status \
26 sbin/dmidecode \
27 sbin/uname \
28 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/lkvm-arm
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/device-tree/compatible \
443 proc/self/status \
444 sbin/dmidecode \
445 sbin/uname \
446 sbin/virt-what-cpuid-helper
447
448 all: all-am
449
450 .SUFFIXES:
451 .SUFFIXES: .log .test .test$(EXEEXT) .trs
452 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
453 @for dep in $?; do \
454 case '$(am__configure_deps)' in \
455 *$$dep*) \
456 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
457 && { if test -f $@; then exit 0; else break; fi; }; \
458 exit 1;; \
459 esac; \
460 done; \
461 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/lkvm-arm/Makefile'; \
462 $(am__cd) $(top_srcdir) && \
463 $(AUTOMAKE) --foreign tests/lkvm-arm/Makefile
464 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
465 @case '$?' in \
466 *config.status*) \
467 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
468 *) \
469 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
470 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
471 esac;
472
473 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
474 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
475
476 $(top_srcdir)/configure: $(am__configure_deps)
477 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
478 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
479 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
480 $(am__aclocal_m4_deps):
481 tags TAGS:
482
483 ctags CTAGS:
484
485 cscope cscopelist:
486
487
488 # Recover from deleted '.trs' file; this should ensure that
489 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
490 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
491 # to avoid problems with "make -n".
492 .log.trs:
493 rm -f $< $@
494 $(MAKE) $(AM_MAKEFLAGS) $<
495
496 # Leading 'am--fnord' is there to ensure the list of targets does not
497 # expand to empty, as could happen e.g. with make check TESTS=''.
498 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
499 am--force-recheck:
500 @:
501
502 $(TEST_SUITE_LOG): $(TEST_LOGS)
503 @$(am__set_TESTS_bases); \
504 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
505 redo_bases=`for i in $$bases; do \
506 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
507 done`; \
508 if test -n "$$redo_bases"; then \
509 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
510 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
511 if $(am__make_dryrun); then :; else \
512 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
513 fi; \
514 fi; \
515 if test -n "$$am__remaking_logs"; then \
516 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
517 "recursion detected" >&2; \
518 elif test -n "$$redo_logs"; then \
519 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
520 fi; \
521 if $(am__make_dryrun); then :; else \
522 st=0; \
523 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
524 for i in $$redo_bases; do \
525 test -f $$i.trs && test -r $$i.trs \
526 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
527 test -f $$i.log && test -r $$i.log \
528 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
529 done; \
530 test $$st -eq 0 || exit 1; \
531 fi
532 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
533 ws='[ ]'; \
534 results=`for b in $$bases; do echo $$b.trs; done`; \
535 test -n "$$results" || results=/dev/null; \
536 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
537 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
538 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
539 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
540 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
541 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
542 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
543 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
544 success=true; \
545 else \
546 success=false; \
547 fi; \
548 br='==================='; br=$$br$$br$$br$$br; \
549 result_count () \
550 { \
551 if test x"$$1" = x"--maybe-color"; then \
552 maybe_colorize=yes; \
553 elif test x"$$1" = x"--no-color"; then \
554 maybe_colorize=no; \
555 else \
556 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
557 fi; \
558 shift; \
559 desc=$$1 count=$$2; \
560 if test $$maybe_colorize = yes && test $$count -gt 0; then \
561 color_start=$$3 color_end=$$std; \
562 else \
563 color_start= color_end=; \
564 fi; \
565 echo "$${color_start}# $$desc $$count$${color_end}"; \
566 }; \
567 create_testsuite_report () \
568 { \
569 result_count $$1 "TOTAL:" $$all "$$brg"; \
570 result_count $$1 "PASS: " $$pass "$$grn"; \
571 result_count $$1 "SKIP: " $$skip "$$blu"; \
572 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
573 result_count $$1 "FAIL: " $$fail "$$red"; \
574 result_count $$1 "XPASS:" $$xpass "$$red"; \
575 result_count $$1 "ERROR:" $$error "$$mgn"; \
576 }; \
577 { \
578 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
579 $(am__rst_title); \
580 create_testsuite_report --no-color; \
581 echo; \
582 echo ".. contents:: :depth: 2"; \
583 echo; \
584 for b in $$bases; do echo $$b; done \
585 | $(am__create_global_log); \
586 } >$(TEST_SUITE_LOG).tmp || exit 1; \
587 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
588 if $$success; then \
589 col="$$grn"; \
590 else \
591 col="$$red"; \
592 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593 fi; \
594 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
596 echo "$${col}$$br$${std}"; \
597 create_testsuite_report --maybe-color; \
598 echo "$$col$$br$$std"; \
599 if $$success; then :; else \
600 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
601 if test -n "$(PACKAGE_BUGREPORT)"; then \
602 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
603 fi; \
604 echo "$$col$$br$$std"; \
605 fi; \
606 $$success || exit 1
607
608 check-TESTS:
609 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
610 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
611 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
612 @set +e; $(am__set_TESTS_bases); \
613 log_list=`for i in $$bases; do echo $$i.log; done`; \
614 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
615 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
616 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
617 exit $$?;
618 recheck: all
619 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
620 @set +e; $(am__set_TESTS_bases); \
621 bases=`for i in $$bases; do echo $$i; done \
622 | $(am__list_recheck_tests)` || exit 1; \
623 log_list=`for i in $$bases; do echo $$i.log; done`; \
624 log_list=`echo $$log_list`; \
625 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
626 am__force_recheck=am--force-recheck \
627 TEST_LOGS="$$log_list"; \
628 exit $$?
629 test.sh.log: test.sh
630 @p='test.sh'; \
631 b='test.sh'; \
632 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
633 --log-file $$b.log --trs-file $$b.trs \
634 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
635 "$$tst" $(AM_TESTS_FD_REDIRECT)
636 .test.log:
637 @p='$<'; \
638 $(am__set_b); \
639 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
640 --log-file $$b.log --trs-file $$b.trs \
641 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
642 "$$tst" $(AM_TESTS_FD_REDIRECT)
643 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
644 @am__EXEEXT_TRUE@ @p='$<'; \
645 @am__EXEEXT_TRUE@ $(am__set_b); \
646 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
647 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651 distdir: $(BUILT_SOURCES)
652 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653
654 distdir-am: $(DISTFILES)
655 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
657 list='$(DISTFILES)'; \
658 dist_files=`for file in $$list; do echo $$file; done | \
659 sed -e "s|^$$srcdirstrip/||;t" \
660 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
661 case $$dist_files in \
662 */*) $(MKDIR_P) `echo "$$dist_files" | \
663 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
664 sort -u` ;; \
665 esac; \
666 for file in $$dist_files; do \
667 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
668 if test -d $$d/$$file; then \
669 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
670 if test -d "$(distdir)/$$file"; then \
671 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
672 fi; \
673 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
674 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
675 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
676 fi; \
677 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
678 else \
679 test -f "$(distdir)/$$file" \
680 || cp -p $$d/$$file "$(distdir)/$$file" \
681 || exit 1; \
682 fi; \
683 done
684 check-am: all-am
685 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
686 check: check-am
687 all-am: Makefile
688 installdirs:
689 install: install-am
690 install-exec: install-exec-am
691 install-data: install-data-am
692 uninstall: uninstall-am
693
694 install-am: all-am
695 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
696
697 installcheck: installcheck-am
698 install-strip:
699 if test -z '$(STRIP)'; then \
700 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
701 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
702 install; \
703 else \
704 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
705 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
706 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
707 fi
708 mostlyclean-generic:
709 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
710 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
711 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
712
713 clean-generic:
714 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
715
716 distclean-generic:
717 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
718 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
719
720 maintainer-clean-generic:
721 @echo "This command is intended for maintainers to use"
722 @echo "it deletes files that may require special tools to rebuild."
723 clean: clean-am
724
725 clean-am: clean-generic mostlyclean-am
726
727 distclean: distclean-am
728 -rm -f Makefile
729 distclean-am: clean-am distclean-generic
730
731 dvi: dvi-am
732
733 dvi-am:
734
735 html: html-am
736
737 html-am:
738
739 info: info-am
740
741 info-am:
742
743 install-data-am:
744
745 install-dvi: install-dvi-am
746
747 install-dvi-am:
748
749 install-exec-am:
750
751 install-html: install-html-am
752
753 install-html-am:
754
755 install-info: install-info-am
756
757 install-info-am:
758
759 install-man:
760
761 install-pdf: install-pdf-am
762
763 install-pdf-am:
764
765 install-ps: install-ps-am
766
767 install-ps-am:
768
769 installcheck-am:
770
771 maintainer-clean: maintainer-clean-am
772 -rm -f Makefile
773 maintainer-clean-am: distclean-am maintainer-clean-generic
774
775 mostlyclean: mostlyclean-am
776
777 mostlyclean-am: mostlyclean-generic
778
779 pdf: pdf-am
780
781 pdf-am:
782
783 ps: ps-am
784
785 ps-am:
786
787 uninstall-am:
788
789 .MAKE: check-am install-am install-strip
790
791 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
792 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
793 dvi-am html html-am info info-am install install-am \
794 install-data install-data-am install-dvi install-dvi-am \
795 install-exec install-exec-am install-html install-html-am \
796 install-info install-info-am install-man install-pdf \
797 install-pdf-am install-ps install-ps-am install-strip \
798 installcheck installcheck-am installdirs maintainer-clean \
799 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
800 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
801
802 .PRECIOUS: Makefile
803
804
805 # Tell versions [3.59,3.63) of GNU make to not export all variables.
806 # Otherwise a system limit (for SysV at least) may be exceeded.
807 .NOEXPORT:
0 # Test for LKVM on ARM
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="lkvm"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/lx86
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/lx86/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/lx86/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for IBM PowerVM Lx86 emulator.
1 # Data supplied by Yufang Zhang.
2 # Copyright (C) 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 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
19 expected="powervm_lx86"
20
21 if [ "$output" != "$expected" ]; then
22 echo "$0: test failed because output did not match expected"
23 echo "Expected output was:"
24 echo "----------------------------------------"
25 echo "$expected"
26 echo "----------------------------------------"
27 echo "But the actual output of the program was:"
28 echo "----------------------------------------"
29 echo "$output"
30 echo "----------------------------------------"
31 exit 1
32 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/1/environ \
24 proc/cpuinfo \
25 proc/self/status \
26 sbin/dmidecode \
27 sbin/uname \
28 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/lxc
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/1/environ \
442 proc/cpuinfo \
443 proc/self/status \
444 sbin/dmidecode \
445 sbin/uname \
446 sbin/virt-what-cpuid-helper
447
448 all: all-am
449
450 .SUFFIXES:
451 .SUFFIXES: .log .test .test$(EXEEXT) .trs
452 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
453 @for dep in $?; do \
454 case '$(am__configure_deps)' in \
455 *$$dep*) \
456 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
457 && { if test -f $@; then exit 0; else break; fi; }; \
458 exit 1;; \
459 esac; \
460 done; \
461 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/lxc/Makefile'; \
462 $(am__cd) $(top_srcdir) && \
463 $(AUTOMAKE) --foreign tests/lxc/Makefile
464 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
465 @case '$?' in \
466 *config.status*) \
467 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
468 *) \
469 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
470 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
471 esac;
472
473 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
474 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
475
476 $(top_srcdir)/configure: $(am__configure_deps)
477 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
478 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
479 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
480 $(am__aclocal_m4_deps):
481 tags TAGS:
482
483 ctags CTAGS:
484
485 cscope cscopelist:
486
487
488 # Recover from deleted '.trs' file; this should ensure that
489 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
490 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
491 # to avoid problems with "make -n".
492 .log.trs:
493 rm -f $< $@
494 $(MAKE) $(AM_MAKEFLAGS) $<
495
496 # Leading 'am--fnord' is there to ensure the list of targets does not
497 # expand to empty, as could happen e.g. with make check TESTS=''.
498 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
499 am--force-recheck:
500 @:
501
502 $(TEST_SUITE_LOG): $(TEST_LOGS)
503 @$(am__set_TESTS_bases); \
504 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
505 redo_bases=`for i in $$bases; do \
506 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
507 done`; \
508 if test -n "$$redo_bases"; then \
509 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
510 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
511 if $(am__make_dryrun); then :; else \
512 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
513 fi; \
514 fi; \
515 if test -n "$$am__remaking_logs"; then \
516 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
517 "recursion detected" >&2; \
518 elif test -n "$$redo_logs"; then \
519 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
520 fi; \
521 if $(am__make_dryrun); then :; else \
522 st=0; \
523 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
524 for i in $$redo_bases; do \
525 test -f $$i.trs && test -r $$i.trs \
526 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
527 test -f $$i.log && test -r $$i.log \
528 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
529 done; \
530 test $$st -eq 0 || exit 1; \
531 fi
532 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
533 ws='[ ]'; \
534 results=`for b in $$bases; do echo $$b.trs; done`; \
535 test -n "$$results" || results=/dev/null; \
536 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
537 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
538 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
539 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
540 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
541 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
542 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
543 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
544 success=true; \
545 else \
546 success=false; \
547 fi; \
548 br='==================='; br=$$br$$br$$br$$br; \
549 result_count () \
550 { \
551 if test x"$$1" = x"--maybe-color"; then \
552 maybe_colorize=yes; \
553 elif test x"$$1" = x"--no-color"; then \
554 maybe_colorize=no; \
555 else \
556 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
557 fi; \
558 shift; \
559 desc=$$1 count=$$2; \
560 if test $$maybe_colorize = yes && test $$count -gt 0; then \
561 color_start=$$3 color_end=$$std; \
562 else \
563 color_start= color_end=; \
564 fi; \
565 echo "$${color_start}# $$desc $$count$${color_end}"; \
566 }; \
567 create_testsuite_report () \
568 { \
569 result_count $$1 "TOTAL:" $$all "$$brg"; \
570 result_count $$1 "PASS: " $$pass "$$grn"; \
571 result_count $$1 "SKIP: " $$skip "$$blu"; \
572 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
573 result_count $$1 "FAIL: " $$fail "$$red"; \
574 result_count $$1 "XPASS:" $$xpass "$$red"; \
575 result_count $$1 "ERROR:" $$error "$$mgn"; \
576 }; \
577 { \
578 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
579 $(am__rst_title); \
580 create_testsuite_report --no-color; \
581 echo; \
582 echo ".. contents:: :depth: 2"; \
583 echo; \
584 for b in $$bases; do echo $$b; done \
585 | $(am__create_global_log); \
586 } >$(TEST_SUITE_LOG).tmp || exit 1; \
587 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
588 if $$success; then \
589 col="$$grn"; \
590 else \
591 col="$$red"; \
592 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593 fi; \
594 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
596 echo "$${col}$$br$${std}"; \
597 create_testsuite_report --maybe-color; \
598 echo "$$col$$br$$std"; \
599 if $$success; then :; else \
600 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
601 if test -n "$(PACKAGE_BUGREPORT)"; then \
602 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
603 fi; \
604 echo "$$col$$br$$std"; \
605 fi; \
606 $$success || exit 1
607
608 check-TESTS:
609 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
610 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
611 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
612 @set +e; $(am__set_TESTS_bases); \
613 log_list=`for i in $$bases; do echo $$i.log; done`; \
614 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
615 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
616 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
617 exit $$?;
618 recheck: all
619 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
620 @set +e; $(am__set_TESTS_bases); \
621 bases=`for i in $$bases; do echo $$i; done \
622 | $(am__list_recheck_tests)` || exit 1; \
623 log_list=`for i in $$bases; do echo $$i.log; done`; \
624 log_list=`echo $$log_list`; \
625 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
626 am__force_recheck=am--force-recheck \
627 TEST_LOGS="$$log_list"; \
628 exit $$?
629 test.sh.log: test.sh
630 @p='test.sh'; \
631 b='test.sh'; \
632 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
633 --log-file $$b.log --trs-file $$b.trs \
634 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
635 "$$tst" $(AM_TESTS_FD_REDIRECT)
636 .test.log:
637 @p='$<'; \
638 $(am__set_b); \
639 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
640 --log-file $$b.log --trs-file $$b.trs \
641 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
642 "$$tst" $(AM_TESTS_FD_REDIRECT)
643 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
644 @am__EXEEXT_TRUE@ @p='$<'; \
645 @am__EXEEXT_TRUE@ $(am__set_b); \
646 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
647 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651 distdir: $(BUILT_SOURCES)
652 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653
654 distdir-am: $(DISTFILES)
655 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
657 list='$(DISTFILES)'; \
658 dist_files=`for file in $$list; do echo $$file; done | \
659 sed -e "s|^$$srcdirstrip/||;t" \
660 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
661 case $$dist_files in \
662 */*) $(MKDIR_P) `echo "$$dist_files" | \
663 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
664 sort -u` ;; \
665 esac; \
666 for file in $$dist_files; do \
667 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
668 if test -d $$d/$$file; then \
669 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
670 if test -d "$(distdir)/$$file"; then \
671 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
672 fi; \
673 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
674 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
675 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
676 fi; \
677 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
678 else \
679 test -f "$(distdir)/$$file" \
680 || cp -p $$d/$$file "$(distdir)/$$file" \
681 || exit 1; \
682 fi; \
683 done
684 check-am: all-am
685 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
686 check: check-am
687 all-am: Makefile
688 installdirs:
689 install: install-am
690 install-exec: install-exec-am
691 install-data: install-data-am
692 uninstall: uninstall-am
693
694 install-am: all-am
695 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
696
697 installcheck: installcheck-am
698 install-strip:
699 if test -z '$(STRIP)'; then \
700 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
701 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
702 install; \
703 else \
704 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
705 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
706 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
707 fi
708 mostlyclean-generic:
709 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
710 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
711 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
712
713 clean-generic:
714 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
715
716 distclean-generic:
717 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
718 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
719
720 maintainer-clean-generic:
721 @echo "This command is intended for maintainers to use"
722 @echo "it deletes files that may require special tools to rebuild."
723 clean: clean-am
724
725 clean-am: clean-generic mostlyclean-am
726
727 distclean: distclean-am
728 -rm -f Makefile
729 distclean-am: clean-am distclean-generic
730
731 dvi: dvi-am
732
733 dvi-am:
734
735 html: html-am
736
737 html-am:
738
739 info: info-am
740
741 info-am:
742
743 install-data-am:
744
745 install-dvi: install-dvi-am
746
747 install-dvi-am:
748
749 install-exec-am:
750
751 install-html: install-html-am
752
753 install-html-am:
754
755 install-info: install-info-am
756
757 install-info-am:
758
759 install-man:
760
761 install-pdf: install-pdf-am
762
763 install-pdf-am:
764
765 install-ps: install-ps-am
766
767 install-ps-am:
768
769 installcheck-am:
770
771 maintainer-clean: maintainer-clean-am
772 -rm -f Makefile
773 maintainer-clean-am: distclean-am maintainer-clean-generic
774
775 mostlyclean: mostlyclean-am
776
777 mostlyclean-am: mostlyclean-generic
778
779 pdf: pdf-am
780
781 pdf-am:
782
783 ps: ps-am
784
785 ps-am:
786
787 uninstall-am:
788
789 .MAKE: check-am install-am install-strip
790
791 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
792 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
793 dvi-am html html-am info info-am install install-am \
794 install-data install-data-am install-dvi install-dvi-am \
795 install-exec install-exec-am install-html install-html-am \
796 install-info install-info-am install-man install-pdf \
797 install-pdf-am install-ps install-ps-am install-strip \
798 installcheck installcheck-am installdirs maintainer-clean \
799 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
800 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
801
802 .PRECIOUS: Makefile
803
804
805 # Tell versions [3.59,3.63) of GNU make to not export all variables.
806 # Otherwise a system limit (for SysV at least) may be exceeded.
807 .NOEXPORT:
0 # Test for lxc
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="lxc"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/nutanix-ahv
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/nutanix-ahv/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/nutanix-ahv/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 processor : 0
1 vendor_id : GenuineIntel
2 cpu family : 15
3 model : 6
4 model name : Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz
5 stepping : 1
6 microcode : 0x1
7 cpu MHz : 2199.998
8 cache size : 16384 KB
9 physical id : 0
10 siblings : 1
11 core id : 0
12 cpu cores : 1
13 apicid : 0
14 initial apicid : 0
15 fpu : yes
16 fpu_exception : yes
17 cpuid level : 13
18 wp : yes
19 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc nopl cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 arat md_clear
20 bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
21 bogomips : 4399.99
22 clflush size : 64
23 cache_alignment : 128
24 address sizes : 46 bits physical, 48 bits virtual
25 power management:
26
0 Name: cat
1 Umask: 0022
2 State: R (running)
3 Tgid: 18508
4 Ngid: 0
5 Pid: 18508
6 PPid: 18506
7 TracerPid: 0
8 Uid: 0 0 0 0
9 Gid: 0 0 0 0
10 FDSize: 64
11 Groups: 0
12 NStgid: 18508
13 NSpid: 18508
14 NSpgid: 18506
15 NSsid: 1945
16 VmPeak: 5392 kB
17 VmSize: 5392 kB
18 VmLck: 0 kB
19 VmPin: 0 kB
20 VmHWM: 760 kB
21 VmRSS: 760 kB
22 RssAnon: 68 kB
23 RssFile: 692 kB
24 RssShmem: 0 kB
25 VmData: 312 kB
26 VmStk: 132 kB
27 VmExe: 28 kB
28 VmLib: 1456 kB
29 VmPTE: 48 kB
30 VmSwap: 0 kB
31 HugetlbPages: 0 kB
32 CoreDumping: 0
33 THP_enabled: 1
34 Threads: 1
35 SigQ: 3/7359
36 SigPnd: 0000000000000000
37 ShdPnd: 0000000000000000
38 SigBlk: 0000000000000000
39 SigIgn: 0000000000000000
40 SigCgt: 0000000000000000
41 CapInh: 0000000000000000
42 CapPrm: 0000003fffffffff
43 CapEff: 0000003fffffffff
44 CapBnd: 0000003fffffffff
45 CapAmb: 0000000000000000
46 NoNewPrivs: 0
47 Seccomp: 0
48 Speculation_Store_Bypass: thread vulnerable
49 Cpus_allowed: ffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff
50 Cpus_allowed_list: 0-239
51 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001
52 Mems_allowed_list: 0
53 voluntary_ctxt_switches: 0
54 nonvoluntary_ctxt_switches: 2
0 #!/bin/sh -
1 cat <<'EOF'
2 i# dmidecode 3.2
3 Getting SMBIOS data from sysfs.
4 SMBIOS 2.8 present.
5 9 structures occupying 486 bytes.
6 Table at 0x000F73C0.
7
8 Handle 0x0000, DMI type 0, 24 bytes
9 BIOS Information
10 Vendor: SeaBIOS
11 Version: 1.9.1-5.el6
12 Release Date: 04/01/2014
13 Address: 0xE8000
14 Runtime Size: 96 kB
15 ROM Size: 64 kB
16 Characteristics:
17 BIOS characteristics not supported
18 Targeted content distribution is supported
19 BIOS Revision: 0.0
20
21 Handle 0x0100, DMI type 1, 27 bytes
22 System Information
23 Manufacturer: Nutanix
24 Product Name: AHV
25 Version: RHEL 7.3.0 PC (i440FX + PIIX, 1996)
26 Serial Number: B913C223-EEDE-4DFC-BB43-BE1495F4388D
27 UUID: b913c223-eede-4dfc-bb43-be1495f4388d
28 Wake-up Type: Power Switch
29 SKU Number: Not Specified
30 Family: Red Hat Enterprise Linux
31
32 Handle 0x0300, DMI type 3, 21 bytes
33 Chassis Information
34 Manufacturer: Red Hat
35 Type: Other
36 Lock: Not Present
37 Version: RHEL 7.3.0 PC (i440FX + PIIX, 1996)
38 Serial Number: Not Specified
39 Asset Tag: Not Specified
40 Boot-up State: Safe
41 Power Supply State: Safe
42 Thermal State: Safe
43 Security Status: Unknown
44 OEM Information: 0x00000000
45 Height: Unspecified
46 Number Of Power Cords: Unspecified
47 Contained Elements: 0
48
49 Handle 0x0400, DMI type 4, 42 bytes
50 Processor Information
51 Socket Designation: CPU 0
52 Type: Central Processor
53 Family: Other
54 Manufacturer: Red Hat
55 ID: 61 0F 00 00 FF FB 8B 0F
56 Version: RHEL 7.3.0 PC (i440FX + PIIX, 1996)
57 Voltage: Unknown
58 External Clock: Unknown
59 Max Speed: 2000 MHz
60 Current Speed: 2000 MHz
61 Status: Populated, Enabled
62 Upgrade: Other
63 L1 Cache Handle: Not Provided
64 L2 Cache Handle: Not Provided
65 L3 Cache Handle: Not Provided
66 Serial Number: Not Specified
67 Asset Tag: Not Specified
68 Part Number: Not Specified
69 Core Count: 1
70 Core Enabled: 1
71 Thread Count: 1
72 Characteristics: None
73
74 Handle 0x1000, DMI type 16, 23 bytes
75 Physical Memory Array
76 Location: Other
77 Use: System Memory
78 Error Correction Type: Multi-bit ECC
79 Maximum Capacity: 2 GB
80 Error Information Handle: Not Provided
81 Number Of Devices: 1
82
83 Handle 0x1100, DMI type 17, 40 bytes
84 Memory Device
85 Array Handle: 0x1000
86 Error Information Handle: Not Provided
87 Total Width: Unknown
88 Data Width: Unknown
89 Size: 2048 MB
90 Form Factor: DIMM
91 Set: None
92 Locator: DIMM 0
93 Bank Locator: Not Specified
94 Type: RAM
95 Type Detail: Other
96 Speed: Unknown
97 Manufacturer: Red Hat
98 Serial Number: Not Specified
99 Asset Tag: Not Specified
100 Part Number: Not Specified
101 Rank: Unknown
102 Configured Memory Speed: Unknown
103 Minimum Voltage: Unknown
104 Maximum Voltage: Unknown
105 Configured Voltage: Unknown
106
107 Handle 0x1300, DMI type 19, 31 bytes
108 Memory Array Mapped Address
109 Starting Address: 0x00000000000
110 Ending Address: 0x0007FFFFFFF
111 Range Size: 2 GB
112 Physical Array Handle: 0x1000
113 Partition Width: 1
114
115 Handle 0x2000, DMI type 32, 11 bytes
116 System Boot Information
117 Status: No errors detected
118
119 Handle 0x7F00, DMI type 127, 4 bytes
120 End Of Table
121
122 EOF
0 #!/bin/sh -
1 echo x86_64
0 # Test for Nutanix AHV
1 # Copyright (C) 2019 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="nutanix_ahv"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/parallels-desktop
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/parallels-desktop/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/parallels-desktop/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for Parallels Desktop (data contributed by Justin Clift).
1 # Data taken from Fedora 14 guest running in Parallels on a Mac Mini.
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 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
19 expected="parallels"
20
21 if [ "$output" != "$expected" ]; then
22 echo "$0: test failed because output did not match expected"
23 echo "Expected output was:"
24 echo "----------------------------------------"
25 echo "$expected"
26 echo "----------------------------------------"
27 echo "But the actual output of the program was:"
28 echo "----------------------------------------"
29 echo "$output"
30 echo "----------------------------------------"
31 exit 1
32 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/cgroup \
25 proc/self/status \
26 sbin/dmidecode \
27 sbin/uname \
28 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/podman
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/cgroup \
443 proc/self/status \
444 sbin/dmidecode \
445 sbin/uname \
446 sbin/virt-what-cpuid-helper
447
448 all: all-am
449
450 .SUFFIXES:
451 .SUFFIXES: .log .test .test$(EXEEXT) .trs
452 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
453 @for dep in $?; do \
454 case '$(am__configure_deps)' in \
455 *$$dep*) \
456 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
457 && { if test -f $@; then exit 0; else break; fi; }; \
458 exit 1;; \
459 esac; \
460 done; \
461 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/podman/Makefile'; \
462 $(am__cd) $(top_srcdir) && \
463 $(AUTOMAKE) --foreign tests/podman/Makefile
464 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
465 @case '$?' in \
466 *config.status*) \
467 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
468 *) \
469 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
470 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
471 esac;
472
473 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
474 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
475
476 $(top_srcdir)/configure: $(am__configure_deps)
477 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
478 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
479 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
480 $(am__aclocal_m4_deps):
481 tags TAGS:
482
483 ctags CTAGS:
484
485 cscope cscopelist:
486
487
488 # Recover from deleted '.trs' file; this should ensure that
489 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
490 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
491 # to avoid problems with "make -n".
492 .log.trs:
493 rm -f $< $@
494 $(MAKE) $(AM_MAKEFLAGS) $<
495
496 # Leading 'am--fnord' is there to ensure the list of targets does not
497 # expand to empty, as could happen e.g. with make check TESTS=''.
498 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
499 am--force-recheck:
500 @:
501
502 $(TEST_SUITE_LOG): $(TEST_LOGS)
503 @$(am__set_TESTS_bases); \
504 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
505 redo_bases=`for i in $$bases; do \
506 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
507 done`; \
508 if test -n "$$redo_bases"; then \
509 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
510 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
511 if $(am__make_dryrun); then :; else \
512 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
513 fi; \
514 fi; \
515 if test -n "$$am__remaking_logs"; then \
516 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
517 "recursion detected" >&2; \
518 elif test -n "$$redo_logs"; then \
519 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
520 fi; \
521 if $(am__make_dryrun); then :; else \
522 st=0; \
523 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
524 for i in $$redo_bases; do \
525 test -f $$i.trs && test -r $$i.trs \
526 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
527 test -f $$i.log && test -r $$i.log \
528 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
529 done; \
530 test $$st -eq 0 || exit 1; \
531 fi
532 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
533 ws='[ ]'; \
534 results=`for b in $$bases; do echo $$b.trs; done`; \
535 test -n "$$results" || results=/dev/null; \
536 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
537 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
538 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
539 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
540 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
541 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
542 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
543 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
544 success=true; \
545 else \
546 success=false; \
547 fi; \
548 br='==================='; br=$$br$$br$$br$$br; \
549 result_count () \
550 { \
551 if test x"$$1" = x"--maybe-color"; then \
552 maybe_colorize=yes; \
553 elif test x"$$1" = x"--no-color"; then \
554 maybe_colorize=no; \
555 else \
556 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
557 fi; \
558 shift; \
559 desc=$$1 count=$$2; \
560 if test $$maybe_colorize = yes && test $$count -gt 0; then \
561 color_start=$$3 color_end=$$std; \
562 else \
563 color_start= color_end=; \
564 fi; \
565 echo "$${color_start}# $$desc $$count$${color_end}"; \
566 }; \
567 create_testsuite_report () \
568 { \
569 result_count $$1 "TOTAL:" $$all "$$brg"; \
570 result_count $$1 "PASS: " $$pass "$$grn"; \
571 result_count $$1 "SKIP: " $$skip "$$blu"; \
572 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
573 result_count $$1 "FAIL: " $$fail "$$red"; \
574 result_count $$1 "XPASS:" $$xpass "$$red"; \
575 result_count $$1 "ERROR:" $$error "$$mgn"; \
576 }; \
577 { \
578 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
579 $(am__rst_title); \
580 create_testsuite_report --no-color; \
581 echo; \
582 echo ".. contents:: :depth: 2"; \
583 echo; \
584 for b in $$bases; do echo $$b; done \
585 | $(am__create_global_log); \
586 } >$(TEST_SUITE_LOG).tmp || exit 1; \
587 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
588 if $$success; then \
589 col="$$grn"; \
590 else \
591 col="$$red"; \
592 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593 fi; \
594 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
596 echo "$${col}$$br$${std}"; \
597 create_testsuite_report --maybe-color; \
598 echo "$$col$$br$$std"; \
599 if $$success; then :; else \
600 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
601 if test -n "$(PACKAGE_BUGREPORT)"; then \
602 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
603 fi; \
604 echo "$$col$$br$$std"; \
605 fi; \
606 $$success || exit 1
607
608 check-TESTS:
609 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
610 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
611 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
612 @set +e; $(am__set_TESTS_bases); \
613 log_list=`for i in $$bases; do echo $$i.log; done`; \
614 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
615 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
616 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
617 exit $$?;
618 recheck: all
619 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
620 @set +e; $(am__set_TESTS_bases); \
621 bases=`for i in $$bases; do echo $$i; done \
622 | $(am__list_recheck_tests)` || exit 1; \
623 log_list=`for i in $$bases; do echo $$i.log; done`; \
624 log_list=`echo $$log_list`; \
625 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
626 am__force_recheck=am--force-recheck \
627 TEST_LOGS="$$log_list"; \
628 exit $$?
629 test.sh.log: test.sh
630 @p='test.sh'; \
631 b='test.sh'; \
632 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
633 --log-file $$b.log --trs-file $$b.trs \
634 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
635 "$$tst" $(AM_TESTS_FD_REDIRECT)
636 .test.log:
637 @p='$<'; \
638 $(am__set_b); \
639 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
640 --log-file $$b.log --trs-file $$b.trs \
641 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
642 "$$tst" $(AM_TESTS_FD_REDIRECT)
643 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
644 @am__EXEEXT_TRUE@ @p='$<'; \
645 @am__EXEEXT_TRUE@ $(am__set_b); \
646 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
647 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651 distdir: $(BUILT_SOURCES)
652 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653
654 distdir-am: $(DISTFILES)
655 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
657 list='$(DISTFILES)'; \
658 dist_files=`for file in $$list; do echo $$file; done | \
659 sed -e "s|^$$srcdirstrip/||;t" \
660 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
661 case $$dist_files in \
662 */*) $(MKDIR_P) `echo "$$dist_files" | \
663 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
664 sort -u` ;; \
665 esac; \
666 for file in $$dist_files; do \
667 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
668 if test -d $$d/$$file; then \
669 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
670 if test -d "$(distdir)/$$file"; then \
671 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
672 fi; \
673 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
674 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
675 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
676 fi; \
677 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
678 else \
679 test -f "$(distdir)/$$file" \
680 || cp -p $$d/$$file "$(distdir)/$$file" \
681 || exit 1; \
682 fi; \
683 done
684 check-am: all-am
685 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
686 check: check-am
687 all-am: Makefile
688 installdirs:
689 install: install-am
690 install-exec: install-exec-am
691 install-data: install-data-am
692 uninstall: uninstall-am
693
694 install-am: all-am
695 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
696
697 installcheck: installcheck-am
698 install-strip:
699 if test -z '$(STRIP)'; then \
700 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
701 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
702 install; \
703 else \
704 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
705 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
706 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
707 fi
708 mostlyclean-generic:
709 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
710 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
711 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
712
713 clean-generic:
714 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
715
716 distclean-generic:
717 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
718 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
719
720 maintainer-clean-generic:
721 @echo "This command is intended for maintainers to use"
722 @echo "it deletes files that may require special tools to rebuild."
723 clean: clean-am
724
725 clean-am: clean-generic mostlyclean-am
726
727 distclean: distclean-am
728 -rm -f Makefile
729 distclean-am: clean-am distclean-generic
730
731 dvi: dvi-am
732
733 dvi-am:
734
735 html: html-am
736
737 html-am:
738
739 info: info-am
740
741 info-am:
742
743 install-data-am:
744
745 install-dvi: install-dvi-am
746
747 install-dvi-am:
748
749 install-exec-am:
750
751 install-html: install-html-am
752
753 install-html-am:
754
755 install-info: install-info-am
756
757 install-info-am:
758
759 install-man:
760
761 install-pdf: install-pdf-am
762
763 install-pdf-am:
764
765 install-ps: install-ps-am
766
767 install-ps-am:
768
769 installcheck-am:
770
771 maintainer-clean: maintainer-clean-am
772 -rm -f Makefile
773 maintainer-clean-am: distclean-am maintainer-clean-generic
774
775 mostlyclean: mostlyclean-am
776
777 mostlyclean-am: mostlyclean-generic
778
779 pdf: pdf-am
780
781 pdf-am:
782
783 ps: ps-am
784
785 ps-am:
786
787 uninstall-am:
788
789 .MAKE: check-am install-am install-strip
790
791 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
792 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
793 dvi-am html html-am info info-am install install-am \
794 install-data install-data-am install-dvi install-dvi-am \
795 install-exec install-exec-am install-html install-html-am \
796 install-info install-info-am install-man install-pdf \
797 install-pdf-am install-ps install-ps-am install-strip \
798 installcheck installcheck-am installdirs maintainer-clean \
799 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
800 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
801
802 .PRECIOUS: Makefile
803
804
805 # Tell versions [3.59,3.63) of GNU make to not export all variables.
806 # Otherwise a system limit (for SysV at least) may be exceeded.
807 .NOEXPORT:
(New empty file)
0 11:perf_event:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope
1 10:devices:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope
2 8:pids:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope
3 7:blkio:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope
4 6:cpu,cpuacct:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope
5 5:net_cls,net_prio:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope
6 4:freezer:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope
7 3:cpuset:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope
8 2:memory:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope
9 1:name=systemd:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope
0 #!/bin/sh -
1 cat <<'EOF'
2 # dmidecode 2.11
3 /dev/mem: Operation not permitted
4 EOF
5 exit 1
0 #!/bin/sh -
1 echo x86_64
0 # Test for Podman
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="podman"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 sbin/dmidecode \
25 sbin/uname \
26 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/ppc64-baremetal
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 sbin/dmidecode \
443 sbin/uname \
444 sbin/virt-what-cpuid-helper
445
446 all: all-am
447
448 .SUFFIXES:
449 .SUFFIXES: .log .test .test$(EXEEXT) .trs
450 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
451 @for dep in $?; do \
452 case '$(am__configure_deps)' in \
453 *$$dep*) \
454 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
455 && { if test -f $@; then exit 0; else break; fi; }; \
456 exit 1;; \
457 esac; \
458 done; \
459 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/ppc64-baremetal/Makefile'; \
460 $(am__cd) $(top_srcdir) && \
461 $(AUTOMAKE) --foreign tests/ppc64-baremetal/Makefile
462 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
463 @case '$?' in \
464 *config.status*) \
465 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
466 *) \
467 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
468 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
469 esac;
470
471 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
472 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
473
474 $(top_srcdir)/configure: $(am__configure_deps)
475 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
476 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
477 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
478 $(am__aclocal_m4_deps):
479 tags TAGS:
480
481 ctags CTAGS:
482
483 cscope cscopelist:
484
485
486 # Recover from deleted '.trs' file; this should ensure that
487 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
488 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
489 # to avoid problems with "make -n".
490 .log.trs:
491 rm -f $< $@
492 $(MAKE) $(AM_MAKEFLAGS) $<
493
494 # Leading 'am--fnord' is there to ensure the list of targets does not
495 # expand to empty, as could happen e.g. with make check TESTS=''.
496 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
497 am--force-recheck:
498 @:
499
500 $(TEST_SUITE_LOG): $(TEST_LOGS)
501 @$(am__set_TESTS_bases); \
502 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
503 redo_bases=`for i in $$bases; do \
504 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
505 done`; \
506 if test -n "$$redo_bases"; then \
507 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
508 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
509 if $(am__make_dryrun); then :; else \
510 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
511 fi; \
512 fi; \
513 if test -n "$$am__remaking_logs"; then \
514 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
515 "recursion detected" >&2; \
516 elif test -n "$$redo_logs"; then \
517 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
518 fi; \
519 if $(am__make_dryrun); then :; else \
520 st=0; \
521 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
522 for i in $$redo_bases; do \
523 test -f $$i.trs && test -r $$i.trs \
524 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
525 test -f $$i.log && test -r $$i.log \
526 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
527 done; \
528 test $$st -eq 0 || exit 1; \
529 fi
530 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
531 ws='[ ]'; \
532 results=`for b in $$bases; do echo $$b.trs; done`; \
533 test -n "$$results" || results=/dev/null; \
534 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
535 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
536 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
537 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
538 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
539 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
540 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
541 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
542 success=true; \
543 else \
544 success=false; \
545 fi; \
546 br='==================='; br=$$br$$br$$br$$br; \
547 result_count () \
548 { \
549 if test x"$$1" = x"--maybe-color"; then \
550 maybe_colorize=yes; \
551 elif test x"$$1" = x"--no-color"; then \
552 maybe_colorize=no; \
553 else \
554 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
555 fi; \
556 shift; \
557 desc=$$1 count=$$2; \
558 if test $$maybe_colorize = yes && test $$count -gt 0; then \
559 color_start=$$3 color_end=$$std; \
560 else \
561 color_start= color_end=; \
562 fi; \
563 echo "$${color_start}# $$desc $$count$${color_end}"; \
564 }; \
565 create_testsuite_report () \
566 { \
567 result_count $$1 "TOTAL:" $$all "$$brg"; \
568 result_count $$1 "PASS: " $$pass "$$grn"; \
569 result_count $$1 "SKIP: " $$skip "$$blu"; \
570 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
571 result_count $$1 "FAIL: " $$fail "$$red"; \
572 result_count $$1 "XPASS:" $$xpass "$$red"; \
573 result_count $$1 "ERROR:" $$error "$$mgn"; \
574 }; \
575 { \
576 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
577 $(am__rst_title); \
578 create_testsuite_report --no-color; \
579 echo; \
580 echo ".. contents:: :depth: 2"; \
581 echo; \
582 for b in $$bases; do echo $$b; done \
583 | $(am__create_global_log); \
584 } >$(TEST_SUITE_LOG).tmp || exit 1; \
585 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
586 if $$success; then \
587 col="$$grn"; \
588 else \
589 col="$$red"; \
590 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
591 fi; \
592 echo "$${col}$$br$${std}"; \
593 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
594 echo "$${col}$$br$${std}"; \
595 create_testsuite_report --maybe-color; \
596 echo "$$col$$br$$std"; \
597 if $$success; then :; else \
598 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
599 if test -n "$(PACKAGE_BUGREPORT)"; then \
600 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
601 fi; \
602 echo "$$col$$br$$std"; \
603 fi; \
604 $$success || exit 1
605
606 check-TESTS:
607 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
608 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
609 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
610 @set +e; $(am__set_TESTS_bases); \
611 log_list=`for i in $$bases; do echo $$i.log; done`; \
612 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
613 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
614 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
615 exit $$?;
616 recheck: all
617 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
618 @set +e; $(am__set_TESTS_bases); \
619 bases=`for i in $$bases; do echo $$i; done \
620 | $(am__list_recheck_tests)` || exit 1; \
621 log_list=`for i in $$bases; do echo $$i.log; done`; \
622 log_list=`echo $$log_list`; \
623 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
624 am__force_recheck=am--force-recheck \
625 TEST_LOGS="$$log_list"; \
626 exit $$?
627 test.sh.log: test.sh
628 @p='test.sh'; \
629 b='test.sh'; \
630 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
631 --log-file $$b.log --trs-file $$b.trs \
632 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
633 "$$tst" $(AM_TESTS_FD_REDIRECT)
634 .test.log:
635 @p='$<'; \
636 $(am__set_b); \
637 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
638 --log-file $$b.log --trs-file $$b.trs \
639 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
640 "$$tst" $(AM_TESTS_FD_REDIRECT)
641 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
642 @am__EXEEXT_TRUE@ @p='$<'; \
643 @am__EXEEXT_TRUE@ $(am__set_b); \
644 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
645 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
646 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
647 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
648
649 distdir: $(BUILT_SOURCES)
650 $(MAKE) $(AM_MAKEFLAGS) distdir-am
651
652 distdir-am: $(DISTFILES)
653 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
654 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 list='$(DISTFILES)'; \
656 dist_files=`for file in $$list; do echo $$file; done | \
657 sed -e "s|^$$srcdirstrip/||;t" \
658 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
659 case $$dist_files in \
660 */*) $(MKDIR_P) `echo "$$dist_files" | \
661 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
662 sort -u` ;; \
663 esac; \
664 for file in $$dist_files; do \
665 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
666 if test -d $$d/$$file; then \
667 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
668 if test -d "$(distdir)/$$file"; then \
669 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
670 fi; \
671 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
672 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
673 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
674 fi; \
675 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
676 else \
677 test -f "$(distdir)/$$file" \
678 || cp -p $$d/$$file "$(distdir)/$$file" \
679 || exit 1; \
680 fi; \
681 done
682 check-am: all-am
683 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
684 check: check-am
685 all-am: Makefile
686 installdirs:
687 install: install-am
688 install-exec: install-exec-am
689 install-data: install-data-am
690 uninstall: uninstall-am
691
692 install-am: all-am
693 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
694
695 installcheck: installcheck-am
696 install-strip:
697 if test -z '$(STRIP)'; then \
698 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
699 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
700 install; \
701 else \
702 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
703 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
704 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
705 fi
706 mostlyclean-generic:
707 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
708 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
709 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
710
711 clean-generic:
712 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
713
714 distclean-generic:
715 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
716 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
717
718 maintainer-clean-generic:
719 @echo "This command is intended for maintainers to use"
720 @echo "it deletes files that may require special tools to rebuild."
721 clean: clean-am
722
723 clean-am: clean-generic mostlyclean-am
724
725 distclean: distclean-am
726 -rm -f Makefile
727 distclean-am: clean-am distclean-generic
728
729 dvi: dvi-am
730
731 dvi-am:
732
733 html: html-am
734
735 html-am:
736
737 info: info-am
738
739 info-am:
740
741 install-data-am:
742
743 install-dvi: install-dvi-am
744
745 install-dvi-am:
746
747 install-exec-am:
748
749 install-html: install-html-am
750
751 install-html-am:
752
753 install-info: install-info-am
754
755 install-info-am:
756
757 install-man:
758
759 install-pdf: install-pdf-am
760
761 install-pdf-am:
762
763 install-ps: install-ps-am
764
765 install-ps-am:
766
767 installcheck-am:
768
769 maintainer-clean: maintainer-clean-am
770 -rm -f Makefile
771 maintainer-clean-am: distclean-am maintainer-clean-generic
772
773 mostlyclean: mostlyclean-am
774
775 mostlyclean-am: mostlyclean-generic
776
777 pdf: pdf-am
778
779 pdf-am:
780
781 ps: ps-am
782
783 ps-am:
784
785 uninstall-am:
786
787 .MAKE: check-am install-am install-strip
788
789 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
790 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
791 dvi-am html html-am info info-am install install-am \
792 install-data install-data-am install-dvi install-dvi-am \
793 install-exec install-exec-am install-html install-html-am \
794 install-info install-info-am install-man install-pdf \
795 install-pdf-am install-ps install-ps-am install-strip \
796 installcheck installcheck-am installdirs maintainer-clean \
797 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
798 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
799
800 .PRECIOUS: Makefile
801
802
803 # Tell versions [3.59,3.63) of GNU make to not export all variables.
804 # Otherwise a system limit (for SysV at least) may be exceeded.
805 .NOEXPORT:
0 # Test for ppc64 lpar baremetal (PowerNV)
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected=""
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/ppc64-kvm
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/ppc64-kvm/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/ppc64-kvm/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for kvm on ppc64
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="ibm_power-kvm"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/ppc64/lparcfg \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/ppc64-lpar-dedicated
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/ppc64/lparcfg \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/ppc64-lpar-dedicated/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/ppc64-lpar-dedicated/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for ppc64 lpar guests in dedicated mode
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="ibm_power-lpar_dedicated"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 proc/ppc64/lparcfg \
26 sbin/dmidecode \
27 sbin/uname \
28 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/ppc64-lpar-shared
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 proc/ppc64/lparcfg \
444 sbin/dmidecode \
445 sbin/uname \
446 sbin/virt-what-cpuid-helper
447
448 all: all-am
449
450 .SUFFIXES:
451 .SUFFIXES: .log .test .test$(EXEEXT) .trs
452 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
453 @for dep in $?; do \
454 case '$(am__configure_deps)' in \
455 *$$dep*) \
456 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
457 && { if test -f $@; then exit 0; else break; fi; }; \
458 exit 1;; \
459 esac; \
460 done; \
461 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/ppc64-lpar-shared/Makefile'; \
462 $(am__cd) $(top_srcdir) && \
463 $(AUTOMAKE) --foreign tests/ppc64-lpar-shared/Makefile
464 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
465 @case '$?' in \
466 *config.status*) \
467 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
468 *) \
469 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
470 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
471 esac;
472
473 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
474 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
475
476 $(top_srcdir)/configure: $(am__configure_deps)
477 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
478 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
479 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
480 $(am__aclocal_m4_deps):
481 tags TAGS:
482
483 ctags CTAGS:
484
485 cscope cscopelist:
486
487
488 # Recover from deleted '.trs' file; this should ensure that
489 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
490 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
491 # to avoid problems with "make -n".
492 .log.trs:
493 rm -f $< $@
494 $(MAKE) $(AM_MAKEFLAGS) $<
495
496 # Leading 'am--fnord' is there to ensure the list of targets does not
497 # expand to empty, as could happen e.g. with make check TESTS=''.
498 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
499 am--force-recheck:
500 @:
501
502 $(TEST_SUITE_LOG): $(TEST_LOGS)
503 @$(am__set_TESTS_bases); \
504 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
505 redo_bases=`for i in $$bases; do \
506 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
507 done`; \
508 if test -n "$$redo_bases"; then \
509 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
510 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
511 if $(am__make_dryrun); then :; else \
512 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
513 fi; \
514 fi; \
515 if test -n "$$am__remaking_logs"; then \
516 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
517 "recursion detected" >&2; \
518 elif test -n "$$redo_logs"; then \
519 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
520 fi; \
521 if $(am__make_dryrun); then :; else \
522 st=0; \
523 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
524 for i in $$redo_bases; do \
525 test -f $$i.trs && test -r $$i.trs \
526 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
527 test -f $$i.log && test -r $$i.log \
528 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
529 done; \
530 test $$st -eq 0 || exit 1; \
531 fi
532 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
533 ws='[ ]'; \
534 results=`for b in $$bases; do echo $$b.trs; done`; \
535 test -n "$$results" || results=/dev/null; \
536 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
537 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
538 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
539 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
540 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
541 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
542 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
543 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
544 success=true; \
545 else \
546 success=false; \
547 fi; \
548 br='==================='; br=$$br$$br$$br$$br; \
549 result_count () \
550 { \
551 if test x"$$1" = x"--maybe-color"; then \
552 maybe_colorize=yes; \
553 elif test x"$$1" = x"--no-color"; then \
554 maybe_colorize=no; \
555 else \
556 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
557 fi; \
558 shift; \
559 desc=$$1 count=$$2; \
560 if test $$maybe_colorize = yes && test $$count -gt 0; then \
561 color_start=$$3 color_end=$$std; \
562 else \
563 color_start= color_end=; \
564 fi; \
565 echo "$${color_start}# $$desc $$count$${color_end}"; \
566 }; \
567 create_testsuite_report () \
568 { \
569 result_count $$1 "TOTAL:" $$all "$$brg"; \
570 result_count $$1 "PASS: " $$pass "$$grn"; \
571 result_count $$1 "SKIP: " $$skip "$$blu"; \
572 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
573 result_count $$1 "FAIL: " $$fail "$$red"; \
574 result_count $$1 "XPASS:" $$xpass "$$red"; \
575 result_count $$1 "ERROR:" $$error "$$mgn"; \
576 }; \
577 { \
578 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
579 $(am__rst_title); \
580 create_testsuite_report --no-color; \
581 echo; \
582 echo ".. contents:: :depth: 2"; \
583 echo; \
584 for b in $$bases; do echo $$b; done \
585 | $(am__create_global_log); \
586 } >$(TEST_SUITE_LOG).tmp || exit 1; \
587 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
588 if $$success; then \
589 col="$$grn"; \
590 else \
591 col="$$red"; \
592 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593 fi; \
594 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
596 echo "$${col}$$br$${std}"; \
597 create_testsuite_report --maybe-color; \
598 echo "$$col$$br$$std"; \
599 if $$success; then :; else \
600 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
601 if test -n "$(PACKAGE_BUGREPORT)"; then \
602 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
603 fi; \
604 echo "$$col$$br$$std"; \
605 fi; \
606 $$success || exit 1
607
608 check-TESTS:
609 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
610 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
611 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
612 @set +e; $(am__set_TESTS_bases); \
613 log_list=`for i in $$bases; do echo $$i.log; done`; \
614 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
615 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
616 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
617 exit $$?;
618 recheck: all
619 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
620 @set +e; $(am__set_TESTS_bases); \
621 bases=`for i in $$bases; do echo $$i; done \
622 | $(am__list_recheck_tests)` || exit 1; \
623 log_list=`for i in $$bases; do echo $$i.log; done`; \
624 log_list=`echo $$log_list`; \
625 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
626 am__force_recheck=am--force-recheck \
627 TEST_LOGS="$$log_list"; \
628 exit $$?
629 test.sh.log: test.sh
630 @p='test.sh'; \
631 b='test.sh'; \
632 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
633 --log-file $$b.log --trs-file $$b.trs \
634 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
635 "$$tst" $(AM_TESTS_FD_REDIRECT)
636 .test.log:
637 @p='$<'; \
638 $(am__set_b); \
639 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
640 --log-file $$b.log --trs-file $$b.trs \
641 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
642 "$$tst" $(AM_TESTS_FD_REDIRECT)
643 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
644 @am__EXEEXT_TRUE@ @p='$<'; \
645 @am__EXEEXT_TRUE@ $(am__set_b); \
646 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
647 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651 distdir: $(BUILT_SOURCES)
652 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653
654 distdir-am: $(DISTFILES)
655 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
657 list='$(DISTFILES)'; \
658 dist_files=`for file in $$list; do echo $$file; done | \
659 sed -e "s|^$$srcdirstrip/||;t" \
660 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
661 case $$dist_files in \
662 */*) $(MKDIR_P) `echo "$$dist_files" | \
663 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
664 sort -u` ;; \
665 esac; \
666 for file in $$dist_files; do \
667 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
668 if test -d $$d/$$file; then \
669 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
670 if test -d "$(distdir)/$$file"; then \
671 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
672 fi; \
673 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
674 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
675 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
676 fi; \
677 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
678 else \
679 test -f "$(distdir)/$$file" \
680 || cp -p $$d/$$file "$(distdir)/$$file" \
681 || exit 1; \
682 fi; \
683 done
684 check-am: all-am
685 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
686 check: check-am
687 all-am: Makefile
688 installdirs:
689 install: install-am
690 install-exec: install-exec-am
691 install-data: install-data-am
692 uninstall: uninstall-am
693
694 install-am: all-am
695 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
696
697 installcheck: installcheck-am
698 install-strip:
699 if test -z '$(STRIP)'; then \
700 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
701 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
702 install; \
703 else \
704 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
705 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
706 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
707 fi
708 mostlyclean-generic:
709 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
710 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
711 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
712
713 clean-generic:
714 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
715
716 distclean-generic:
717 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
718 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
719
720 maintainer-clean-generic:
721 @echo "This command is intended for maintainers to use"
722 @echo "it deletes files that may require special tools to rebuild."
723 clean: clean-am
724
725 clean-am: clean-generic mostlyclean-am
726
727 distclean: distclean-am
728 -rm -f Makefile
729 distclean-am: clean-am distclean-generic
730
731 dvi: dvi-am
732
733 dvi-am:
734
735 html: html-am
736
737 html-am:
738
739 info: info-am
740
741 info-am:
742
743 install-data-am:
744
745 install-dvi: install-dvi-am
746
747 install-dvi-am:
748
749 install-exec-am:
750
751 install-html: install-html-am
752
753 install-html-am:
754
755 install-info: install-info-am
756
757 install-info-am:
758
759 install-man:
760
761 install-pdf: install-pdf-am
762
763 install-pdf-am:
764
765 install-ps: install-ps-am
766
767 install-ps-am:
768
769 installcheck-am:
770
771 maintainer-clean: maintainer-clean-am
772 -rm -f Makefile
773 maintainer-clean-am: distclean-am maintainer-clean-generic
774
775 mostlyclean: mostlyclean-am
776
777 mostlyclean-am: mostlyclean-generic
778
779 pdf: pdf-am
780
781 pdf-am:
782
783 ps: ps-am
784
785 ps-am:
786
787 uninstall-am:
788
789 .MAKE: check-am install-am install-strip
790
791 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
792 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
793 dvi-am html html-am info info-am install install-am \
794 install-data install-data-am install-dvi install-dvi-am \
795 install-exec install-exec-am install-html install-html-am \
796 install-info install-info-am install-man install-pdf \
797 install-pdf-am install-ps install-ps-am install-strip \
798 installcheck installcheck-am installdirs maintainer-clean \
799 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
800 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
801
802 .PRECIOUS: Makefile
803
804
805 # Tell versions [3.59,3.63) of GNU make to not export all variables.
806 # Otherwise a system limit (for SysV at least) may be exceeded.
807 .NOEXPORT:
0 # Test for ppc64 lpar guests in shared mode
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="ibm_power-lpar_shared"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/qemu
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/qemu/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/qemu/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for qemu
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="qemu"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/device-tree/fw-cfg@9020000/compatible \
25 proc/self/status \
26 sbin/dmidecode \
27 sbin/uname \
28 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/qemu-arm
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/device-tree/fw-cfg@9020000/compatible \
443 proc/self/status \
444 sbin/dmidecode \
445 sbin/uname \
446 sbin/virt-what-cpuid-helper
447
448 all: all-am
449
450 .SUFFIXES:
451 .SUFFIXES: .log .test .test$(EXEEXT) .trs
452 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
453 @for dep in $?; do \
454 case '$(am__configure_deps)' in \
455 *$$dep*) \
456 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
457 && { if test -f $@; then exit 0; else break; fi; }; \
458 exit 1;; \
459 esac; \
460 done; \
461 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/qemu-arm/Makefile'; \
462 $(am__cd) $(top_srcdir) && \
463 $(AUTOMAKE) --foreign tests/qemu-arm/Makefile
464 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
465 @case '$?' in \
466 *config.status*) \
467 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
468 *) \
469 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
470 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
471 esac;
472
473 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
474 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
475
476 $(top_srcdir)/configure: $(am__configure_deps)
477 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
478 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
479 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
480 $(am__aclocal_m4_deps):
481 tags TAGS:
482
483 ctags CTAGS:
484
485 cscope cscopelist:
486
487
488 # Recover from deleted '.trs' file; this should ensure that
489 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
490 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
491 # to avoid problems with "make -n".
492 .log.trs:
493 rm -f $< $@
494 $(MAKE) $(AM_MAKEFLAGS) $<
495
496 # Leading 'am--fnord' is there to ensure the list of targets does not
497 # expand to empty, as could happen e.g. with make check TESTS=''.
498 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
499 am--force-recheck:
500 @:
501
502 $(TEST_SUITE_LOG): $(TEST_LOGS)
503 @$(am__set_TESTS_bases); \
504 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
505 redo_bases=`for i in $$bases; do \
506 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
507 done`; \
508 if test -n "$$redo_bases"; then \
509 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
510 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
511 if $(am__make_dryrun); then :; else \
512 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
513 fi; \
514 fi; \
515 if test -n "$$am__remaking_logs"; then \
516 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
517 "recursion detected" >&2; \
518 elif test -n "$$redo_logs"; then \
519 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
520 fi; \
521 if $(am__make_dryrun); then :; else \
522 st=0; \
523 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
524 for i in $$redo_bases; do \
525 test -f $$i.trs && test -r $$i.trs \
526 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
527 test -f $$i.log && test -r $$i.log \
528 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
529 done; \
530 test $$st -eq 0 || exit 1; \
531 fi
532 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
533 ws='[ ]'; \
534 results=`for b in $$bases; do echo $$b.trs; done`; \
535 test -n "$$results" || results=/dev/null; \
536 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
537 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
538 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
539 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
540 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
541 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
542 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
543 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
544 success=true; \
545 else \
546 success=false; \
547 fi; \
548 br='==================='; br=$$br$$br$$br$$br; \
549 result_count () \
550 { \
551 if test x"$$1" = x"--maybe-color"; then \
552 maybe_colorize=yes; \
553 elif test x"$$1" = x"--no-color"; then \
554 maybe_colorize=no; \
555 else \
556 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
557 fi; \
558 shift; \
559 desc=$$1 count=$$2; \
560 if test $$maybe_colorize = yes && test $$count -gt 0; then \
561 color_start=$$3 color_end=$$std; \
562 else \
563 color_start= color_end=; \
564 fi; \
565 echo "$${color_start}# $$desc $$count$${color_end}"; \
566 }; \
567 create_testsuite_report () \
568 { \
569 result_count $$1 "TOTAL:" $$all "$$brg"; \
570 result_count $$1 "PASS: " $$pass "$$grn"; \
571 result_count $$1 "SKIP: " $$skip "$$blu"; \
572 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
573 result_count $$1 "FAIL: " $$fail "$$red"; \
574 result_count $$1 "XPASS:" $$xpass "$$red"; \
575 result_count $$1 "ERROR:" $$error "$$mgn"; \
576 }; \
577 { \
578 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
579 $(am__rst_title); \
580 create_testsuite_report --no-color; \
581 echo; \
582 echo ".. contents:: :depth: 2"; \
583 echo; \
584 for b in $$bases; do echo $$b; done \
585 | $(am__create_global_log); \
586 } >$(TEST_SUITE_LOG).tmp || exit 1; \
587 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
588 if $$success; then \
589 col="$$grn"; \
590 else \
591 col="$$red"; \
592 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593 fi; \
594 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
596 echo "$${col}$$br$${std}"; \
597 create_testsuite_report --maybe-color; \
598 echo "$$col$$br$$std"; \
599 if $$success; then :; else \
600 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
601 if test -n "$(PACKAGE_BUGREPORT)"; then \
602 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
603 fi; \
604 echo "$$col$$br$$std"; \
605 fi; \
606 $$success || exit 1
607
608 check-TESTS:
609 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
610 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
611 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
612 @set +e; $(am__set_TESTS_bases); \
613 log_list=`for i in $$bases; do echo $$i.log; done`; \
614 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
615 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
616 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
617 exit $$?;
618 recheck: all
619 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
620 @set +e; $(am__set_TESTS_bases); \
621 bases=`for i in $$bases; do echo $$i; done \
622 | $(am__list_recheck_tests)` || exit 1; \
623 log_list=`for i in $$bases; do echo $$i.log; done`; \
624 log_list=`echo $$log_list`; \
625 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
626 am__force_recheck=am--force-recheck \
627 TEST_LOGS="$$log_list"; \
628 exit $$?
629 test.sh.log: test.sh
630 @p='test.sh'; \
631 b='test.sh'; \
632 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
633 --log-file $$b.log --trs-file $$b.trs \
634 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
635 "$$tst" $(AM_TESTS_FD_REDIRECT)
636 .test.log:
637 @p='$<'; \
638 $(am__set_b); \
639 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
640 --log-file $$b.log --trs-file $$b.trs \
641 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
642 "$$tst" $(AM_TESTS_FD_REDIRECT)
643 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
644 @am__EXEEXT_TRUE@ @p='$<'; \
645 @am__EXEEXT_TRUE@ $(am__set_b); \
646 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
647 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651 distdir: $(BUILT_SOURCES)
652 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653
654 distdir-am: $(DISTFILES)
655 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
657 list='$(DISTFILES)'; \
658 dist_files=`for file in $$list; do echo $$file; done | \
659 sed -e "s|^$$srcdirstrip/||;t" \
660 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
661 case $$dist_files in \
662 */*) $(MKDIR_P) `echo "$$dist_files" | \
663 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
664 sort -u` ;; \
665 esac; \
666 for file in $$dist_files; do \
667 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
668 if test -d $$d/$$file; then \
669 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
670 if test -d "$(distdir)/$$file"; then \
671 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
672 fi; \
673 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
674 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
675 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
676 fi; \
677 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
678 else \
679 test -f "$(distdir)/$$file" \
680 || cp -p $$d/$$file "$(distdir)/$$file" \
681 || exit 1; \
682 fi; \
683 done
684 check-am: all-am
685 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
686 check: check-am
687 all-am: Makefile
688 installdirs:
689 install: install-am
690 install-exec: install-exec-am
691 install-data: install-data-am
692 uninstall: uninstall-am
693
694 install-am: all-am
695 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
696
697 installcheck: installcheck-am
698 install-strip:
699 if test -z '$(STRIP)'; then \
700 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
701 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
702 install; \
703 else \
704 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
705 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
706 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
707 fi
708 mostlyclean-generic:
709 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
710 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
711 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
712
713 clean-generic:
714 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
715
716 distclean-generic:
717 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
718 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
719
720 maintainer-clean-generic:
721 @echo "This command is intended for maintainers to use"
722 @echo "it deletes files that may require special tools to rebuild."
723 clean: clean-am
724
725 clean-am: clean-generic mostlyclean-am
726
727 distclean: distclean-am
728 -rm -f Makefile
729 distclean-am: clean-am distclean-generic
730
731 dvi: dvi-am
732
733 dvi-am:
734
735 html: html-am
736
737 html-am:
738
739 info: info-am
740
741 info-am:
742
743 install-data-am:
744
745 install-dvi: install-dvi-am
746
747 install-dvi-am:
748
749 install-exec-am:
750
751 install-html: install-html-am
752
753 install-html-am:
754
755 install-info: install-info-am
756
757 install-info-am:
758
759 install-man:
760
761 install-pdf: install-pdf-am
762
763 install-pdf-am:
764
765 install-ps: install-ps-am
766
767 install-ps-am:
768
769 installcheck-am:
770
771 maintainer-clean: maintainer-clean-am
772 -rm -f Makefile
773 maintainer-clean-am: distclean-am maintainer-clean-generic
774
775 mostlyclean: mostlyclean-am
776
777 mostlyclean-am: mostlyclean-generic
778
779 pdf: pdf-am
780
781 pdf-am:
782
783 ps: ps-am
784
785 ps-am:
786
787 uninstall-am:
788
789 .MAKE: check-am install-am install-strip
790
791 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
792 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
793 dvi-am html html-am info info-am install install-am \
794 install-data install-data-am install-dvi install-dvi-am \
795 install-exec install-exec-am install-html install-html-am \
796 install-info install-info-am install-man install-pdf \
797 install-pdf-am install-ps install-ps-am install-strip \
798 installcheck installcheck-am installdirs maintainer-clean \
799 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
800 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
801
802 .PRECIOUS: Makefile
803
804
805 # Tell versions [3.59,3.63) of GNU make to not export all variables.
806 # Otherwise a system limit (for SysV at least) may be exceeded.
807 .NOEXPORT:
0 # Test for qemu on ARM
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="qemu"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/qemu-smbios
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/qemu-smbios/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/qemu-smbios/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for qemu on ARM
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="qemu"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/qemu-smbios-kvm
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/qemu-smbios-kvm/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/qemu-smbios-kvm/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for qemu on ARM
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="kvm"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 proc/xen/balloon \
26 proc/xen/capabilities \
27 proc/xen/privcmd \
28 proc/xen/xenbus \
29 proc/xen/xsd_kva \
30 proc/xen/xsd_port \
31 sbin/dmidecode \
32 sbin/uname \
33 sbin/virt-what-cpuid-helper \
34 sys/hypervisor/properties/pagesize \
35 sys/hypervisor/properties/changeset \
36 sys/hypervisor/properties/virtual_start \
37 sys/hypervisor/properties/capabilities \
38 sys/hypervisor/properties/writable_pt \
39 sys/hypervisor/type \
40 sys/hypervisor/vmcoreinfo \
41 sys/hypervisor/version/minor \
42 sys/hypervisor/version/major \
43 sys/hypervisor/version/extra \
44 sys/hypervisor/compilation/compiler \
45 sys/hypervisor/compilation/compiled_by \
46 sys/hypervisor/compilation/compile_date \
47 sys/hypervisor/uuid
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/rhel5-xen-dom0
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 proc/xen/balloon \
444 proc/xen/capabilities \
445 proc/xen/privcmd \
446 proc/xen/xenbus \
447 proc/xen/xsd_kva \
448 proc/xen/xsd_port \
449 sbin/dmidecode \
450 sbin/uname \
451 sbin/virt-what-cpuid-helper \
452 sys/hypervisor/properties/pagesize \
453 sys/hypervisor/properties/changeset \
454 sys/hypervisor/properties/virtual_start \
455 sys/hypervisor/properties/capabilities \
456 sys/hypervisor/properties/writable_pt \
457 sys/hypervisor/type \
458 sys/hypervisor/vmcoreinfo \
459 sys/hypervisor/version/minor \
460 sys/hypervisor/version/major \
461 sys/hypervisor/version/extra \
462 sys/hypervisor/compilation/compiler \
463 sys/hypervisor/compilation/compiled_by \
464 sys/hypervisor/compilation/compile_date \
465 sys/hypervisor/uuid
466
467 all: all-am
468
469 .SUFFIXES:
470 .SUFFIXES: .log .test .test$(EXEEXT) .trs
471 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
472 @for dep in $?; do \
473 case '$(am__configure_deps)' in \
474 *$$dep*) \
475 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
476 && { if test -f $@; then exit 0; else break; fi; }; \
477 exit 1;; \
478 esac; \
479 done; \
480 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/rhel5-xen-dom0/Makefile'; \
481 $(am__cd) $(top_srcdir) && \
482 $(AUTOMAKE) --foreign tests/rhel5-xen-dom0/Makefile
483 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
484 @case '$?' in \
485 *config.status*) \
486 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
487 *) \
488 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
489 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
490 esac;
491
492 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
493 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
494
495 $(top_srcdir)/configure: $(am__configure_deps)
496 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
497 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
498 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
499 $(am__aclocal_m4_deps):
500 tags TAGS:
501
502 ctags CTAGS:
503
504 cscope cscopelist:
505
506
507 # Recover from deleted '.trs' file; this should ensure that
508 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
509 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
510 # to avoid problems with "make -n".
511 .log.trs:
512 rm -f $< $@
513 $(MAKE) $(AM_MAKEFLAGS) $<
514
515 # Leading 'am--fnord' is there to ensure the list of targets does not
516 # expand to empty, as could happen e.g. with make check TESTS=''.
517 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
518 am--force-recheck:
519 @:
520
521 $(TEST_SUITE_LOG): $(TEST_LOGS)
522 @$(am__set_TESTS_bases); \
523 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
524 redo_bases=`for i in $$bases; do \
525 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
526 done`; \
527 if test -n "$$redo_bases"; then \
528 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
529 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
530 if $(am__make_dryrun); then :; else \
531 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
532 fi; \
533 fi; \
534 if test -n "$$am__remaking_logs"; then \
535 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
536 "recursion detected" >&2; \
537 elif test -n "$$redo_logs"; then \
538 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
539 fi; \
540 if $(am__make_dryrun); then :; else \
541 st=0; \
542 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
543 for i in $$redo_bases; do \
544 test -f $$i.trs && test -r $$i.trs \
545 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
546 test -f $$i.log && test -r $$i.log \
547 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
548 done; \
549 test $$st -eq 0 || exit 1; \
550 fi
551 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
552 ws='[ ]'; \
553 results=`for b in $$bases; do echo $$b.trs; done`; \
554 test -n "$$results" || results=/dev/null; \
555 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
556 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
557 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
558 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
559 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
560 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
561 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
562 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
563 success=true; \
564 else \
565 success=false; \
566 fi; \
567 br='==================='; br=$$br$$br$$br$$br; \
568 result_count () \
569 { \
570 if test x"$$1" = x"--maybe-color"; then \
571 maybe_colorize=yes; \
572 elif test x"$$1" = x"--no-color"; then \
573 maybe_colorize=no; \
574 else \
575 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
576 fi; \
577 shift; \
578 desc=$$1 count=$$2; \
579 if test $$maybe_colorize = yes && test $$count -gt 0; then \
580 color_start=$$3 color_end=$$std; \
581 else \
582 color_start= color_end=; \
583 fi; \
584 echo "$${color_start}# $$desc $$count$${color_end}"; \
585 }; \
586 create_testsuite_report () \
587 { \
588 result_count $$1 "TOTAL:" $$all "$$brg"; \
589 result_count $$1 "PASS: " $$pass "$$grn"; \
590 result_count $$1 "SKIP: " $$skip "$$blu"; \
591 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
592 result_count $$1 "FAIL: " $$fail "$$red"; \
593 result_count $$1 "XPASS:" $$xpass "$$red"; \
594 result_count $$1 "ERROR:" $$error "$$mgn"; \
595 }; \
596 { \
597 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
598 $(am__rst_title); \
599 create_testsuite_report --no-color; \
600 echo; \
601 echo ".. contents:: :depth: 2"; \
602 echo; \
603 for b in $$bases; do echo $$b; done \
604 | $(am__create_global_log); \
605 } >$(TEST_SUITE_LOG).tmp || exit 1; \
606 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
607 if $$success; then \
608 col="$$grn"; \
609 else \
610 col="$$red"; \
611 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
612 fi; \
613 echo "$${col}$$br$${std}"; \
614 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
615 echo "$${col}$$br$${std}"; \
616 create_testsuite_report --maybe-color; \
617 echo "$$col$$br$$std"; \
618 if $$success; then :; else \
619 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
620 if test -n "$(PACKAGE_BUGREPORT)"; then \
621 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
622 fi; \
623 echo "$$col$$br$$std"; \
624 fi; \
625 $$success || exit 1
626
627 check-TESTS:
628 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
629 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
630 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
631 @set +e; $(am__set_TESTS_bases); \
632 log_list=`for i in $$bases; do echo $$i.log; done`; \
633 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
634 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
635 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
636 exit $$?;
637 recheck: all
638 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
639 @set +e; $(am__set_TESTS_bases); \
640 bases=`for i in $$bases; do echo $$i; done \
641 | $(am__list_recheck_tests)` || exit 1; \
642 log_list=`for i in $$bases; do echo $$i.log; done`; \
643 log_list=`echo $$log_list`; \
644 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
645 am__force_recheck=am--force-recheck \
646 TEST_LOGS="$$log_list"; \
647 exit $$?
648 test.sh.log: test.sh
649 @p='test.sh'; \
650 b='test.sh'; \
651 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
652 --log-file $$b.log --trs-file $$b.trs \
653 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
654 "$$tst" $(AM_TESTS_FD_REDIRECT)
655 .test.log:
656 @p='$<'; \
657 $(am__set_b); \
658 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
659 --log-file $$b.log --trs-file $$b.trs \
660 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
661 "$$tst" $(AM_TESTS_FD_REDIRECT)
662 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
663 @am__EXEEXT_TRUE@ @p='$<'; \
664 @am__EXEEXT_TRUE@ $(am__set_b); \
665 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
666 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
667 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
668 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
669
670 distdir: $(BUILT_SOURCES)
671 $(MAKE) $(AM_MAKEFLAGS) distdir-am
672
673 distdir-am: $(DISTFILES)
674 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
675 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
676 list='$(DISTFILES)'; \
677 dist_files=`for file in $$list; do echo $$file; done | \
678 sed -e "s|^$$srcdirstrip/||;t" \
679 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
680 case $$dist_files in \
681 */*) $(MKDIR_P) `echo "$$dist_files" | \
682 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
683 sort -u` ;; \
684 esac; \
685 for file in $$dist_files; do \
686 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
687 if test -d $$d/$$file; then \
688 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
689 if test -d "$(distdir)/$$file"; then \
690 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
691 fi; \
692 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
693 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
694 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
695 fi; \
696 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
697 else \
698 test -f "$(distdir)/$$file" \
699 || cp -p $$d/$$file "$(distdir)/$$file" \
700 || exit 1; \
701 fi; \
702 done
703 check-am: all-am
704 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
705 check: check-am
706 all-am: Makefile
707 installdirs:
708 install: install-am
709 install-exec: install-exec-am
710 install-data: install-data-am
711 uninstall: uninstall-am
712
713 install-am: all-am
714 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
715
716 installcheck: installcheck-am
717 install-strip:
718 if test -z '$(STRIP)'; then \
719 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
720 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
721 install; \
722 else \
723 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
724 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
725 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
726 fi
727 mostlyclean-generic:
728 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
729 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
730 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
731
732 clean-generic:
733 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
734
735 distclean-generic:
736 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
737 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
738
739 maintainer-clean-generic:
740 @echo "This command is intended for maintainers to use"
741 @echo "it deletes files that may require special tools to rebuild."
742 clean: clean-am
743
744 clean-am: clean-generic mostlyclean-am
745
746 distclean: distclean-am
747 -rm -f Makefile
748 distclean-am: clean-am distclean-generic
749
750 dvi: dvi-am
751
752 dvi-am:
753
754 html: html-am
755
756 html-am:
757
758 info: info-am
759
760 info-am:
761
762 install-data-am:
763
764 install-dvi: install-dvi-am
765
766 install-dvi-am:
767
768 install-exec-am:
769
770 install-html: install-html-am
771
772 install-html-am:
773
774 install-info: install-info-am
775
776 install-info-am:
777
778 install-man:
779
780 install-pdf: install-pdf-am
781
782 install-pdf-am:
783
784 install-ps: install-ps-am
785
786 install-ps-am:
787
788 installcheck-am:
789
790 maintainer-clean: maintainer-clean-am
791 -rm -f Makefile
792 maintainer-clean-am: distclean-am maintainer-clean-generic
793
794 mostlyclean: mostlyclean-am
795
796 mostlyclean-am: mostlyclean-generic
797
798 pdf: pdf-am
799
800 pdf-am:
801
802 ps: ps-am
803
804 ps-am:
805
806 uninstall-am:
807
808 .MAKE: check-am install-am install-strip
809
810 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
811 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
812 dvi-am html html-am info info-am install install-am \
813 install-data install-data-am install-dvi install-dvi-am \
814 install-exec install-exec-am install-html install-html-am \
815 install-info install-info-am install-man install-pdf \
816 install-pdf-am install-ps install-ps-am install-strip \
817 installcheck installcheck-am installdirs maintainer-clean \
818 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
819 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
820
821 .PRECIOUS: Makefile
822
823
824 # Tell versions [3.59,3.63) of GNU make to not export all variables.
825 # Otherwise a system limit (for SysV at least) may be exceeded.
826 .NOEXPORT:
0 # Test for RHEL 5 Xen Dom0.
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="xen
19 xen-dom0"
20
21 if [ "$output" != "$expected" ]; then
22 echo "$0: test failed because output did not match expected"
23 echo "Expected output was:"
24 echo "----------------------------------------"
25 echo "$expected"
26 echo "----------------------------------------"
27 echo "But the actual output of the program was:"
28 echo "----------------------------------------"
29 echo "$output"
30 echo "----------------------------------------"
31 exit 1
32 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/rhel5-xen-domU-hvm
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/rhel5-xen-domU-hvm/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/rhel5-xen-domU-hvm/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for RHEL 5 Xen DomU HVM (aka full virtualization).
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="xen
19 xen-hvm"
20
21 if [ "$output" != "$expected" ]; then
22 echo "$0: test failed because output did not match expected"
23 echo "Expected output was:"
24 echo "----------------------------------------"
25 echo "$expected"
26 echo "----------------------------------------"
27 echo "But the actual output of the program was:"
28 echo "----------------------------------------"
29 echo "$output"
30 echo "----------------------------------------"
31 exit 1
32 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper \
28 sys/bus/xen/drivers/vbd/bind \
29 sys/bus/xen/drivers/vbd/unbind \
30 sys/bus/xen/drivers/vif/bind \
31 sys/bus/xen/drivers/vif/unbind \
32 sys/bus/xen/drivers_probe
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/rhel5-xen-domU-hvm-ia64
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper \
446 sys/bus/xen/drivers/vbd/bind \
447 sys/bus/xen/drivers/vbd/unbind \
448 sys/bus/xen/drivers/vif/bind \
449 sys/bus/xen/drivers/vif/unbind \
450 sys/bus/xen/drivers_probe
451
452 all: all-am
453
454 .SUFFIXES:
455 .SUFFIXES: .log .test .test$(EXEEXT) .trs
456 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
457 @for dep in $?; do \
458 case '$(am__configure_deps)' in \
459 *$$dep*) \
460 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
461 && { if test -f $@; then exit 0; else break; fi; }; \
462 exit 1;; \
463 esac; \
464 done; \
465 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/rhel5-xen-domU-hvm-ia64/Makefile'; \
466 $(am__cd) $(top_srcdir) && \
467 $(AUTOMAKE) --foreign tests/rhel5-xen-domU-hvm-ia64/Makefile
468 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
469 @case '$?' in \
470 *config.status*) \
471 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
472 *) \
473 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
474 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
475 esac;
476
477 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479
480 $(top_srcdir)/configure: $(am__configure_deps)
481 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
482 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
483 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
484 $(am__aclocal_m4_deps):
485 tags TAGS:
486
487 ctags CTAGS:
488
489 cscope cscopelist:
490
491
492 # Recover from deleted '.trs' file; this should ensure that
493 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
494 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
495 # to avoid problems with "make -n".
496 .log.trs:
497 rm -f $< $@
498 $(MAKE) $(AM_MAKEFLAGS) $<
499
500 # Leading 'am--fnord' is there to ensure the list of targets does not
501 # expand to empty, as could happen e.g. with make check TESTS=''.
502 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
503 am--force-recheck:
504 @:
505
506 $(TEST_SUITE_LOG): $(TEST_LOGS)
507 @$(am__set_TESTS_bases); \
508 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
509 redo_bases=`for i in $$bases; do \
510 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
511 done`; \
512 if test -n "$$redo_bases"; then \
513 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
514 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
515 if $(am__make_dryrun); then :; else \
516 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
517 fi; \
518 fi; \
519 if test -n "$$am__remaking_logs"; then \
520 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
521 "recursion detected" >&2; \
522 elif test -n "$$redo_logs"; then \
523 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
524 fi; \
525 if $(am__make_dryrun); then :; else \
526 st=0; \
527 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
528 for i in $$redo_bases; do \
529 test -f $$i.trs && test -r $$i.trs \
530 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
531 test -f $$i.log && test -r $$i.log \
532 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
533 done; \
534 test $$st -eq 0 || exit 1; \
535 fi
536 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
537 ws='[ ]'; \
538 results=`for b in $$bases; do echo $$b.trs; done`; \
539 test -n "$$results" || results=/dev/null; \
540 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
541 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
542 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
543 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
544 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
545 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
546 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
547 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
548 success=true; \
549 else \
550 success=false; \
551 fi; \
552 br='==================='; br=$$br$$br$$br$$br; \
553 result_count () \
554 { \
555 if test x"$$1" = x"--maybe-color"; then \
556 maybe_colorize=yes; \
557 elif test x"$$1" = x"--no-color"; then \
558 maybe_colorize=no; \
559 else \
560 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
561 fi; \
562 shift; \
563 desc=$$1 count=$$2; \
564 if test $$maybe_colorize = yes && test $$count -gt 0; then \
565 color_start=$$3 color_end=$$std; \
566 else \
567 color_start= color_end=; \
568 fi; \
569 echo "$${color_start}# $$desc $$count$${color_end}"; \
570 }; \
571 create_testsuite_report () \
572 { \
573 result_count $$1 "TOTAL:" $$all "$$brg"; \
574 result_count $$1 "PASS: " $$pass "$$grn"; \
575 result_count $$1 "SKIP: " $$skip "$$blu"; \
576 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
577 result_count $$1 "FAIL: " $$fail "$$red"; \
578 result_count $$1 "XPASS:" $$xpass "$$red"; \
579 result_count $$1 "ERROR:" $$error "$$mgn"; \
580 }; \
581 { \
582 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
583 $(am__rst_title); \
584 create_testsuite_report --no-color; \
585 echo; \
586 echo ".. contents:: :depth: 2"; \
587 echo; \
588 for b in $$bases; do echo $$b; done \
589 | $(am__create_global_log); \
590 } >$(TEST_SUITE_LOG).tmp || exit 1; \
591 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
592 if $$success; then \
593 col="$$grn"; \
594 else \
595 col="$$red"; \
596 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
597 fi; \
598 echo "$${col}$$br$${std}"; \
599 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
600 echo "$${col}$$br$${std}"; \
601 create_testsuite_report --maybe-color; \
602 echo "$$col$$br$$std"; \
603 if $$success; then :; else \
604 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
605 if test -n "$(PACKAGE_BUGREPORT)"; then \
606 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
607 fi; \
608 echo "$$col$$br$$std"; \
609 fi; \
610 $$success || exit 1
611
612 check-TESTS:
613 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
614 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
615 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
616 @set +e; $(am__set_TESTS_bases); \
617 log_list=`for i in $$bases; do echo $$i.log; done`; \
618 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
619 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
620 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
621 exit $$?;
622 recheck: all
623 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
624 @set +e; $(am__set_TESTS_bases); \
625 bases=`for i in $$bases; do echo $$i; done \
626 | $(am__list_recheck_tests)` || exit 1; \
627 log_list=`for i in $$bases; do echo $$i.log; done`; \
628 log_list=`echo $$log_list`; \
629 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
630 am__force_recheck=am--force-recheck \
631 TEST_LOGS="$$log_list"; \
632 exit $$?
633 test.sh.log: test.sh
634 @p='test.sh'; \
635 b='test.sh'; \
636 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
637 --log-file $$b.log --trs-file $$b.trs \
638 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
639 "$$tst" $(AM_TESTS_FD_REDIRECT)
640 .test.log:
641 @p='$<'; \
642 $(am__set_b); \
643 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
644 --log-file $$b.log --trs-file $$b.trs \
645 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
646 "$$tst" $(AM_TESTS_FD_REDIRECT)
647 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
648 @am__EXEEXT_TRUE@ @p='$<'; \
649 @am__EXEEXT_TRUE@ $(am__set_b); \
650 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
651 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
652 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
653 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
654
655 distdir: $(BUILT_SOURCES)
656 $(MAKE) $(AM_MAKEFLAGS) distdir-am
657
658 distdir-am: $(DISTFILES)
659 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
660 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
661 list='$(DISTFILES)'; \
662 dist_files=`for file in $$list; do echo $$file; done | \
663 sed -e "s|^$$srcdirstrip/||;t" \
664 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
665 case $$dist_files in \
666 */*) $(MKDIR_P) `echo "$$dist_files" | \
667 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
668 sort -u` ;; \
669 esac; \
670 for file in $$dist_files; do \
671 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
672 if test -d $$d/$$file; then \
673 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
674 if test -d "$(distdir)/$$file"; then \
675 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
676 fi; \
677 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
678 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
679 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
680 fi; \
681 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
682 else \
683 test -f "$(distdir)/$$file" \
684 || cp -p $$d/$$file "$(distdir)/$$file" \
685 || exit 1; \
686 fi; \
687 done
688 check-am: all-am
689 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
690 check: check-am
691 all-am: Makefile
692 installdirs:
693 install: install-am
694 install-exec: install-exec-am
695 install-data: install-data-am
696 uninstall: uninstall-am
697
698 install-am: all-am
699 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
700
701 installcheck: installcheck-am
702 install-strip:
703 if test -z '$(STRIP)'; then \
704 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
705 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
706 install; \
707 else \
708 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
709 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
710 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
711 fi
712 mostlyclean-generic:
713 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
714 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
715 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
716
717 clean-generic:
718 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
719
720 distclean-generic:
721 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
722 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
723
724 maintainer-clean-generic:
725 @echo "This command is intended for maintainers to use"
726 @echo "it deletes files that may require special tools to rebuild."
727 clean: clean-am
728
729 clean-am: clean-generic mostlyclean-am
730
731 distclean: distclean-am
732 -rm -f Makefile
733 distclean-am: clean-am distclean-generic
734
735 dvi: dvi-am
736
737 dvi-am:
738
739 html: html-am
740
741 html-am:
742
743 info: info-am
744
745 info-am:
746
747 install-data-am:
748
749 install-dvi: install-dvi-am
750
751 install-dvi-am:
752
753 install-exec-am:
754
755 install-html: install-html-am
756
757 install-html-am:
758
759 install-info: install-info-am
760
761 install-info-am:
762
763 install-man:
764
765 install-pdf: install-pdf-am
766
767 install-pdf-am:
768
769 install-ps: install-ps-am
770
771 install-ps-am:
772
773 installcheck-am:
774
775 maintainer-clean: maintainer-clean-am
776 -rm -f Makefile
777 maintainer-clean-am: distclean-am maintainer-clean-generic
778
779 mostlyclean: mostlyclean-am
780
781 mostlyclean-am: mostlyclean-generic
782
783 pdf: pdf-am
784
785 pdf-am:
786
787 ps: ps-am
788
789 ps-am:
790
791 uninstall-am:
792
793 .MAKE: check-am install-am install-strip
794
795 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
796 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
797 dvi-am html html-am info info-am install install-am \
798 install-data install-data-am install-dvi install-dvi-am \
799 install-exec install-exec-am install-html install-html-am \
800 install-info install-info-am install-man install-pdf \
801 install-pdf-am install-ps install-ps-am install-strip \
802 installcheck installcheck-am installdirs maintainer-clean \
803 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
804 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
805
806 .PRECIOUS: Makefile
807
808
809 # Tell versions [3.59,3.63) of GNU make to not export all variables.
810 # Otherwise a system limit (for SysV at least) may be exceeded.
811 .NOEXPORT:
0 # Test for RHEL 5 Xen DomU HVM (aka full virtualization) on IA64.
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="xen
19 xen-hvm"
20
21 if [ "$output" != "$expected" ]; then
22 echo "$0: test failed because output did not match expected"
23 echo "Expected output was:"
24 echo "----------------------------------------"
25 echo "$expected"
26 echo "----------------------------------------"
27 echo "But the actual output of the program was:"
28 echo "----------------------------------------"
29 echo "$output"
30 echo "----------------------------------------"
31 exit 1
32 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 proc/xen/balloon \
26 proc/xen/capabilities \
27 proc/xen/privcmd \
28 proc/xen/xenbus \
29 sbin/dmidecode \
30 sbin/uname \
31 sbin/virt-what-cpuid-helper \
32 sys/hypervisor/properties/pagesize \
33 sys/hypervisor/properties/changeset \
34 sys/hypervisor/properties/virtual_start \
35 sys/hypervisor/properties/capabilities \
36 sys/hypervisor/properties/writable_pt \
37 sys/hypervisor/type \
38 sys/hypervisor/vmcoreinfo \
39 sys/hypervisor/version/minor \
40 sys/hypervisor/version/major \
41 sys/hypervisor/version/extra \
42 sys/hypervisor/compilation/compiler \
43 sys/hypervisor/compilation/compiled_by \
44 sys/hypervisor/compilation/compile_date \
45 sys/hypervisor/uuid
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/rhel5-xen-domU-pv
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 proc/xen/balloon \
444 proc/xen/capabilities \
445 proc/xen/privcmd \
446 proc/xen/xenbus \
447 sbin/dmidecode \
448 sbin/uname \
449 sbin/virt-what-cpuid-helper \
450 sys/hypervisor/properties/pagesize \
451 sys/hypervisor/properties/changeset \
452 sys/hypervisor/properties/virtual_start \
453 sys/hypervisor/properties/capabilities \
454 sys/hypervisor/properties/writable_pt \
455 sys/hypervisor/type \
456 sys/hypervisor/vmcoreinfo \
457 sys/hypervisor/version/minor \
458 sys/hypervisor/version/major \
459 sys/hypervisor/version/extra \
460 sys/hypervisor/compilation/compiler \
461 sys/hypervisor/compilation/compiled_by \
462 sys/hypervisor/compilation/compile_date \
463 sys/hypervisor/uuid
464
465 all: all-am
466
467 .SUFFIXES:
468 .SUFFIXES: .log .test .test$(EXEEXT) .trs
469 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
470 @for dep in $?; do \
471 case '$(am__configure_deps)' in \
472 *$$dep*) \
473 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
474 && { if test -f $@; then exit 0; else break; fi; }; \
475 exit 1;; \
476 esac; \
477 done; \
478 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/rhel5-xen-domU-pv/Makefile'; \
479 $(am__cd) $(top_srcdir) && \
480 $(AUTOMAKE) --foreign tests/rhel5-xen-domU-pv/Makefile
481 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
482 @case '$?' in \
483 *config.status*) \
484 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
485 *) \
486 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
487 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
488 esac;
489
490 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
491 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
492
493 $(top_srcdir)/configure: $(am__configure_deps)
494 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
495 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
496 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
497 $(am__aclocal_m4_deps):
498 tags TAGS:
499
500 ctags CTAGS:
501
502 cscope cscopelist:
503
504
505 # Recover from deleted '.trs' file; this should ensure that
506 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
507 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
508 # to avoid problems with "make -n".
509 .log.trs:
510 rm -f $< $@
511 $(MAKE) $(AM_MAKEFLAGS) $<
512
513 # Leading 'am--fnord' is there to ensure the list of targets does not
514 # expand to empty, as could happen e.g. with make check TESTS=''.
515 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
516 am--force-recheck:
517 @:
518
519 $(TEST_SUITE_LOG): $(TEST_LOGS)
520 @$(am__set_TESTS_bases); \
521 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
522 redo_bases=`for i in $$bases; do \
523 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
524 done`; \
525 if test -n "$$redo_bases"; then \
526 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
527 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
528 if $(am__make_dryrun); then :; else \
529 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
530 fi; \
531 fi; \
532 if test -n "$$am__remaking_logs"; then \
533 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
534 "recursion detected" >&2; \
535 elif test -n "$$redo_logs"; then \
536 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
537 fi; \
538 if $(am__make_dryrun); then :; else \
539 st=0; \
540 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
541 for i in $$redo_bases; do \
542 test -f $$i.trs && test -r $$i.trs \
543 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
544 test -f $$i.log && test -r $$i.log \
545 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
546 done; \
547 test $$st -eq 0 || exit 1; \
548 fi
549 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
550 ws='[ ]'; \
551 results=`for b in $$bases; do echo $$b.trs; done`; \
552 test -n "$$results" || results=/dev/null; \
553 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
554 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
555 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
556 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
557 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
558 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
559 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
560 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
561 success=true; \
562 else \
563 success=false; \
564 fi; \
565 br='==================='; br=$$br$$br$$br$$br; \
566 result_count () \
567 { \
568 if test x"$$1" = x"--maybe-color"; then \
569 maybe_colorize=yes; \
570 elif test x"$$1" = x"--no-color"; then \
571 maybe_colorize=no; \
572 else \
573 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
574 fi; \
575 shift; \
576 desc=$$1 count=$$2; \
577 if test $$maybe_colorize = yes && test $$count -gt 0; then \
578 color_start=$$3 color_end=$$std; \
579 else \
580 color_start= color_end=; \
581 fi; \
582 echo "$${color_start}# $$desc $$count$${color_end}"; \
583 }; \
584 create_testsuite_report () \
585 { \
586 result_count $$1 "TOTAL:" $$all "$$brg"; \
587 result_count $$1 "PASS: " $$pass "$$grn"; \
588 result_count $$1 "SKIP: " $$skip "$$blu"; \
589 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
590 result_count $$1 "FAIL: " $$fail "$$red"; \
591 result_count $$1 "XPASS:" $$xpass "$$red"; \
592 result_count $$1 "ERROR:" $$error "$$mgn"; \
593 }; \
594 { \
595 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
596 $(am__rst_title); \
597 create_testsuite_report --no-color; \
598 echo; \
599 echo ".. contents:: :depth: 2"; \
600 echo; \
601 for b in $$bases; do echo $$b; done \
602 | $(am__create_global_log); \
603 } >$(TEST_SUITE_LOG).tmp || exit 1; \
604 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
605 if $$success; then \
606 col="$$grn"; \
607 else \
608 col="$$red"; \
609 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
610 fi; \
611 echo "$${col}$$br$${std}"; \
612 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
613 echo "$${col}$$br$${std}"; \
614 create_testsuite_report --maybe-color; \
615 echo "$$col$$br$$std"; \
616 if $$success; then :; else \
617 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
618 if test -n "$(PACKAGE_BUGREPORT)"; then \
619 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
620 fi; \
621 echo "$$col$$br$$std"; \
622 fi; \
623 $$success || exit 1
624
625 check-TESTS:
626 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
627 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
628 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
629 @set +e; $(am__set_TESTS_bases); \
630 log_list=`for i in $$bases; do echo $$i.log; done`; \
631 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
632 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
633 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
634 exit $$?;
635 recheck: all
636 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
637 @set +e; $(am__set_TESTS_bases); \
638 bases=`for i in $$bases; do echo $$i; done \
639 | $(am__list_recheck_tests)` || exit 1; \
640 log_list=`for i in $$bases; do echo $$i.log; done`; \
641 log_list=`echo $$log_list`; \
642 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
643 am__force_recheck=am--force-recheck \
644 TEST_LOGS="$$log_list"; \
645 exit $$?
646 test.sh.log: test.sh
647 @p='test.sh'; \
648 b='test.sh'; \
649 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
650 --log-file $$b.log --trs-file $$b.trs \
651 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
652 "$$tst" $(AM_TESTS_FD_REDIRECT)
653 .test.log:
654 @p='$<'; \
655 $(am__set_b); \
656 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
657 --log-file $$b.log --trs-file $$b.trs \
658 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
659 "$$tst" $(AM_TESTS_FD_REDIRECT)
660 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
661 @am__EXEEXT_TRUE@ @p='$<'; \
662 @am__EXEEXT_TRUE@ $(am__set_b); \
663 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
664 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
665 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
666 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
667
668 distdir: $(BUILT_SOURCES)
669 $(MAKE) $(AM_MAKEFLAGS) distdir-am
670
671 distdir-am: $(DISTFILES)
672 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
673 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
674 list='$(DISTFILES)'; \
675 dist_files=`for file in $$list; do echo $$file; done | \
676 sed -e "s|^$$srcdirstrip/||;t" \
677 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
678 case $$dist_files in \
679 */*) $(MKDIR_P) `echo "$$dist_files" | \
680 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
681 sort -u` ;; \
682 esac; \
683 for file in $$dist_files; do \
684 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
685 if test -d $$d/$$file; then \
686 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
687 if test -d "$(distdir)/$$file"; then \
688 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
689 fi; \
690 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
691 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
692 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
693 fi; \
694 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
695 else \
696 test -f "$(distdir)/$$file" \
697 || cp -p $$d/$$file "$(distdir)/$$file" \
698 || exit 1; \
699 fi; \
700 done
701 check-am: all-am
702 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
703 check: check-am
704 all-am: Makefile
705 installdirs:
706 install: install-am
707 install-exec: install-exec-am
708 install-data: install-data-am
709 uninstall: uninstall-am
710
711 install-am: all-am
712 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
713
714 installcheck: installcheck-am
715 install-strip:
716 if test -z '$(STRIP)'; then \
717 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
718 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
719 install; \
720 else \
721 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
722 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
723 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
724 fi
725 mostlyclean-generic:
726 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
727 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
728 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
729
730 clean-generic:
731 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
732
733 distclean-generic:
734 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
735 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
736
737 maintainer-clean-generic:
738 @echo "This command is intended for maintainers to use"
739 @echo "it deletes files that may require special tools to rebuild."
740 clean: clean-am
741
742 clean-am: clean-generic mostlyclean-am
743
744 distclean: distclean-am
745 -rm -f Makefile
746 distclean-am: clean-am distclean-generic
747
748 dvi: dvi-am
749
750 dvi-am:
751
752 html: html-am
753
754 html-am:
755
756 info: info-am
757
758 info-am:
759
760 install-data-am:
761
762 install-dvi: install-dvi-am
763
764 install-dvi-am:
765
766 install-exec-am:
767
768 install-html: install-html-am
769
770 install-html-am:
771
772 install-info: install-info-am
773
774 install-info-am:
775
776 install-man:
777
778 install-pdf: install-pdf-am
779
780 install-pdf-am:
781
782 install-ps: install-ps-am
783
784 install-ps-am:
785
786 installcheck-am:
787
788 maintainer-clean: maintainer-clean-am
789 -rm -f Makefile
790 maintainer-clean-am: distclean-am maintainer-clean-generic
791
792 mostlyclean: mostlyclean-am
793
794 mostlyclean-am: mostlyclean-generic
795
796 pdf: pdf-am
797
798 pdf-am:
799
800 ps: ps-am
801
802 ps-am:
803
804 uninstall-am:
805
806 .MAKE: check-am install-am install-strip
807
808 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
809 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
810 dvi-am html html-am info info-am install install-am \
811 install-data install-data-am install-dvi install-dvi-am \
812 install-exec install-exec-am install-html install-html-am \
813 install-info install-info-am install-man install-pdf \
814 install-pdf-am install-ps install-ps-am install-strip \
815 installcheck installcheck-am installdirs maintainer-clean \
816 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
817 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
818
819 .PRECIOUS: Makefile
820
821
822 # Tell versions [3.59,3.63) of GNU make to not export all variables.
823 # Otherwise a system limit (for SysV at least) may be exceeded.
824 .NOEXPORT:
0 # Test for RHEL 5 Xen DomU paravirt.
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="xen
19 xen-domU"
20
21 if [ "$output" != "$expected" ]; then
22 echo "$0: test failed because output did not match expected"
23 echo "Expected output was:"
24 echo "----------------------------------------"
25 echo "$expected"
26 echo "----------------------------------------"
27 echo "But the actual output of the program was:"
28 echo "----------------------------------------"
29 echo "$output"
30 echo "----------------------------------------"
31 exit 1
32 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/rhev
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 sbin/dmidecode \
444 sbin/uname \
445 sbin/virt-what-cpuid-helper
446
447 all: all-am
448
449 .SUFFIXES:
450 .SUFFIXES: .log .test .test$(EXEEXT) .trs
451 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
452 @for dep in $?; do \
453 case '$(am__configure_deps)' in \
454 *$$dep*) \
455 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
456 && { if test -f $@; then exit 0; else break; fi; }; \
457 exit 1;; \
458 esac; \
459 done; \
460 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/rhev/Makefile'; \
461 $(am__cd) $(top_srcdir) && \
462 $(AUTOMAKE) --foreign tests/rhev/Makefile
463 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
464 @case '$?' in \
465 *config.status*) \
466 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
467 *) \
468 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
469 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
470 esac;
471
472 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
473 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
474
475 $(top_srcdir)/configure: $(am__configure_deps)
476 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
477 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
478 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
479 $(am__aclocal_m4_deps):
480 tags TAGS:
481
482 ctags CTAGS:
483
484 cscope cscopelist:
485
486
487 # Recover from deleted '.trs' file; this should ensure that
488 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
489 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
490 # to avoid problems with "make -n".
491 .log.trs:
492 rm -f $< $@
493 $(MAKE) $(AM_MAKEFLAGS) $<
494
495 # Leading 'am--fnord' is there to ensure the list of targets does not
496 # expand to empty, as could happen e.g. with make check TESTS=''.
497 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
498 am--force-recheck:
499 @:
500
501 $(TEST_SUITE_LOG): $(TEST_LOGS)
502 @$(am__set_TESTS_bases); \
503 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
504 redo_bases=`for i in $$bases; do \
505 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
506 done`; \
507 if test -n "$$redo_bases"; then \
508 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
509 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
510 if $(am__make_dryrun); then :; else \
511 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
512 fi; \
513 fi; \
514 if test -n "$$am__remaking_logs"; then \
515 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
516 "recursion detected" >&2; \
517 elif test -n "$$redo_logs"; then \
518 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
519 fi; \
520 if $(am__make_dryrun); then :; else \
521 st=0; \
522 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
523 for i in $$redo_bases; do \
524 test -f $$i.trs && test -r $$i.trs \
525 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
526 test -f $$i.log && test -r $$i.log \
527 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
528 done; \
529 test $$st -eq 0 || exit 1; \
530 fi
531 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
532 ws='[ ]'; \
533 results=`for b in $$bases; do echo $$b.trs; done`; \
534 test -n "$$results" || results=/dev/null; \
535 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
536 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
537 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
538 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
539 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
540 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
541 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
542 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
543 success=true; \
544 else \
545 success=false; \
546 fi; \
547 br='==================='; br=$$br$$br$$br$$br; \
548 result_count () \
549 { \
550 if test x"$$1" = x"--maybe-color"; then \
551 maybe_colorize=yes; \
552 elif test x"$$1" = x"--no-color"; then \
553 maybe_colorize=no; \
554 else \
555 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
556 fi; \
557 shift; \
558 desc=$$1 count=$$2; \
559 if test $$maybe_colorize = yes && test $$count -gt 0; then \
560 color_start=$$3 color_end=$$std; \
561 else \
562 color_start= color_end=; \
563 fi; \
564 echo "$${color_start}# $$desc $$count$${color_end}"; \
565 }; \
566 create_testsuite_report () \
567 { \
568 result_count $$1 "TOTAL:" $$all "$$brg"; \
569 result_count $$1 "PASS: " $$pass "$$grn"; \
570 result_count $$1 "SKIP: " $$skip "$$blu"; \
571 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
572 result_count $$1 "FAIL: " $$fail "$$red"; \
573 result_count $$1 "XPASS:" $$xpass "$$red"; \
574 result_count $$1 "ERROR:" $$error "$$mgn"; \
575 }; \
576 { \
577 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
578 $(am__rst_title); \
579 create_testsuite_report --no-color; \
580 echo; \
581 echo ".. contents:: :depth: 2"; \
582 echo; \
583 for b in $$bases; do echo $$b; done \
584 | $(am__create_global_log); \
585 } >$(TEST_SUITE_LOG).tmp || exit 1; \
586 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
587 if $$success; then \
588 col="$$grn"; \
589 else \
590 col="$$red"; \
591 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
592 fi; \
593 echo "$${col}$$br$${std}"; \
594 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
595 echo "$${col}$$br$${std}"; \
596 create_testsuite_report --maybe-color; \
597 echo "$$col$$br$$std"; \
598 if $$success; then :; else \
599 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
600 if test -n "$(PACKAGE_BUGREPORT)"; then \
601 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
602 fi; \
603 echo "$$col$$br$$std"; \
604 fi; \
605 $$success || exit 1
606
607 check-TESTS:
608 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
609 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
610 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
611 @set +e; $(am__set_TESTS_bases); \
612 log_list=`for i in $$bases; do echo $$i.log; done`; \
613 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
614 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
615 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
616 exit $$?;
617 recheck: all
618 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
619 @set +e; $(am__set_TESTS_bases); \
620 bases=`for i in $$bases; do echo $$i; done \
621 | $(am__list_recheck_tests)` || exit 1; \
622 log_list=`for i in $$bases; do echo $$i.log; done`; \
623 log_list=`echo $$log_list`; \
624 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
625 am__force_recheck=am--force-recheck \
626 TEST_LOGS="$$log_list"; \
627 exit $$?
628 test.sh.log: test.sh
629 @p='test.sh'; \
630 b='test.sh'; \
631 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
632 --log-file $$b.log --trs-file $$b.trs \
633 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
634 "$$tst" $(AM_TESTS_FD_REDIRECT)
635 .test.log:
636 @p='$<'; \
637 $(am__set_b); \
638 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
639 --log-file $$b.log --trs-file $$b.trs \
640 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
641 "$$tst" $(AM_TESTS_FD_REDIRECT)
642 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
643 @am__EXEEXT_TRUE@ @p='$<'; \
644 @am__EXEEXT_TRUE@ $(am__set_b); \
645 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
646 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
647 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
648 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
649
650 distdir: $(BUILT_SOURCES)
651 $(MAKE) $(AM_MAKEFLAGS) distdir-am
652
653 distdir-am: $(DISTFILES)
654 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 list='$(DISTFILES)'; \
657 dist_files=`for file in $$list; do echo $$file; done | \
658 sed -e "s|^$$srcdirstrip/||;t" \
659 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
660 case $$dist_files in \
661 */*) $(MKDIR_P) `echo "$$dist_files" | \
662 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
663 sort -u` ;; \
664 esac; \
665 for file in $$dist_files; do \
666 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
667 if test -d $$d/$$file; then \
668 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
669 if test -d "$(distdir)/$$file"; then \
670 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
671 fi; \
672 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
673 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
674 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
675 fi; \
676 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
677 else \
678 test -f "$(distdir)/$$file" \
679 || cp -p $$d/$$file "$(distdir)/$$file" \
680 || exit 1; \
681 fi; \
682 done
683 check-am: all-am
684 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
685 check: check-am
686 all-am: Makefile
687 installdirs:
688 install: install-am
689 install-exec: install-exec-am
690 install-data: install-data-am
691 uninstall: uninstall-am
692
693 install-am: all-am
694 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
695
696 installcheck: installcheck-am
697 install-strip:
698 if test -z '$(STRIP)'; then \
699 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 install; \
702 else \
703 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
704 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
705 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
706 fi
707 mostlyclean-generic:
708 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
709 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
710 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
711
712 clean-generic:
713 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
714
715 distclean-generic:
716 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
717 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
718
719 maintainer-clean-generic:
720 @echo "This command is intended for maintainers to use"
721 @echo "it deletes files that may require special tools to rebuild."
722 clean: clean-am
723
724 clean-am: clean-generic mostlyclean-am
725
726 distclean: distclean-am
727 -rm -f Makefile
728 distclean-am: clean-am distclean-generic
729
730 dvi: dvi-am
731
732 dvi-am:
733
734 html: html-am
735
736 html-am:
737
738 info: info-am
739
740 info-am:
741
742 install-data-am:
743
744 install-dvi: install-dvi-am
745
746 install-dvi-am:
747
748 install-exec-am:
749
750 install-html: install-html-am
751
752 install-html-am:
753
754 install-info: install-info-am
755
756 install-info-am:
757
758 install-man:
759
760 install-pdf: install-pdf-am
761
762 install-pdf-am:
763
764 install-ps: install-ps-am
765
766 install-ps-am:
767
768 installcheck-am:
769
770 maintainer-clean: maintainer-clean-am
771 -rm -f Makefile
772 maintainer-clean-am: distclean-am maintainer-clean-generic
773
774 mostlyclean: mostlyclean-am
775
776 mostlyclean-am: mostlyclean-generic
777
778 pdf: pdf-am
779
780 pdf-am:
781
782 ps: ps-am
783
784 ps-am:
785
786 uninstall-am:
787
788 .MAKE: check-am install-am install-strip
789
790 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
791 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
792 dvi-am html html-am info info-am install install-am \
793 install-data install-data-am install-dvi install-dvi-am \
794 install-exec install-exec-am install-html install-html-am \
795 install-info install-info-am install-man install-pdf \
796 install-pdf-am install-ps install-ps-am install-strip \
797 installcheck installcheck-am installdirs maintainer-clean \
798 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
799 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
800
801 .PRECIOUS: Makefile
802
803
804 # Tell versions [3.59,3.63) of GNU make to not export all variables.
805 # Otherwise a system limit (for SysV at least) may be exceeded.
806 .NOEXPORT:
0 # Test for rhev
1 # Copyright (C) 2008-2016 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="rhev
19 kvm"
20
21 if [ "$output" != "$expected" ]; then
22 echo "$0: test failed because output did not match expected"
23 echo "Expected output was:"
24 echo "----------------------------------------"
25 echo "$expected"
26 echo "----------------------------------------"
27 echo "But the actual output of the program was:"
28 echo "----------------------------------------"
29 echo "$output"
30 echo "----------------------------------------"
31 exit 1
32 fi
+0
-34
tests/test-aws-baremetal-x86.sh less more
0 # Test for AWS.
1 # Copyright (C) 2018 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/aws-baremetal-x86
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="aws"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-35
tests/test-aws-kvm-x86.sh less more
0 # Test for AWS.
1 # Copyright (C) 2018 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/aws-kvm-x86
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="kvm
21 aws"
22
23 if [ "$output" != "$expected" ]; then
24 echo "$0: test failed because output did not match expected"
25 echo "Expected output was:"
26 echo "----------------------------------------"
27 echo "$expected"
28 echo "----------------------------------------"
29 echo "But the actual output of the program was:"
30 echo "----------------------------------------"
31 echo "$output"
32 echo "----------------------------------------"
33 exit 1
34 fi
+0
-36
tests/test-aws-xen-x86.sh less more
0 # Test for AWS.
1 # Copyright (C) 2018 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/aws-xen-x86
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="xen
21 xen-hvm
22 aws"
23
24 if [ "$output" != "$expected" ]; then
25 echo "$0: test failed because output did not match expected"
26 echo "Expected output was:"
27 echo "----------------------------------------"
28 echo "$expected"
29 echo "----------------------------------------"
30 echo "But the actual output of the program was:"
31 echo "----------------------------------------"
32 echo "$output"
33 echo "----------------------------------------"
34 exit 1
35 fi
+0
-34
tests/test-baremetal.sh less more
0 # Test for baremetal
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/baremetal
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected=""
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-34
tests/test-bhyve.sh less more
0 # Test for bhyve
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/bhyve
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="bhyve"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-34
tests/test-docker.sh less more
0 # Test for Docker
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/docker
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="docker"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-35
tests/test-esx4.1.sh less more
0 # Test for ESX 4.1
1 # Data supplied by Matthew Booth.
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 root=tests/esx4.1
19
20 output="$(./virt-what --test-root=$root 2>&1)"
21 expected="vmware"
22
23 if [ "$output" != "$expected" ]; then
24 echo "$0: test failed because output did not match expected"
25 echo "Expected output was:"
26 echo "----------------------------------------"
27 echo "$expected"
28 echo "----------------------------------------"
29 echo "But the actual output of the program was:"
30 echo "----------------------------------------"
31 echo "$output"
32 echo "----------------------------------------"
33 exit 1
34 fi
+0
-34
tests/test-hyperv.sh less more
0 # Test for Microsoft HyperV.
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/hyperv
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="hyperv"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-34
tests/test-kvm-explicit-cpu.sh less more
0 # Test for KVM with explicit -cpu core2duo option.
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/kvm-explicit-cpu
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="kvm"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-34
tests/test-kvm.sh less more
0 # Test for KVM
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/kvm
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="kvm"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-35
tests/test-ldoms.sh less more
0 # Test for LDoms
1 # Copyright (C) 2017 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/ldoms
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="ldoms
21 ldoms-guest"
22
23 if [ "$output" != "$expected" ]; then
24 echo "$0: test failed because output did not match expected"
25 echo "Expected output was:"
26 echo "----------------------------------------"
27 echo "$expected"
28 echo "----------------------------------------"
29 echo "But the actual output of the program was:"
30 echo "----------------------------------------"
31 echo "$output"
32 echo "----------------------------------------"
33 exit 1
34 fi
+0
-36
tests/test-linux-vserver.sh less more
0 # Test for linux vserver.
1 # Data supplied by Barış Metin.
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 root=tests/linux-vserver
19
20 output="$(./virt-what --test-root=$root 2>&1)"
21 expected="linux_vserver
22 linux_vserver-guest"
23
24 if [ "$output" != "$expected" ]; then
25 echo "$0: test failed because output did not match expected"
26 echo "Expected output was:"
27 echo "----------------------------------------"
28 echo "$expected"
29 echo "----------------------------------------"
30 echo "But the actual output of the program was:"
31 echo "----------------------------------------"
32 echo "$output"
33 echo "----------------------------------------"
34 exit 1
35 fi
+0
-34
tests/test-lkvm-arm.sh less more
0 # Test for LKVM on ARM
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/lkvm-arm
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="lkvm"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-34
tests/test-lkvm.sh less more
0 # Test for LKVM
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/lkvm
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="lkvm"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-35
tests/test-lx86.sh less more
0 # Test for IBM PowerVM Lx86 emulator.
1 # Data supplied by Yufang Zhang.
2 # Copyright (C) 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 root=tests/lx86
19
20 output="$(./virt-what --test-root=$root 2>&1)"
21 expected="powervm_lx86"
22
23 if [ "$output" != "$expected" ]; then
24 echo "$0: test failed because output did not match expected"
25 echo "Expected output was:"
26 echo "----------------------------------------"
27 echo "$expected"
28 echo "----------------------------------------"
29 echo "But the actual output of the program was:"
30 echo "----------------------------------------"
31 echo "$output"
32 echo "----------------------------------------"
33 exit 1
34 fi
+0
-34
tests/test-lxc.sh less more
0 # Test for lxc
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/lxc
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="lxc"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-35
tests/test-parallels-desktop.sh less more
0 # Test for Parallels Desktop (data contributed by Justin Clift).
1 # Data taken from Fedora 14 guest running in Parallels on a Mac Mini.
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 root=tests/parallels-desktop
19
20 output="$(./virt-what --test-root=$root 2>&1)"
21 expected="parallels"
22
23 if [ "$output" != "$expected" ]; then
24 echo "$0: test failed because output did not match expected"
25 echo "Expected output was:"
26 echo "----------------------------------------"
27 echo "$expected"
28 echo "----------------------------------------"
29 echo "But the actual output of the program was:"
30 echo "----------------------------------------"
31 echo "$output"
32 echo "----------------------------------------"
33 exit 1
34 fi
+0
-34
tests/test-ppc64-baremetal.sh less more
0 # Test for ppc64 lpar baremetal (PowerNV)
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/ppc64-baremetal
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected=""
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-34
tests/test-ppc64-kvm.sh less more
0 # Test for kvm on ppc64
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/ppc64-kvm
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="ibm_power-kvm"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-34
tests/test-ppc64-lpar-dedicated.sh less more
0 # Test for ppc64 lpar guests in dedicated mode
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/ppc64-lpar-dedicated
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="ibm_power-lpar_dedicated"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-34
tests/test-ppc64-lpar-shared.sh less more
0 # Test for ppc64 lpar guests in shared mode
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/ppc64-lpar-shared
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="ibm_power-lpar_shared"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-34
tests/test-qemu-arm.sh less more
0 # Test for qemu on ARM
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/qemu-arm
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="qemu"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-34
tests/test-qemu-smbios-kvm.sh less more
0 # Test for qemu on ARM
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/qemu-smbios-kvm
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="kvm"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-34
tests/test-qemu-smbios.sh less more
0 # Test for qemu on ARM
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/qemu-smbios
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="qemu"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-34
tests/test-qemu.sh less more
0 # Test for qemu
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/qemu
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="qemu"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-35
tests/test-rhel5-xen-dom0.sh less more
0 # Test for RHEL 5 Xen Dom0.
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/rhel5-xen-dom0
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="xen
21 xen-dom0"
22
23 if [ "$output" != "$expected" ]; then
24 echo "$0: test failed because output did not match expected"
25 echo "Expected output was:"
26 echo "----------------------------------------"
27 echo "$expected"
28 echo "----------------------------------------"
29 echo "But the actual output of the program was:"
30 echo "----------------------------------------"
31 echo "$output"
32 echo "----------------------------------------"
33 exit 1
34 fi
+0
-35
tests/test-rhel5-xen-domU-hvm-ia64.sh less more
0 # Test for RHEL 5 Xen DomU HVM (aka full virtualization) on IA64.
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/rhel5-xen-domU-hvm-ia64
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="xen
21 xen-hvm"
22
23 if [ "$output" != "$expected" ]; then
24 echo "$0: test failed because output did not match expected"
25 echo "Expected output was:"
26 echo "----------------------------------------"
27 echo "$expected"
28 echo "----------------------------------------"
29 echo "But the actual output of the program was:"
30 echo "----------------------------------------"
31 echo "$output"
32 echo "----------------------------------------"
33 exit 1
34 fi
+0
-35
tests/test-rhel5-xen-domU-hvm.sh less more
0 # Test for RHEL 5 Xen DomU HVM (aka full virtualization).
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/rhel5-xen-domU-hvm
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="xen
21 xen-hvm"
22
23 if [ "$output" != "$expected" ]; then
24 echo "$0: test failed because output did not match expected"
25 echo "Expected output was:"
26 echo "----------------------------------------"
27 echo "$expected"
28 echo "----------------------------------------"
29 echo "But the actual output of the program was:"
30 echo "----------------------------------------"
31 echo "$output"
32 echo "----------------------------------------"
33 exit 1
34 fi
+0
-35
tests/test-rhel5-xen-domU-pv.sh less more
0 # Test for RHEL 5 Xen DomU paravirt.
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/rhel5-xen-domU-pv
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="xen
21 xen-domU"
22
23 if [ "$output" != "$expected" ]; then
24 echo "$0: test failed because output did not match expected"
25 echo "Expected output was:"
26 echo "----------------------------------------"
27 echo "$expected"
28 echo "----------------------------------------"
29 echo "But the actual output of the program was:"
30 echo "----------------------------------------"
31 echo "$output"
32 echo "----------------------------------------"
33 exit 1
34 fi
+0
-35
tests/test-rhev.sh less more
0 # Test for rhev
1 # Copyright (C) 2008-2016 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/rhev
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="rhev
21 kvm"
22
23 if [ "$output" != "$expected" ]; then
24 echo "$0: test failed because output did not match expected"
25 echo "Expected output was:"
26 echo "----------------------------------------"
27 echo "$expected"
28 echo "----------------------------------------"
29 echo "But the actual output of the program was:"
30 echo "----------------------------------------"
31 echo "$output"
32 echo "----------------------------------------"
33 exit 1
34 fi
+0
-34
tests/test-vmm.sh less more
0 # Test for vmm
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/vmm
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="vmm"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-34
tests/test-xen-arm.sh less more
0 # Test for Xen on ARM
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 root=tests/xen-arm
18
19 output="$(./virt-what --test-root=$root 2>&1)"
20 expected="xen"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
+0
-36
tests/test-zvm.sh less more
0 # Test for z/VM on IBM SystemZ mainframe.
1 # (Thanks Dan Horák for supplying access).
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 root=tests/zvm
19
20 output="$(./virt-what --test-root=$root 2>&1)"
21 expected="ibm_systemz
22 ibm_systemz-zvm"
23
24 if [ "$output" != "$expected" ]; then
25 echo "$0: test failed because output did not match expected"
26 echo "Expected output was:"
27 echo "----------------------------------------"
28 echo "$expected"
29 echo "----------------------------------------"
30 echo "But the actual output of the program was:"
31 echo "----------------------------------------"
32 echo "$output"
33 echo "----------------------------------------"
34 exit 1
35 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 sbin/dmidecode \
25 sbin/uname \
26 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/vmm
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 sbin/dmidecode \
443 sbin/uname \
444 sbin/virt-what-cpuid-helper
445
446 all: all-am
447
448 .SUFFIXES:
449 .SUFFIXES: .log .test .test$(EXEEXT) .trs
450 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
451 @for dep in $?; do \
452 case '$(am__configure_deps)' in \
453 *$$dep*) \
454 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
455 && { if test -f $@; then exit 0; else break; fi; }; \
456 exit 1;; \
457 esac; \
458 done; \
459 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/vmm/Makefile'; \
460 $(am__cd) $(top_srcdir) && \
461 $(AUTOMAKE) --foreign tests/vmm/Makefile
462 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
463 @case '$?' in \
464 *config.status*) \
465 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
466 *) \
467 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
468 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
469 esac;
470
471 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
472 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
473
474 $(top_srcdir)/configure: $(am__configure_deps)
475 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
476 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
477 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
478 $(am__aclocal_m4_deps):
479 tags TAGS:
480
481 ctags CTAGS:
482
483 cscope cscopelist:
484
485
486 # Recover from deleted '.trs' file; this should ensure that
487 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
488 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
489 # to avoid problems with "make -n".
490 .log.trs:
491 rm -f $< $@
492 $(MAKE) $(AM_MAKEFLAGS) $<
493
494 # Leading 'am--fnord' is there to ensure the list of targets does not
495 # expand to empty, as could happen e.g. with make check TESTS=''.
496 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
497 am--force-recheck:
498 @:
499
500 $(TEST_SUITE_LOG): $(TEST_LOGS)
501 @$(am__set_TESTS_bases); \
502 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
503 redo_bases=`for i in $$bases; do \
504 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
505 done`; \
506 if test -n "$$redo_bases"; then \
507 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
508 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
509 if $(am__make_dryrun); then :; else \
510 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
511 fi; \
512 fi; \
513 if test -n "$$am__remaking_logs"; then \
514 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
515 "recursion detected" >&2; \
516 elif test -n "$$redo_logs"; then \
517 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
518 fi; \
519 if $(am__make_dryrun); then :; else \
520 st=0; \
521 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
522 for i in $$redo_bases; do \
523 test -f $$i.trs && test -r $$i.trs \
524 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
525 test -f $$i.log && test -r $$i.log \
526 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
527 done; \
528 test $$st -eq 0 || exit 1; \
529 fi
530 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
531 ws='[ ]'; \
532 results=`for b in $$bases; do echo $$b.trs; done`; \
533 test -n "$$results" || results=/dev/null; \
534 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
535 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
536 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
537 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
538 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
539 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
540 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
541 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
542 success=true; \
543 else \
544 success=false; \
545 fi; \
546 br='==================='; br=$$br$$br$$br$$br; \
547 result_count () \
548 { \
549 if test x"$$1" = x"--maybe-color"; then \
550 maybe_colorize=yes; \
551 elif test x"$$1" = x"--no-color"; then \
552 maybe_colorize=no; \
553 else \
554 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
555 fi; \
556 shift; \
557 desc=$$1 count=$$2; \
558 if test $$maybe_colorize = yes && test $$count -gt 0; then \
559 color_start=$$3 color_end=$$std; \
560 else \
561 color_start= color_end=; \
562 fi; \
563 echo "$${color_start}# $$desc $$count$${color_end}"; \
564 }; \
565 create_testsuite_report () \
566 { \
567 result_count $$1 "TOTAL:" $$all "$$brg"; \
568 result_count $$1 "PASS: " $$pass "$$grn"; \
569 result_count $$1 "SKIP: " $$skip "$$blu"; \
570 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
571 result_count $$1 "FAIL: " $$fail "$$red"; \
572 result_count $$1 "XPASS:" $$xpass "$$red"; \
573 result_count $$1 "ERROR:" $$error "$$mgn"; \
574 }; \
575 { \
576 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
577 $(am__rst_title); \
578 create_testsuite_report --no-color; \
579 echo; \
580 echo ".. contents:: :depth: 2"; \
581 echo; \
582 for b in $$bases; do echo $$b; done \
583 | $(am__create_global_log); \
584 } >$(TEST_SUITE_LOG).tmp || exit 1; \
585 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
586 if $$success; then \
587 col="$$grn"; \
588 else \
589 col="$$red"; \
590 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
591 fi; \
592 echo "$${col}$$br$${std}"; \
593 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
594 echo "$${col}$$br$${std}"; \
595 create_testsuite_report --maybe-color; \
596 echo "$$col$$br$$std"; \
597 if $$success; then :; else \
598 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
599 if test -n "$(PACKAGE_BUGREPORT)"; then \
600 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
601 fi; \
602 echo "$$col$$br$$std"; \
603 fi; \
604 $$success || exit 1
605
606 check-TESTS:
607 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
608 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
609 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
610 @set +e; $(am__set_TESTS_bases); \
611 log_list=`for i in $$bases; do echo $$i.log; done`; \
612 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
613 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
614 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
615 exit $$?;
616 recheck: all
617 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
618 @set +e; $(am__set_TESTS_bases); \
619 bases=`for i in $$bases; do echo $$i; done \
620 | $(am__list_recheck_tests)` || exit 1; \
621 log_list=`for i in $$bases; do echo $$i.log; done`; \
622 log_list=`echo $$log_list`; \
623 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
624 am__force_recheck=am--force-recheck \
625 TEST_LOGS="$$log_list"; \
626 exit $$?
627 test.sh.log: test.sh
628 @p='test.sh'; \
629 b='test.sh'; \
630 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
631 --log-file $$b.log --trs-file $$b.trs \
632 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
633 "$$tst" $(AM_TESTS_FD_REDIRECT)
634 .test.log:
635 @p='$<'; \
636 $(am__set_b); \
637 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
638 --log-file $$b.log --trs-file $$b.trs \
639 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
640 "$$tst" $(AM_TESTS_FD_REDIRECT)
641 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
642 @am__EXEEXT_TRUE@ @p='$<'; \
643 @am__EXEEXT_TRUE@ $(am__set_b); \
644 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
645 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
646 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
647 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
648
649 distdir: $(BUILT_SOURCES)
650 $(MAKE) $(AM_MAKEFLAGS) distdir-am
651
652 distdir-am: $(DISTFILES)
653 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
654 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
655 list='$(DISTFILES)'; \
656 dist_files=`for file in $$list; do echo $$file; done | \
657 sed -e "s|^$$srcdirstrip/||;t" \
658 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
659 case $$dist_files in \
660 */*) $(MKDIR_P) `echo "$$dist_files" | \
661 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
662 sort -u` ;; \
663 esac; \
664 for file in $$dist_files; do \
665 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
666 if test -d $$d/$$file; then \
667 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
668 if test -d "$(distdir)/$$file"; then \
669 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
670 fi; \
671 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
672 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
673 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
674 fi; \
675 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
676 else \
677 test -f "$(distdir)/$$file" \
678 || cp -p $$d/$$file "$(distdir)/$$file" \
679 || exit 1; \
680 fi; \
681 done
682 check-am: all-am
683 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
684 check: check-am
685 all-am: Makefile
686 installdirs:
687 install: install-am
688 install-exec: install-exec-am
689 install-data: install-data-am
690 uninstall: uninstall-am
691
692 install-am: all-am
693 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
694
695 installcheck: installcheck-am
696 install-strip:
697 if test -z '$(STRIP)'; then \
698 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
699 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
700 install; \
701 else \
702 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
703 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
704 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
705 fi
706 mostlyclean-generic:
707 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
708 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
709 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
710
711 clean-generic:
712 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
713
714 distclean-generic:
715 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
716 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
717
718 maintainer-clean-generic:
719 @echo "This command is intended for maintainers to use"
720 @echo "it deletes files that may require special tools to rebuild."
721 clean: clean-am
722
723 clean-am: clean-generic mostlyclean-am
724
725 distclean: distclean-am
726 -rm -f Makefile
727 distclean-am: clean-am distclean-generic
728
729 dvi: dvi-am
730
731 dvi-am:
732
733 html: html-am
734
735 html-am:
736
737 info: info-am
738
739 info-am:
740
741 install-data-am:
742
743 install-dvi: install-dvi-am
744
745 install-dvi-am:
746
747 install-exec-am:
748
749 install-html: install-html-am
750
751 install-html-am:
752
753 install-info: install-info-am
754
755 install-info-am:
756
757 install-man:
758
759 install-pdf: install-pdf-am
760
761 install-pdf-am:
762
763 install-ps: install-ps-am
764
765 install-ps-am:
766
767 installcheck-am:
768
769 maintainer-clean: maintainer-clean-am
770 -rm -f Makefile
771 maintainer-clean-am: distclean-am maintainer-clean-generic
772
773 mostlyclean: mostlyclean-am
774
775 mostlyclean-am: mostlyclean-generic
776
777 pdf: pdf-am
778
779 pdf-am:
780
781 ps: ps-am
782
783 ps-am:
784
785 uninstall-am:
786
787 .MAKE: check-am install-am install-strip
788
789 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
790 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
791 dvi-am html html-am info info-am install install-am \
792 install-data install-data-am install-dvi install-dvi-am \
793 install-exec install-exec-am install-html install-html-am \
794 install-info install-info-am install-man install-pdf \
795 install-pdf-am install-ps install-ps-am install-strip \
796 installcheck installcheck-am installdirs maintainer-clean \
797 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
798 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
799
800 .PRECIOUS: Makefile
801
802
803 # Tell versions [3.59,3.63) of GNU make to not export all variables.
804 # Otherwise a system limit (for SysV at least) may be exceeded.
805 .NOEXPORT:
0 # Test for vmm
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="vmm"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/device-tree/hypervisor/compatible \
25 proc/self/status \
26 sbin/dmidecode \
27 sbin/uname \
28 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/xen-arm
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/device-tree/hypervisor/compatible \
443 proc/self/status \
444 sbin/dmidecode \
445 sbin/uname \
446 sbin/virt-what-cpuid-helper
447
448 all: all-am
449
450 .SUFFIXES:
451 .SUFFIXES: .log .test .test$(EXEEXT) .trs
452 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
453 @for dep in $?; do \
454 case '$(am__configure_deps)' in \
455 *$$dep*) \
456 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
457 && { if test -f $@; then exit 0; else break; fi; }; \
458 exit 1;; \
459 esac; \
460 done; \
461 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/xen-arm/Makefile'; \
462 $(am__cd) $(top_srcdir) && \
463 $(AUTOMAKE) --foreign tests/xen-arm/Makefile
464 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
465 @case '$?' in \
466 *config.status*) \
467 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
468 *) \
469 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
470 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
471 esac;
472
473 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
474 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
475
476 $(top_srcdir)/configure: $(am__configure_deps)
477 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
478 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
479 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
480 $(am__aclocal_m4_deps):
481 tags TAGS:
482
483 ctags CTAGS:
484
485 cscope cscopelist:
486
487
488 # Recover from deleted '.trs' file; this should ensure that
489 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
490 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
491 # to avoid problems with "make -n".
492 .log.trs:
493 rm -f $< $@
494 $(MAKE) $(AM_MAKEFLAGS) $<
495
496 # Leading 'am--fnord' is there to ensure the list of targets does not
497 # expand to empty, as could happen e.g. with make check TESTS=''.
498 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
499 am--force-recheck:
500 @:
501
502 $(TEST_SUITE_LOG): $(TEST_LOGS)
503 @$(am__set_TESTS_bases); \
504 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
505 redo_bases=`for i in $$bases; do \
506 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
507 done`; \
508 if test -n "$$redo_bases"; then \
509 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
510 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
511 if $(am__make_dryrun); then :; else \
512 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
513 fi; \
514 fi; \
515 if test -n "$$am__remaking_logs"; then \
516 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
517 "recursion detected" >&2; \
518 elif test -n "$$redo_logs"; then \
519 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
520 fi; \
521 if $(am__make_dryrun); then :; else \
522 st=0; \
523 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
524 for i in $$redo_bases; do \
525 test -f $$i.trs && test -r $$i.trs \
526 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
527 test -f $$i.log && test -r $$i.log \
528 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
529 done; \
530 test $$st -eq 0 || exit 1; \
531 fi
532 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
533 ws='[ ]'; \
534 results=`for b in $$bases; do echo $$b.trs; done`; \
535 test -n "$$results" || results=/dev/null; \
536 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
537 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
538 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
539 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
540 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
541 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
542 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
543 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
544 success=true; \
545 else \
546 success=false; \
547 fi; \
548 br='==================='; br=$$br$$br$$br$$br; \
549 result_count () \
550 { \
551 if test x"$$1" = x"--maybe-color"; then \
552 maybe_colorize=yes; \
553 elif test x"$$1" = x"--no-color"; then \
554 maybe_colorize=no; \
555 else \
556 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
557 fi; \
558 shift; \
559 desc=$$1 count=$$2; \
560 if test $$maybe_colorize = yes && test $$count -gt 0; then \
561 color_start=$$3 color_end=$$std; \
562 else \
563 color_start= color_end=; \
564 fi; \
565 echo "$${color_start}# $$desc $$count$${color_end}"; \
566 }; \
567 create_testsuite_report () \
568 { \
569 result_count $$1 "TOTAL:" $$all "$$brg"; \
570 result_count $$1 "PASS: " $$pass "$$grn"; \
571 result_count $$1 "SKIP: " $$skip "$$blu"; \
572 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
573 result_count $$1 "FAIL: " $$fail "$$red"; \
574 result_count $$1 "XPASS:" $$xpass "$$red"; \
575 result_count $$1 "ERROR:" $$error "$$mgn"; \
576 }; \
577 { \
578 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
579 $(am__rst_title); \
580 create_testsuite_report --no-color; \
581 echo; \
582 echo ".. contents:: :depth: 2"; \
583 echo; \
584 for b in $$bases; do echo $$b; done \
585 | $(am__create_global_log); \
586 } >$(TEST_SUITE_LOG).tmp || exit 1; \
587 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
588 if $$success; then \
589 col="$$grn"; \
590 else \
591 col="$$red"; \
592 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593 fi; \
594 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
596 echo "$${col}$$br$${std}"; \
597 create_testsuite_report --maybe-color; \
598 echo "$$col$$br$$std"; \
599 if $$success; then :; else \
600 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
601 if test -n "$(PACKAGE_BUGREPORT)"; then \
602 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
603 fi; \
604 echo "$$col$$br$$std"; \
605 fi; \
606 $$success || exit 1
607
608 check-TESTS:
609 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
610 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
611 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
612 @set +e; $(am__set_TESTS_bases); \
613 log_list=`for i in $$bases; do echo $$i.log; done`; \
614 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
615 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
616 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
617 exit $$?;
618 recheck: all
619 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
620 @set +e; $(am__set_TESTS_bases); \
621 bases=`for i in $$bases; do echo $$i; done \
622 | $(am__list_recheck_tests)` || exit 1; \
623 log_list=`for i in $$bases; do echo $$i.log; done`; \
624 log_list=`echo $$log_list`; \
625 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
626 am__force_recheck=am--force-recheck \
627 TEST_LOGS="$$log_list"; \
628 exit $$?
629 test.sh.log: test.sh
630 @p='test.sh'; \
631 b='test.sh'; \
632 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
633 --log-file $$b.log --trs-file $$b.trs \
634 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
635 "$$tst" $(AM_TESTS_FD_REDIRECT)
636 .test.log:
637 @p='$<'; \
638 $(am__set_b); \
639 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
640 --log-file $$b.log --trs-file $$b.trs \
641 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
642 "$$tst" $(AM_TESTS_FD_REDIRECT)
643 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
644 @am__EXEEXT_TRUE@ @p='$<'; \
645 @am__EXEEXT_TRUE@ $(am__set_b); \
646 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
647 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651 distdir: $(BUILT_SOURCES)
652 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653
654 distdir-am: $(DISTFILES)
655 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
657 list='$(DISTFILES)'; \
658 dist_files=`for file in $$list; do echo $$file; done | \
659 sed -e "s|^$$srcdirstrip/||;t" \
660 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
661 case $$dist_files in \
662 */*) $(MKDIR_P) `echo "$$dist_files" | \
663 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
664 sort -u` ;; \
665 esac; \
666 for file in $$dist_files; do \
667 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
668 if test -d $$d/$$file; then \
669 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
670 if test -d "$(distdir)/$$file"; then \
671 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
672 fi; \
673 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
674 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
675 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
676 fi; \
677 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
678 else \
679 test -f "$(distdir)/$$file" \
680 || cp -p $$d/$$file "$(distdir)/$$file" \
681 || exit 1; \
682 fi; \
683 done
684 check-am: all-am
685 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
686 check: check-am
687 all-am: Makefile
688 installdirs:
689 install: install-am
690 install-exec: install-exec-am
691 install-data: install-data-am
692 uninstall: uninstall-am
693
694 install-am: all-am
695 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
696
697 installcheck: installcheck-am
698 install-strip:
699 if test -z '$(STRIP)'; then \
700 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
701 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
702 install; \
703 else \
704 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
705 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
706 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
707 fi
708 mostlyclean-generic:
709 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
710 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
711 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
712
713 clean-generic:
714 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
715
716 distclean-generic:
717 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
718 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
719
720 maintainer-clean-generic:
721 @echo "This command is intended for maintainers to use"
722 @echo "it deletes files that may require special tools to rebuild."
723 clean: clean-am
724
725 clean-am: clean-generic mostlyclean-am
726
727 distclean: distclean-am
728 -rm -f Makefile
729 distclean-am: clean-am distclean-generic
730
731 dvi: dvi-am
732
733 dvi-am:
734
735 html: html-am
736
737 html-am:
738
739 info: info-am
740
741 info-am:
742
743 install-data-am:
744
745 install-dvi: install-dvi-am
746
747 install-dvi-am:
748
749 install-exec-am:
750
751 install-html: install-html-am
752
753 install-html-am:
754
755 install-info: install-info-am
756
757 install-info-am:
758
759 install-man:
760
761 install-pdf: install-pdf-am
762
763 install-pdf-am:
764
765 install-ps: install-ps-am
766
767 install-ps-am:
768
769 installcheck-am:
770
771 maintainer-clean: maintainer-clean-am
772 -rm -f Makefile
773 maintainer-clean-am: distclean-am maintainer-clean-generic
774
775 mostlyclean: mostlyclean-am
776
777 mostlyclean-am: mostlyclean-generic
778
779 pdf: pdf-am
780
781 pdf-am:
782
783 ps: ps-am
784
785 ps-am:
786
787 uninstall-am:
788
789 .MAKE: check-am install-am install-strip
790
791 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
792 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
793 dvi-am html html-am info info-am install install-am \
794 install-data install-data-am install-dvi install-dvi-am \
795 install-exec install-exec-am install-html install-html-am \
796 install-info install-info-am install-man install-pdf \
797 install-pdf-am install-ps install-ps-am install-strip \
798 installcheck installcheck-am installdirs maintainer-clean \
799 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
800 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
801
802 .PRECIOUS: Makefile
803
804
805 # Tell versions [3.59,3.63) of GNU make to not export all variables.
806 # Otherwise a system limit (for SysV at least) may be exceeded.
807 .NOEXPORT:
0 # Test for Xen on ARM
1 # Copyright (C) 2015 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="xen"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 proc/sysinfo \
26 sbin/dmidecode \
27 sbin/uname \
28 sbin/virt-what-cpuid-helper
0 # Makefile.in generated by automake 1.16.2 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 # Makefile for virt-what
17 # Copyright (C) 2008-2011 Red Hat Inc.
18 #
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2 of the License, or
22 # (at your option) any later version.
23 #
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
32 VPATH = @srcdir@
33 am__is_gnu_make = { \
34 if test -z '$(MAKELEVEL)'; then \
35 false; \
36 elif test -n '$(MAKE_HOST)'; then \
37 true; \
38 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
39 true; \
40 else \
41 false; \
42 fi; \
43 }
44 am__make_running_with_option = \
45 case $${target_option-} in \
46 ?) ;; \
47 *) echo "am__make_running_with_option: internal error: invalid" \
48 "target option '$${target_option-}' specified" >&2; \
49 exit 1;; \
50 esac; \
51 has_opt=no; \
52 sane_makeflags=$$MAKEFLAGS; \
53 if $(am__is_gnu_make); then \
54 sane_makeflags=$$MFLAGS; \
55 else \
56 case $$MAKEFLAGS in \
57 *\\[\ \ ]*) \
58 bs=\\; \
59 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
60 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
61 esac; \
62 fi; \
63 skip_next=no; \
64 strip_trailopt () \
65 { \
66 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
67 }; \
68 for flg in $$sane_makeflags; do \
69 test $$skip_next = yes && { skip_next=no; continue; }; \
70 case $$flg in \
71 *=*|--*) continue;; \
72 -*I) strip_trailopt 'I'; skip_next=yes;; \
73 -*I?*) strip_trailopt 'I';; \
74 -*O) strip_trailopt 'O'; skip_next=yes;; \
75 -*O?*) strip_trailopt 'O';; \
76 -*l) strip_trailopt 'l'; skip_next=yes;; \
77 -*l?*) strip_trailopt 'l';; \
78 -[dEDm]) skip_next=yes;; \
79 -[JT]) skip_next=yes;; \
80 esac; \
81 case $$flg in \
82 *$$target_option*) has_opt=yes; break;; \
83 esac; \
84 done; \
85 test $$has_opt = yes
86 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
87 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
88 pkgdatadir = $(datadir)/@PACKAGE@
89 pkgincludedir = $(includedir)/@PACKAGE@
90 pkglibdir = $(libdir)/@PACKAGE@
91 pkglibexecdir = $(libexecdir)/@PACKAGE@
92 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
93 install_sh_DATA = $(install_sh) -c -m 644
94 install_sh_PROGRAM = $(install_sh) -c
95 install_sh_SCRIPT = $(install_sh) -c
96 INSTALL_HEADER = $(INSTALL_DATA)
97 transform = $(program_transform_name)
98 NORMAL_INSTALL = :
99 PRE_INSTALL = :
100 POST_INSTALL = :
101 NORMAL_UNINSTALL = :
102 PRE_UNINSTALL = :
103 POST_UNINSTALL = :
104 build_triplet = @build@
105 host_triplet = @host@
106 subdir = tests/zvm
107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
108 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
112 mkinstalldirs = $(install_sh) -d
113 CONFIG_HEADER = $(top_builddir)/config.h
114 CONFIG_CLEAN_FILES =
115 CONFIG_CLEAN_VPATH_FILES =
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 SOURCES =
129 DIST_SOURCES =
130 am__can_run_installinfo = \
131 case $$AM_UPDATE_INFO_DIR in \
132 n|no|NO) false;; \
133 *) (install-info --version) >/dev/null 2>&1;; \
134 esac
135 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
136 am__tty_colors_dummy = \
137 mgn= red= grn= lgn= blu= brg= std=; \
138 am__color_tests=no
139 am__tty_colors = { \
140 $(am__tty_colors_dummy); \
141 if test "X$(AM_COLOR_TESTS)" = Xno; then \
142 am__color_tests=no; \
143 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
144 am__color_tests=yes; \
145 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
146 am__color_tests=yes; \
147 fi; \
148 if test $$am__color_tests = yes; then \
149 red=''; \
150 grn=''; \
151 lgn=''; \
152 blu=''; \
153 mgn=''; \
154 brg=''; \
155 std=''; \
156 fi; \
157 }
158 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
159 am__vpath_adj = case $$p in \
160 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
161 *) f=$$p;; \
162 esac;
163 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
164 am__install_max = 40
165 am__nobase_strip_setup = \
166 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
167 am__nobase_strip = \
168 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
169 am__nobase_list = $(am__nobase_strip_setup); \
170 for p in $$list; do echo "$$p $$p"; done | \
171 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
172 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
173 if (++n[$$2] == $(am__install_max)) \
174 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
175 END { for (dir in files) print dir, files[dir] }'
176 am__base_list = \
177 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
178 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
179 am__uninstall_files_from_dir = { \
180 test -z "$$files" \
181 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
182 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
183 $(am__cd) "$$dir" && rm -f $$files; }; \
184 }
185 am__recheck_rx = ^[ ]*:recheck:[ ]*
186 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
187 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
188 # A command that, given a newline-separated list of test names on the
189 # standard input, print the name of the tests that are to be re-run
190 # upon "make recheck".
191 am__list_recheck_tests = $(AWK) '{ \
192 recheck = 1; \
193 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
194 { \
195 if (rc < 0) \
196 { \
197 if ((getline line2 < ($$0 ".log")) < 0) \
198 recheck = 0; \
199 break; \
200 } \
201 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
202 { \
203 recheck = 0; \
204 break; \
205 } \
206 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
207 { \
208 break; \
209 } \
210 }; \
211 if (recheck) \
212 print $$0; \
213 close ($$0 ".trs"); \
214 close ($$0 ".log"); \
215 }'
216 # A command that, given a newline-separated list of test names on the
217 # standard input, create the global log from their .trs and .log files.
218 am__create_global_log = $(AWK) ' \
219 function fatal(msg) \
220 { \
221 print "fatal: making $@: " msg | "cat >&2"; \
222 exit 1; \
223 } \
224 function rst_section(header) \
225 { \
226 print header; \
227 len = length(header); \
228 for (i = 1; i <= len; i = i + 1) \
229 printf "="; \
230 printf "\n\n"; \
231 } \
232 { \
233 copy_in_global_log = 1; \
234 global_test_result = "RUN"; \
235 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
236 { \
237 if (rc < 0) \
238 fatal("failed to read from " $$0 ".trs"); \
239 if (line ~ /$(am__global_test_result_rx)/) \
240 { \
241 sub("$(am__global_test_result_rx)", "", line); \
242 sub("[ ]*$$", "", line); \
243 global_test_result = line; \
244 } \
245 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
246 copy_in_global_log = 0; \
247 }; \
248 if (copy_in_global_log) \
249 { \
250 rst_section(global_test_result ": " $$0); \
251 while ((rc = (getline line < ($$0 ".log"))) != 0) \
252 { \
253 if (rc < 0) \
254 fatal("failed to read from " $$0 ".log"); \
255 print line; \
256 }; \
257 printf "\n"; \
258 }; \
259 close ($$0 ".trs"); \
260 close ($$0 ".log"); \
261 }'
262 # Restructured Text title.
263 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
264 # Solaris 10 'make', and several other traditional 'make' implementations,
265 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
266 # by disabling -e (using the XSI extension "set +e") if it's set.
267 am__sh_e_setup = case $$- in *e*) set +e;; esac
268 # Default flags passed to test drivers.
269 am__common_driver_flags = \
270 --color-tests "$$am__color_tests" \
271 --enable-hard-errors "$$am__enable_hard_errors" \
272 --expect-failure "$$am__expect_failure"
273 # To be inserted before the command running the test. Creates the
274 # directory for the log if needed. Stores in $dir the directory
275 # containing $f, in $tst the test, in $log the log. Executes the
276 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
277 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
278 # will run the test scripts (or their associated LOG_COMPILER, if
279 # thy have one).
280 am__check_pre = \
281 $(am__sh_e_setup); \
282 $(am__vpath_adj_setup) $(am__vpath_adj) \
283 $(am__tty_colors); \
284 srcdir=$(srcdir); export srcdir; \
285 case "$@" in \
286 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
287 *) am__odir=.;; \
288 esac; \
289 test "x$$am__odir" = x"." || test -d "$$am__odir" \
290 || $(MKDIR_P) "$$am__odir" || exit $$?; \
291 if test -f "./$$f"; then dir=./; \
292 elif test -f "$$f"; then dir=; \
293 else dir="$(srcdir)/"; fi; \
294 tst=$$dir$$f; log='$@'; \
295 if test -n '$(DISABLE_HARD_ERRORS)'; then \
296 am__enable_hard_errors=no; \
297 else \
298 am__enable_hard_errors=yes; \
299 fi; \
300 case " $(XFAIL_TESTS) " in \
301 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
302 am__expect_failure=yes;; \
303 *) \
304 am__expect_failure=no;; \
305 esac; \
306 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
307 # A shell command to get the names of the tests scripts with any registered
308 # extension removed (i.e., equivalently, the names of the test logs, with
309 # the '.log' extension removed). The result is saved in the shell variable
310 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
311 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
312 # since that might cause problem with VPATH rewrites for suffix-less tests.
313 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
314 am__set_TESTS_bases = \
315 bases='$(TEST_LOGS)'; \
316 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
317 bases=`echo $$bases`
318 RECHECK_LOGS = $(TEST_LOGS)
319 AM_RECURSIVE_TARGETS = check recheck
320 TEST_SUITE_LOG = test-suite.log
321 TEST_EXTENSIONS = @EXEEXT@ .test
322 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
323 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
324 am__set_b = \
325 case '$@' in \
326 */*) \
327 case '$*' in \
328 */*) b='$*';; \
329 *) b=`echo '$@' | sed 's/\.log$$//'`; \
330 esac;; \
331 *) \
332 b='$*';; \
333 esac
334 am__test_logs1 = $(TESTS:=.log)
335 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
336 TEST_LOGS = $(am__test_logs2:.test.log=.log)
337 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
338 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
339 $(TEST_LOG_FLAGS)
340 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/test-driver
341 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
342 ACLOCAL = @ACLOCAL@
343 AMTAR = @AMTAR@
344 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
345 AUTOCONF = @AUTOCONF@
346 AUTOHEADER = @AUTOHEADER@
347 AUTOMAKE = @AUTOMAKE@
348 AWK = @AWK@
349 CC = @CC@
350 CCDEPMODE = @CCDEPMODE@
351 CFLAGS = @CFLAGS@
352 CPP = @CPP@
353 CPPFLAGS = @CPPFLAGS@
354 CYGPATH_W = @CYGPATH_W@
355 DEFS = @DEFS@
356 DEPDIR = @DEPDIR@
357 ECHO_C = @ECHO_C@
358 ECHO_N = @ECHO_N@
359 ECHO_T = @ECHO_T@
360 EXEEXT = @EXEEXT@
361 INSTALL = @INSTALL@
362 INSTALL_DATA = @INSTALL_DATA@
363 INSTALL_PROGRAM = @INSTALL_PROGRAM@
364 INSTALL_SCRIPT = @INSTALL_SCRIPT@
365 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
366 LDFLAGS = @LDFLAGS@
367 LIBOBJS = @LIBOBJS@
368 LIBS = @LIBS@
369 LTLIBOBJS = @LTLIBOBJS@
370 MAKEINFO = @MAKEINFO@
371 MKDIR_P = @MKDIR_P@
372 OBJEXT = @OBJEXT@
373 PACKAGE = @PACKAGE@
374 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
375 PACKAGE_NAME = @PACKAGE_NAME@
376 PACKAGE_STRING = @PACKAGE_STRING@
377 PACKAGE_TARNAME = @PACKAGE_TARNAME@
378 PACKAGE_URL = @PACKAGE_URL@
379 PACKAGE_VERSION = @PACKAGE_VERSION@
380 PATH_SEPARATOR = @PATH_SEPARATOR@
381 POD2MAN = @POD2MAN@
382 SET_MAKE = @SET_MAKE@
383 SHELL = @SHELL@
384 STRIP = @STRIP@
385 VERSION = @VERSION@
386 abs_builddir = @abs_builddir@
387 abs_srcdir = @abs_srcdir@
388 abs_top_builddir = @abs_top_builddir@
389 abs_top_srcdir = @abs_top_srcdir@
390 ac_ct_CC = @ac_ct_CC@
391 am__include = @am__include@
392 am__leading_dot = @am__leading_dot@
393 am__quote = @am__quote@
394 am__tar = @am__tar@
395 am__untar = @am__untar@
396 bindir = @bindir@
397 build = @build@
398 build_alias = @build_alias@
399 build_cpu = @build_cpu@
400 build_os = @build_os@
401 build_vendor = @build_vendor@
402 builddir = @builddir@
403 datadir = @datadir@
404 datarootdir = @datarootdir@
405 docdir = @docdir@
406 dvidir = @dvidir@
407 exec_prefix = @exec_prefix@
408 host = @host@
409 host_alias = @host_alias@
410 host_cpu = @host_cpu@
411 host_os = @host_os@
412 host_vendor = @host_vendor@
413 htmldir = @htmldir@
414 includedir = @includedir@
415 infodir = @infodir@
416 install_sh = @install_sh@
417 libdir = @libdir@
418 libexecdir = @libexecdir@
419 localedir = @localedir@
420 localstatedir = @localstatedir@
421 mandir = @mandir@
422 mkdir_p = @mkdir_p@
423 oldincludedir = @oldincludedir@
424 pdfdir = @pdfdir@
425 prefix = @prefix@
426 program_transform_name = @program_transform_name@
427 psdir = @psdir@
428 sbindir = @sbindir@
429 sharedstatedir = @sharedstatedir@
430 srcdir = @srcdir@
431 sysconfdir = @sysconfdir@
432 target_alias = @target_alias@
433 tests = @tests@
434 top_build_prefix = @top_build_prefix@
435 top_builddir = @top_builddir@
436 top_srcdir = @top_srcdir@
437 CLEANFILES = *~
438 TESTS = test.sh
439 EXTRA_DIST = \
440 test.sh \
441 proc/cpuinfo \
442 proc/self/status \
443 proc/sysinfo \
444 sbin/dmidecode \
445 sbin/uname \
446 sbin/virt-what-cpuid-helper
447
448 all: all-am
449
450 .SUFFIXES:
451 .SUFFIXES: .log .test .test$(EXEEXT) .trs
452 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
453 @for dep in $?; do \
454 case '$(am__configure_deps)' in \
455 *$$dep*) \
456 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
457 && { if test -f $@; then exit 0; else break; fi; }; \
458 exit 1;; \
459 esac; \
460 done; \
461 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/zvm/Makefile'; \
462 $(am__cd) $(top_srcdir) && \
463 $(AUTOMAKE) --foreign tests/zvm/Makefile
464 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
465 @case '$?' in \
466 *config.status*) \
467 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
468 *) \
469 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
470 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
471 esac;
472
473 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
474 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
475
476 $(top_srcdir)/configure: $(am__configure_deps)
477 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
478 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
479 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
480 $(am__aclocal_m4_deps):
481 tags TAGS:
482
483 ctags CTAGS:
484
485 cscope cscopelist:
486
487
488 # Recover from deleted '.trs' file; this should ensure that
489 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
490 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
491 # to avoid problems with "make -n".
492 .log.trs:
493 rm -f $< $@
494 $(MAKE) $(AM_MAKEFLAGS) $<
495
496 # Leading 'am--fnord' is there to ensure the list of targets does not
497 # expand to empty, as could happen e.g. with make check TESTS=''.
498 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
499 am--force-recheck:
500 @:
501
502 $(TEST_SUITE_LOG): $(TEST_LOGS)
503 @$(am__set_TESTS_bases); \
504 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
505 redo_bases=`for i in $$bases; do \
506 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
507 done`; \
508 if test -n "$$redo_bases"; then \
509 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
510 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
511 if $(am__make_dryrun); then :; else \
512 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
513 fi; \
514 fi; \
515 if test -n "$$am__remaking_logs"; then \
516 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
517 "recursion detected" >&2; \
518 elif test -n "$$redo_logs"; then \
519 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
520 fi; \
521 if $(am__make_dryrun); then :; else \
522 st=0; \
523 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
524 for i in $$redo_bases; do \
525 test -f $$i.trs && test -r $$i.trs \
526 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
527 test -f $$i.log && test -r $$i.log \
528 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
529 done; \
530 test $$st -eq 0 || exit 1; \
531 fi
532 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
533 ws='[ ]'; \
534 results=`for b in $$bases; do echo $$b.trs; done`; \
535 test -n "$$results" || results=/dev/null; \
536 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
537 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
538 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
539 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
540 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
541 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
542 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
543 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
544 success=true; \
545 else \
546 success=false; \
547 fi; \
548 br='==================='; br=$$br$$br$$br$$br; \
549 result_count () \
550 { \
551 if test x"$$1" = x"--maybe-color"; then \
552 maybe_colorize=yes; \
553 elif test x"$$1" = x"--no-color"; then \
554 maybe_colorize=no; \
555 else \
556 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
557 fi; \
558 shift; \
559 desc=$$1 count=$$2; \
560 if test $$maybe_colorize = yes && test $$count -gt 0; then \
561 color_start=$$3 color_end=$$std; \
562 else \
563 color_start= color_end=; \
564 fi; \
565 echo "$${color_start}# $$desc $$count$${color_end}"; \
566 }; \
567 create_testsuite_report () \
568 { \
569 result_count $$1 "TOTAL:" $$all "$$brg"; \
570 result_count $$1 "PASS: " $$pass "$$grn"; \
571 result_count $$1 "SKIP: " $$skip "$$blu"; \
572 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
573 result_count $$1 "FAIL: " $$fail "$$red"; \
574 result_count $$1 "XPASS:" $$xpass "$$red"; \
575 result_count $$1 "ERROR:" $$error "$$mgn"; \
576 }; \
577 { \
578 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
579 $(am__rst_title); \
580 create_testsuite_report --no-color; \
581 echo; \
582 echo ".. contents:: :depth: 2"; \
583 echo; \
584 for b in $$bases; do echo $$b; done \
585 | $(am__create_global_log); \
586 } >$(TEST_SUITE_LOG).tmp || exit 1; \
587 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
588 if $$success; then \
589 col="$$grn"; \
590 else \
591 col="$$red"; \
592 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
593 fi; \
594 echo "$${col}$$br$${std}"; \
595 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
596 echo "$${col}$$br$${std}"; \
597 create_testsuite_report --maybe-color; \
598 echo "$$col$$br$$std"; \
599 if $$success; then :; else \
600 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
601 if test -n "$(PACKAGE_BUGREPORT)"; then \
602 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
603 fi; \
604 echo "$$col$$br$$std"; \
605 fi; \
606 $$success || exit 1
607
608 check-TESTS:
609 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
610 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
611 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
612 @set +e; $(am__set_TESTS_bases); \
613 log_list=`for i in $$bases; do echo $$i.log; done`; \
614 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
615 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
616 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
617 exit $$?;
618 recheck: all
619 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
620 @set +e; $(am__set_TESTS_bases); \
621 bases=`for i in $$bases; do echo $$i; done \
622 | $(am__list_recheck_tests)` || exit 1; \
623 log_list=`for i in $$bases; do echo $$i.log; done`; \
624 log_list=`echo $$log_list`; \
625 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
626 am__force_recheck=am--force-recheck \
627 TEST_LOGS="$$log_list"; \
628 exit $$?
629 test.sh.log: test.sh
630 @p='test.sh'; \
631 b='test.sh'; \
632 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
633 --log-file $$b.log --trs-file $$b.trs \
634 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
635 "$$tst" $(AM_TESTS_FD_REDIRECT)
636 .test.log:
637 @p='$<'; \
638 $(am__set_b); \
639 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
640 --log-file $$b.log --trs-file $$b.trs \
641 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
642 "$$tst" $(AM_TESTS_FD_REDIRECT)
643 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
644 @am__EXEEXT_TRUE@ @p='$<'; \
645 @am__EXEEXT_TRUE@ $(am__set_b); \
646 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
647 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
648 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
649 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
650
651 distdir: $(BUILT_SOURCES)
652 $(MAKE) $(AM_MAKEFLAGS) distdir-am
653
654 distdir-am: $(DISTFILES)
655 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
656 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
657 list='$(DISTFILES)'; \
658 dist_files=`for file in $$list; do echo $$file; done | \
659 sed -e "s|^$$srcdirstrip/||;t" \
660 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
661 case $$dist_files in \
662 */*) $(MKDIR_P) `echo "$$dist_files" | \
663 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
664 sort -u` ;; \
665 esac; \
666 for file in $$dist_files; do \
667 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
668 if test -d $$d/$$file; then \
669 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
670 if test -d "$(distdir)/$$file"; then \
671 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
672 fi; \
673 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
674 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
675 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
676 fi; \
677 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
678 else \
679 test -f "$(distdir)/$$file" \
680 || cp -p $$d/$$file "$(distdir)/$$file" \
681 || exit 1; \
682 fi; \
683 done
684 check-am: all-am
685 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
686 check: check-am
687 all-am: Makefile
688 installdirs:
689 install: install-am
690 install-exec: install-exec-am
691 install-data: install-data-am
692 uninstall: uninstall-am
693
694 install-am: all-am
695 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
696
697 installcheck: installcheck-am
698 install-strip:
699 if test -z '$(STRIP)'; then \
700 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
701 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
702 install; \
703 else \
704 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
705 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
706 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
707 fi
708 mostlyclean-generic:
709 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
710 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
711 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
712
713 clean-generic:
714 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
715
716 distclean-generic:
717 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
718 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
719
720 maintainer-clean-generic:
721 @echo "This command is intended for maintainers to use"
722 @echo "it deletes files that may require special tools to rebuild."
723 clean: clean-am
724
725 clean-am: clean-generic mostlyclean-am
726
727 distclean: distclean-am
728 -rm -f Makefile
729 distclean-am: clean-am distclean-generic
730
731 dvi: dvi-am
732
733 dvi-am:
734
735 html: html-am
736
737 html-am:
738
739 info: info-am
740
741 info-am:
742
743 install-data-am:
744
745 install-dvi: install-dvi-am
746
747 install-dvi-am:
748
749 install-exec-am:
750
751 install-html: install-html-am
752
753 install-html-am:
754
755 install-info: install-info-am
756
757 install-info-am:
758
759 install-man:
760
761 install-pdf: install-pdf-am
762
763 install-pdf-am:
764
765 install-ps: install-ps-am
766
767 install-ps-am:
768
769 installcheck-am:
770
771 maintainer-clean: maintainer-clean-am
772 -rm -f Makefile
773 maintainer-clean-am: distclean-am maintainer-clean-generic
774
775 mostlyclean: mostlyclean-am
776
777 mostlyclean-am: mostlyclean-generic
778
779 pdf: pdf-am
780
781 pdf-am:
782
783 ps: ps-am
784
785 ps-am:
786
787 uninstall-am:
788
789 .MAKE: check-am install-am install-strip
790
791 .PHONY: all all-am check check-TESTS check-am clean clean-generic \
792 cscopelist-am ctags-am distclean distclean-generic distdir dvi \
793 dvi-am html html-am info info-am install install-am \
794 install-data install-data-am install-dvi install-dvi-am \
795 install-exec install-exec-am install-html install-html-am \
796 install-info install-info-am install-man install-pdf \
797 install-pdf-am install-ps install-ps-am install-strip \
798 installcheck installcheck-am installdirs maintainer-clean \
799 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
800 pdf-am ps ps-am recheck tags-am uninstall uninstall-am
801
802 .PRECIOUS: Makefile
803
804
805 # Tell versions [3.59,3.63) of GNU make to not export all variables.
806 # Otherwise a system limit (for SysV at least) may be exceeded.
807 .NOEXPORT:
0 # Test for z/VM on IBM SystemZ mainframe.
1 # (Thanks Dan Horák for supplying access).
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 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
19 expected="ibm_systemz
20 ibm_systemz-zvm"
21
22 if [ "$output" != "$expected" ]; then
23 echo "$0: test failed because output did not match expected"
24 echo "Expected output was:"
25 echo "----------------------------------------"
26 echo "$expected"
27 echo "----------------------------------------"
28 echo "But the actual output of the program was:"
29 echo "----------------------------------------"
30 echo "$output"
31 echo "----------------------------------------"
32 exit 1
33 fi
00 /* virt-what-cpuid-helper: Are we running inside KVM or Xen HVM?
1 * Copyright (C) 2008 Red Hat Inc.
1 * Copyright (C) 2008-2019 Red Hat Inc.
22 *
33 * This program is free software; you can redistribute it and/or modify
44 * it under the terms of the GNU General Public License as published by
2020 */
2121
2222 #include <stdio.h>
23 #include <stdlib.h>
24 #include <stdint.h>
2325 #include <string.h>
2426
2527 #if defined(__i386__) || defined(__x86_64__)
2628
27 static unsigned int
28 cpuid (unsigned int eax, char *sig)
29 /* Known x86 hypervisor signatures. Note that if you add a new test
30 * to virt-what.in you may need to update this list. Note the
31 * signature is always 12 bytes long, plus we add \0 to the end to
32 * make it 13 bytes.
33 */
34 static int
35 known_signature (const char *sig)
2936 {
30 unsigned int *sig32 = (unsigned int *) sig;
37 return
38 strcmp (sig, "bhyve bhyve ") == 0 ||
39 memcmp (sig, "KVMKVMKVM\0\0\0", 12) == 0 ||
40 strcmp (sig, "LKVMLKVMLKVM") == 0 ||
41 strcmp (sig, "Microsoft Hv") == 0 ||
42 strcmp (sig, "OpenBSDVMM58") == 0 ||
43 strcmp (sig, "TCGTCGTCGTCG") == 0 ||
44 strcmp (sig, "VMwareVMware") == 0 ||
45 strcmp (sig, "XenVMMXenVMM") == 0 ||
46 0;
47 }
3148
32 asm volatile (
33 "xchgl %%ebx,%1; xor %%ebx,%%ebx; cpuid; xchgl %%ebx,%1"
34 : "=a" (eax), "+r" (sig32[0]), "=c" (sig32[1]), "=d" (sig32[2])
35 : "0" (eax));
36 sig[12] = 0;
49 /* Copied from the Linux kernel definition in
50 * arch/x86/include/asm/processor.h
51 */
52 static inline void
53 cpuid (uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx)
54 {
55 asm volatile ("cpuid"
56 : "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx)
57 : "0" (*eax), "2" (*ecx)
58 : "memory");
59 }
3760
61 static uint32_t
62 cpuid_leaf (uint32_t eax, char *sig)
63 {
64 uint32_t *sig32 = (uint32_t *) sig;
65
66 cpuid (&eax, &sig32[0], &sig32[1], &sig32[2]);
67 sig[12] = 0; /* \0-terminate the string to make string comparison possible */
3868 return eax;
3969 }
4070
4272 cpu_sig (void)
4373 {
4474 char sig[13];
45 unsigned int base = 0x40000000, leaf = base;
46 unsigned int max_entries;
75 const uint32_t base = 0x40000000;
76 uint32_t leaf;
4777
48 memset (sig, 0, sizeof sig);
49 max_entries = cpuid (leaf, sig);
50 puts (sig);
51
52 /* Most hypervisors only have information in leaf 0x40000000, but
53 * upstream Xen contains further leaf entries (in particular when
54 * used with Viridian [HyperV] extensions). CPUID is supposed to
55 * return the maximum leaf offset in %eax, so that's what we use,
56 * but only if it looks sensible.
78 /* Most hypervisors only have information in leaf 0x40000000.
79 *
80 * Some hypervisors have "Viridian [HyperV] extensions", and those
81 * must appear in slot 0x40000000, but they will also have the true
82 * hypervisor in a higher slot.
83 *
84 * CPUID is supposed to return the maximum leaf offset in %eax, but
85 * this is not reliable. Instead we check the returned signatures
86 * against a known list (the others will be empty or garbage) and
87 * only print the ones we know about. This is OK because if we add
88 * a new test in virt-what we can update the list.
89 *
90 * By searching backwards we only print the highest entry, thus
91 * ignoring Viridian for Xen (and Nutanix). If we ever encounter a
92 * hypervisor that has more than 2 entries we may need to revisit
93 * this.
5794 */
58 if (max_entries > 3 && max_entries < 0x10000) {
59 for (leaf = base + 0x100; leaf <= base + max_entries; leaf += 0x100) {
60 memset (sig, 0, sizeof sig);
61 cpuid (leaf, sig);
95 for (leaf = base + 0xff00; leaf >= base; leaf -= 0x100) {
96 memset (sig, 0, sizeof sig);
97 cpuid_leaf (leaf, sig);
98 if (known_signature (sig)) {
6299 puts (sig);
100 break;
63101 }
64102 }
65103 }
00 #!/bin/sh -
11 # @configure_input@
2 # Copyright (C) 2008-2017 Red Hat Inc.
2 # Copyright (C) 2008-2019 Red Hat Inc.
33 #
44 # This program is free software; you can redistribute it and/or modify
55 # it under the terms of the GNU General Public License as published by
131131 # The negative check for cpuid is to distinguish this from Hyper-V
132132 # which also has the same manufacturer string in the SM-BIOS data.
133133 if [ "$cpuid" != "Microsoft Hv" ] &&
134 echo "$dmi" | grep -q 'Manufacturer: Microsoft Corporation'; then
134 echo "$dmi" | grep -q 'Manufacturer: Microsoft Corporation' &&
135 echo "$dmi" | grep -q 'Product Name: Virtual Machine'; then
135136 echo virtualpc
136137 fi
137138
163164 # Added by Marc Fournier
164165
165166 if [ -e "${root}/proc/1/environ" ] &&
166 cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container='; then
167 cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container=lxc'; then
167168 echo lxc
168169 fi
169170
216217 # Check for Parallels.
217218 if echo "$dmi" | grep -q 'Vendor: Parallels'; then
218219 echo parallels
220 skip_qemu_kvm=true
221 fi
222
223 # Check for Nutanix AHV.
224 # This is sufficiently different from KVM and has Viridian extensions,
225 # so skip the KVM test.
226 if echo "$dmi" | grep -q 'Manufacturer: Nutanix'; then
227 echo nutanix_ahv
219228 skip_qemu_kvm=true
220229 fi
221230
335344 fi
336345
337346 # Check for Docker.
338 if [ -f "${root}/.dockerinit" ]; then
347 if [ -f "${root}/.dockerenv" ] || [ -f "${root}/.dockerinit" ] || \
348 grep -qF /docker/ "${root}/proc/self/cgroup" 2>/dev/null; then
339349 echo docker
350 fi
351
352 # Check for Podman.
353 if [ -e "${root}/proc/1/environ" ] &&
354 cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container=podman'; then
355 echo podman
356 elif grep -qF /libpod- "${root}/proc/self/cgroup" 2>/dev/null; then
357 echo podman
340358 fi
341359
342360 # Check ppc64 lpar, kvm or powerkvm
176176
177177 Status: contributed by Andrew Jones
178178
179 =item B<nutanix_ahv>
180
181 The guest is running inside Nutanix Acropolis Hypervisor (AHV).
182
183 Status: confirmed by RWMJ.
184
179185 =item B<openvz>
180186
181187 The guest appears to be running inside an OpenVZ or Virtuozzo
196202 (Parallels Desktop, Parallels Server).
197203
198204 Status: contributed by Justin Clift
205
206 =item B<podman>
207
208 This is a Podman container.
209
210 Status: contributed by Jordan Webb
199211
200212 =item B<powervm_lx86>
201213