mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-04 21:17:36 +08:00
docs: mention iresty/test-nginx should be used (#3119)
This commit is contained in:
parent
b1e5edd7d8
commit
078a0626b2
@ -112,8 +112,8 @@ see how to do it.
|
||||
## 4. Test
|
||||
|
||||
1. Install perl's package manager `cpanminus` first
|
||||
2. Then install `test-nginx` via `cpanm`::`sudo cpanm --notest Test::Nginx IPC::Run > build.log 2>&1 || (cat build.log && exit 1)`
|
||||
3. Clone source code:`git clone https://github.com/openresty/test-nginx.git`;
|
||||
2. Then install `test-nginx`'s dependencies via `cpanm`::`sudo cpanm --notest Test::Nginx IPC::Run > build.log 2>&1 || (cat build.log && exit 1)`
|
||||
3. Clone source code:`git clone https://github.com/iresty/test-nginx.git`. Note that we should use our fork.
|
||||
4. Load the `test-nginx` library with perl's `prove` command and run the test cases in the `/t` directory:
|
||||
* Set PERL5LIB for perl module: `export PERL5LIB=.:$PERL5LIB`
|
||||
* Run the test cases: `make test`
|
||||
|
@ -107,8 +107,8 @@ Makefile rules:
|
||||
## 4. 运行测试案例
|
||||
|
||||
1. 先安装 perl 的包管理器 cpanminus
|
||||
2. 然后通过 cpanm 来安装 test-nginx:`sudo cpanm --notest Test::Nginx IPC::Run > build.log 2>&1 || (cat build.log && exit 1)`
|
||||
3. 然后 clone 最新的源码:`git clone https://github.com/openresty/test-nginx.git`
|
||||
2. 然后通过 cpanm 来安装 test-nginx 的依赖:`sudo cpanm --notest Test::Nginx IPC::Run > build.log 2>&1 || (cat build.log && exit 1)`
|
||||
3. 然后 clone 最新的源码:`git clone https://github.com/iresty/test-nginx.git`。注意使用我们 fork 出来的版本。
|
||||
4. 通过 perl 的 `prove` 命令来加载 test-nginx 的库,并运行 `/t` 目录下的测试案例集:
|
||||
* 追加当前目录到perl模块目录: `export PERL5LIB=.:$PERL5LIB`
|
||||
* 直接运行:`make test`
|
||||
|
Loading…
Reference in New Issue
Block a user