diff --git a/util/dist-check b/util/dist-check index e923b14..2fe5fa8 100755 --- a/util/dist-check +++ b/util/dist-check @@ -46,7 +46,24 @@ if ($^O eq 'solaris') { 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"; unless ($opts{f}) { sh "./configure --with-no-pool-patch $cfg_opts --prefix=$prefix -j$jobs > /dev/null";