Discussion:
Run test suite.
Dirk Hohndel
2018-07-05 16:23:17 UTC
Permalink
You sent that to an odd github address :-)
It seems Linux2 on travis runs the test suite.
Indeed
How can I build a test executable and run it on my mac ?
(I am about to write a lot of test cases, and would like to test locally before pushing the PR).
Make sure that MAKE_TESTS is set to ON (that's the default).
Then run
make check
Right now that seems broken for me out of the box because it can't find the libgit2
shared library - but that's easy to fix.


/D
Jan Iversen
2018-07-05 18:47:27 UTC
Permalink
Just controlled CMakelists.txt it sets (as you wrote) MAKE_TESTS on, but when I do

c:subsurface jani$ vi CMakeLists.txt
janMac:subsurface jani$ make check
make: *** No rule to make target `check'. Stop.

What am I missing ?

Rgds
Jan I.
Enviado desde mi iPad
Post by Dirk Hohndel
You sent that to an odd github address :-)
It seems Linux2 on travis runs the test suite.
Indeed
How can I build a test executable and run it on my mac ?
(I am about to write a lot of test cases, and would like to test locally before pushing the PR).
Make sure that MAKE_TESTS is set to ON (that's the default).
Then run
make check
Right now that seems broken for me out of the box because it can't find the libgit2
shared library - but that's easy to fix.
/D
Dirk Hohndel
2018-07-05 19:31:02 UTC
Permalink
Post by Jan Iversen
Just controlled CMakelists.txt it sets (as you wrote) MAKE_TESTS on, but when I do
c:subsurface jani$ vi CMakeLists.txt
janMac:subsurface jani$ make check
make: *** No rule to make target `check'. Stop.
You need to be in your build directory, right?
And then it may complain about not finding libgit2.26.dylib - so you need to make sure that you either fix up the binaries or have that in your library search path.

After that it should work.

/D
Jan Iversen
2018-07-05 19:47:45 UTC
Permalink
Enviado desde mi iPad
Post by Dirk Hohndel
Post by Jan Iversen
Just controlled CMakelists.txt it sets (as you wrote) MAKE_TESTS on, but when I do
c:subsurface jani$ vi CMakeLists.txt
janMac:subsurface jani$ make check
make: *** No rule to make target `check'. Stop.
You need to be in your build directory, right?
And then it may complain about not finding libgit2.26.dylib - so you need to make sure that you either fix up the binaries or have that in your library search path.
No comments, now it is building :-) will look at fixing binaries or search path

Rgds
Jan I.
Post by Dirk Hohndel
After that it should work.
/D
Loading...