summaryrefslogtreecommitdiff
path: root/tests/autotest-remote-server.pl
blob: 970476cbafe90521feaa724ea83ecf08e3d56c0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl

use IO::Socket;

$vm = shift;

my $server = new IO::Socket::INET(LocalPort => 7183, Listen => 1);
die "Could not create socket: $!\n" unless $server;

system("vboxmanage startvm $vm --type headless");

print "Listening for connection...\n";

my $client = $server->accept();

print while (<$client>);