File: test-get-emulator.phpt

package info (click to toggle)
libvirt-php 0.5.8-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,140 kB
  • sloc: ansic: 9,352; sh: 4,578; php: 269; makefile: 219; xml: 93
file content (21 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
	require_once('functions.phpt');

	$conn = libvirt_connect('test:///default');
	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__) );
?>