You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by we...@apache.org on 2020/03/13 00:55:36 UTC

[incubator-apisix] branch master updated: doc: add export `PERL5LIB` env for running test cases (#1215)

This is an automated email from the ASF dual-hosted git repository.

wenming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 2399646  doc: add export `PERL5LIB` env for running test cases (#1215)
2399646 is described below

commit 23996462419532c8713a8ad8d9eed1c4e9546a58
Author: wonglend <gk...@qq.com>
AuthorDate: Fri Mar 13 08:55:27 2020 +0800

    doc: add export `PERL5LIB` env for running test cases (#1215)
---
 doc/how-to-build-cn.md | 1 +
 doc/how-to-build.md    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/doc/how-to-build-cn.md b/doc/how-to-build-cn.md
index c0000f1..d1d8c2d 100644
--- a/doc/how-to-build-cn.md
+++ b/doc/how-to-build-cn.md
@@ -106,6 +106,7 @@ Makefile rules:
 2. 然后通过 cpanm 来安装 test-gninx:`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`
 4. 通过 perl 的 `prove` 命令来加载 test-nginx 的库,并运行 `/t` 目录下的测试案例集:
+    * 追加当前目录到perl模块目录: `export PERL5LIB=.:$PERL5LIB`
     * 直接运行:`prove -Itest-nginx/lib -r t`
     * 指定 nginx 二进制路径:`TEST_NGINX_BINARY=/usr/local/bin/openresty prove -Itest-nginx/lib -r t`
 
diff --git a/doc/how-to-build.md b/doc/how-to-build.md
index a52a9ba..2ded975 100644
--- a/doc/how-to-build.md
+++ b/doc/how-to-build.md
@@ -108,6 +108,7 @@ Makefile rules:
 2. Then install `test-gninx` 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`;
 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: `prove -Itest-nginx/lib -r t`
     * To set the path of nginx to run the test cases: `TEST_NGINX_BINARY=/usr/local/bin/openresty prove -Itest-nginx/lib -r t`