mirror of
https://github.com/mirror/wget.git
synced 2026-09-06 06:34:56 +08:00
Add static HOSTSALIAS file
* tests/certs/wgethosts: New file * tests/Test-https-*.px: Remove creation of wgethosts file
This commit is contained in:
@@ -30,13 +30,9 @@ my $cdir = $ENV{'PWD'};
|
||||
|
||||
# HOSTALIASES env variable allows us to create hosts file alias.
|
||||
my $testhostname = "WgetTestingServer";
|
||||
my $testhostfile = "$cdir/wgethosts";
|
||||
open(my $fh, '>', $testhostfile);
|
||||
print $fh "$testhostname 127.0.0.1\n";
|
||||
close $fh;
|
||||
$ENV{'HOSTALIASES'} = "$cdir/wgethosts";
|
||||
$ENV{'HOSTALIASES'} = "$cdir/certs/wgethosts";
|
||||
|
||||
# Prepare self-signed certifcates
|
||||
# Prepare self-signed certificates
|
||||
my $certfile="tmpsscert.pem";
|
||||
my $keyfile="tmpsskey.pem";
|
||||
my $certsubj="/C=US/ST=CA/L=Mystery Spot/O=Dis/CN=$testhostname/emailAddress=tester";
|
||||
|
||||
Reference in New Issue
Block a user