From efb5d9f647ae726d34f193550bfd24a800e6a13a Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Thu, 28 Jun 2018 17:48:48 +0900 Subject: [PATCH] Add 'How to build and run unittest' section (#403) This commit adds 'How to build and run unittest' section in Getting Started document. Signed-off-by: Jonghyun Park --- doc/getting_started.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/getting_started.md b/doc/getting_started.md index 3a41903..dc1c39c 100644 --- a/doc/getting_started.md +++ b/doc/getting_started.md @@ -46,3 +46,16 @@ One may easily build _nncc_ with the following command once ``nncc`` docker imag ``` nncc$ ./nncc docker-build ``` + +#### How to build and run _nncc_ unittests + +_nncc_ includes various unittests to check its correctness. One may build and run these unittests via the following command: +``` +nncc$ rm -rf build +nncc$ ./nncc configure -DENABLE_TEST=1 +nncc$ ./nncc build +nncc$ ./nncc test +``` + +**NOTE** As _nncc_ unittests are implemented on top of google test framework (_gtest_), _nncc_ build script will automatically download _gtest_ 1.8 from public GitHub. +If you are not able to access public GitHub from your machine, please override download URL via ``GTEST_URL`` environment variable. -- 2.7.4