test-get-emulator.phpt 467 Bytes
Newer Older
1 2 3
<?php
	require_once('functions.phpt');

4
	$conn = libvirt_connect('test:///default');
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
	if (!is_resource($conn))
		bail('Connection to default hypervisor failed');

	$tmp = libvirt_connect_get_emulator($conn);
	if (!is_string($tmp))
		bail('Cannot get default emulator');

	$tmp = libvirt_connect_get_emulator($conn, 'i686');
	if (!is_string($tmp))
		bail('Cannot get emulator for i686 architecture');


	unset($tmp);
	unset($conn);

	success( basename(__FILE__) );
?>