dist-check: added simple tests for builds without ngx_gzip module.

This commit is contained in:
Yichun Zhang (agentzh) 2015-01-29 14:56:02 -08:00
parent 6b052c8fca
commit 55909727dd
1 changed files with 18 additions and 1 deletions

View File

@ -46,7 +46,24 @@ if ($^O eq 'solaris') {
my $prefix; my $prefix;
warn "=== No Pool Build ===\n"; warn "=== Without Gzip ===\n";
$prefix = "/usr/local/openresty-nogzip";
unless ($opts{f}) {
sh "./configure $cfg_opts --without-http_gzip_module --prefix=$prefix -j$jobs > /dev/null";
}
sh "$make -j$jobs > /dev/null";
sh "sudo $make install > /dev/null";
sh "$prefix/nginx/sbin/nginx -V 2>&1 |grep $ver";
sh "$prefix/nginx/sbin/nginx -V 2>&1 |grep '\\--without-http_gzip_module'";
system "sudo killall nginx > /dev/null 2>&1";
sh "sudo $prefix/nginx/sbin/nginx";
sh "curl -si localhost/lua|grep $lua";
sh "curl -si localhost/lua|grep $ver";
sh "curl -si localhost/cjson|grep 'json.safe: '";
sh qq{$prefix/bin/resty -e 'ngx.say("Hello World!")'|grep 'Hello World'};
sh "sudo $prefix/nginx/sbin/nginx -sstop";
warn "\n=== No Pool Build ===\n";
$prefix = "/usr/local/openresty-nopool"; $prefix = "/usr/local/openresty-nopool";
unless ($opts{f}) { unless ($opts{f}) {
sh "./configure --with-no-pool-patch $cfg_opts --prefix=$prefix -j$jobs > /dev/null"; sh "./configure --with-no-pool-patch $cfg_opts --prefix=$prefix -j$jobs > /dev/null";