Hi Kerrick,
Starting from blank, do:
mkdir build
cd build
cmake ..
make tests
CMake generates a bunch of Makefiles, make does the actual building.
That will compile the tests. You'll get a handful of executable files in
the "build/unit_tests/" dir, like:
~/osrm-backend/build/unit_tests$ ls *-tests
-rwxrwxr-x 1 danpat danpat 781200 Apr 20 16:00 engine-tests
-rwxrwxr-x 1 danpat danpat 2124584 Apr 20 16:02 extractor-tests
-rwxrwxr-x 1 danpat danpat 879552 Apr 20 16:01 library-tests
-rwxrwxr-x 1 danpat danpat 1417136 Apr 20 16:01 server-tests
-rwxrwxr-x 1 danpat danpat 809616 Apr 20 15:58 util-tests
You can run them individually:
$ ./engine-tests
Running 10 test cases...
*** No errors detected
daniel
On Wed, Apr 20, 2016 at 3:31 PM, Kerrick Staley <[email protected]> wrote:
> Noob question: how do I run the C++ unit tests in /unit_tests/? Can't find
> it documented anywhere and I'm not very familiar with CMake.
>
> Thanks,
> Kerrick
>
> _______________________________________________
> OSRM-talk mailing list
> [email protected]
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
>
_______________________________________________
OSRM-talk mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/osrm-talk