| # Tests for embedded perl module. |
| ############################################################################### |
| BEGIN { use FindBin; chdir($FindBin::Bin); } |
| ############################################################################### |
| my $t = Test::Nginx->new()->has(qw/http perl rewrite/)->plan(1) |
| ->write_file_expand('nginx.conf', <<'EOF'); |
| $r->send_http_header("text/plain"); |
| return OK if $r->header_only; |
| my $v = $r->variable("testvar"); |
| ############################################################################### |
| like(http_get('/'), qr/TEST/, 'perl response'); |
| ############################################################################### |