comparison stream_ssl_realip.t @ 1220:0af58b78df35

Tests: removed single quotes from system() calls. Single quotes were used to escape paths with spaces but are neither supported in the Windows CMD shell, nor sufficient without proper %%TESTDIR%% expansion.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 20 Sep 2017 14:46:51 +0300
parents fcd65708672d
children 766bcbb632ee
comparison
equal deleted inserted replaced
1219:f373a718f646 1220:0af58b78df35
93 93
94 my $d = $t->testdir(); 94 my $d = $t->testdir();
95 95
96 foreach my $name ('localhost') { 96 foreach my $name ('localhost') {
97 system('openssl req -x509 -new ' 97 system('openssl req -x509 -new '
98 . "-config '$d/openssl.conf' -subj '/CN=$name/' " 98 . "-config $d/openssl.conf -subj /CN=$name/ "
99 . "-out '$d/$name.crt' -keyout '$d/$name.key' " 99 . "-out $d/$name.crt -keyout $d/$name.key "
100 . ">>$d/openssl.out 2>&1") == 0 100 . ">>$d/openssl.out 2>&1") == 0
101 or die "Can't create certificate for $name: $!\n"; 101 or die "Can't create certificate for $name: $!\n";
102 } 102 }
103 103
104 $t->try_run('no stream proxy_protocol or inet6 support')->plan(6); 104 $t->try_run('no stream proxy_protocol or inet6 support')->plan(6);