11 if ($ENV{MASON_TEST_PORT}) {
12 # just in case someone wants to overwrite the test webserver port
14 $TEST_PORT = $ENV{MASON_TEST_PORT};
17 diag("Deploying OpenXPKI test instance\n");
19 my $instancedir = 't/20_webserver/test_instance';
20 my $socketfile = $instancedir . '/var/openxpki/openxpki.socket';
21 my $pidfile = $instancedir . '/var/openxpki/openxpki.pid';
23 ok(deploy_test_server({
24 DIRECTORY => $instancedir,
25 }), 'Test server deployed successfully');
27 DIRECTORY => $instancedir,
28 }), 'CA certificate created and installed successfully');
29 ok(start_test_server({
30 DIRECTORY => $instancedir,
31 }), 'Test server started successfully');
33 # wait for server startup
35 foreach my $i (1..60) {
43 ok(-e $pidfile, "PID file exists");
44 ok(-e $socketfile, "Socketfile exists");