mirror of https://github.com/alibaba/tengine.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
6 years ago | |
---|---|---|
.. | ||
nginx-tests | 6 years ago | |
tengine-tests | 6 years ago | |
README | 13 years ago |
README
Just test static modules:
TEST_NGINX_BINARY=/path/to/nginx/sbin/nginx prove cases
TEST_NGINX_BINARY=/path/to/nginx/sbin/nginx prove nginx-tests
Just test the dso modules:
1. RUN the test command with TEST_NGINX_DSO=1
TEST_NGINX_DSO=1 TEST_NGINX_BINARY=/path/to/nginx/sbin/nginx prove cases
TEST_NGINX_DSO=1 TEST_NGINX_BINARY=/path/to/nginx/sbin/nginx prove dso-nginx-tests
2. Add the dso module to the test script (The example module shared library should be under the modules directory):
$t->set_dso("ngx_http_example_module", "ngx_http_example_module.so");
...
%%TEST_GLOBALS_DSO%%