2 Commits

Author SHA1 Message Date
33a68d8c2d doc: updated how to test. 2016-08-28 20:46:04 +09:00
424ab0dbb7 Merge pull request #1 from cubicdaiya/gtest-update
test: changed the way to embed googletest.
2016-08-28 20:44:00 +09:00

View File

@ -650,14 +650,14 @@ $
# Running tests # Running tests
`dtl` uses [googletest](http://code.google.com/p/googletest/) and [SCons](http://www.scons.org/) with testing dtl-self. `dtl` uses [googletest](https://github.com/google/googletest) and [SCons](http://www.scons.org/) with testing dtl-self.
# Building test programs # Building test programs
If you build test programs for `dtl`, run `scons` in test direcotry. If you build test programs for `dtl`, run `scons` in test direcotry.
```bash ```bash
$ GTEST_ROOT=${gtest_root_dir} scons $ scons
``` ```
# Running test programs # Running test programs
@ -665,7 +665,7 @@ $ GTEST_ROOT=${gtest_root_dir} scons
If you run all tests for `dtl`, run 'scons check' in test direcotry. (it is necessary that gtest is compiled) If you run all tests for `dtl`, run 'scons check' in test direcotry. (it is necessary that gtest is compiled)
```bash ```bash
$ GTEST_ROOT=${gtest_root_dir} scons check $ scons check
``` ```
If you run sectional tests, you may exeucte `dtl_test` directly after you run `scons`. If you run sectional tests, you may exeucte `dtl_test` directly after you run `scons`.