From b336119424d3fc0d9ffa39688612a83c23c6e10e Mon Sep 17 00:00:00 2001 From: qingqing01 Date: Tue, 29 Aug 2017 16:03:07 +0800 Subject: [PATCH] Add WITH_TESTING=ON for cmake in the operators writing guide doc. --- doc/howto/dev/new_op_cn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/howto/dev/new_op_cn.md b/doc/howto/dev/new_op_cn.md index 228b3fd643..7f8da2da5a 100644 --- a/doc/howto/dev/new_op_cn.md +++ b/doc/howto/dev/new_op_cn.md @@ -312,7 +312,7 @@ class TestMulOp(unittest.TestCase): py_test(test_mul_op SRCS test_mul_op.py) ``` -编译完成之后即可执行单测: +编译时需要打开`WITH_TESTING`, 即 `cmake paddle_dir -DWITH_TESTING=ON`,编译成功之后执行单测命令为: ``` make test ARGS="-R test_mul_op -V" -- GitLab