Failed Ctest After Building from Source


#1

Since there are no binaries for Debian 8. I had to compile from source. I installed the necessary dependencies, including libevent.

Running ctest I get the following error

Test project /home/user/libcouchbase-2.5.2/build
      Start  1: BUILD-TESTS
 1/10 Test  #1: BUILD-TESTS ......................   Passed  221.66 sec
      Start  2: check-select-nonio-tests
 2/10 Test  #2: check-select-nonio-tests .........   Passed    0.06 sec
      Start  3: check-select-rdb-tests
 3/10 Test  #3: check-select-rdb-tests ...........   Passed    0.03 sec
      Start  4: check-select-vbucket-tests
 4/10 Test  #4: check-select-vbucket-tests .......   Passed    0.04 sec
      Start  5: check-select-mc-tests
 5/10 Test  #5: check-select-mc-tests ............   Passed    0.03 sec
      Start  6: check-select-htparse-tests
 6/10 Test  #6: check-select-htparse-tests .......   Passed    0.03 sec
      Start  7: check-select-unit-tests
 7/10 Test  #7: check-select-unit-tests ..........***Failed  300.03 sec
      Start  8: check-select-sock-tests
 8/10 Test  #8: check-select-sock-tests ..........   Passed    0.82 sec
      Start  9: check-libevent-unit-tests
 9/10 Test  #9: check-libevent-unit-tests ........***Failed  300.03 sec
      Start 10: check-libevent-sock-tests
10/10 Test #10: check-libevent-sock-tests ........   Passed    0.93 sec

80% tests passed, 2 tests failed out of 10

Total Test time (real) = 823.84 sec

The following tests FAILED:
	  7 - check-select-unit-tests (Failed)
	  9 - check-libevent-unit-tests (Failed)
Errors while running CTest

Not sure if this will effect usage since these are unit tests. But I want to know if anyone else has had these issues and what could be the cause.


#2

It sounds like something is hanging. I would be very interested to see the logs (they should be somewhere in the build directory) to determine why they are failing.

Do you have Java installed? The unit-tests depend on a mock server written in Java. perhaps in your case it’s not successfully running?


#3

No I do not have Java installed, didn’t realize it was needed. That is probably the issue. I’ll try and find the logs and see the exact error message.


#4

(of course you can always do make install and it should just work. I can’t see any reason that it won’t work for you, and debian jessie is the environment i use personally for development along with OS X… so you’re probably OK)


#5

Yeah, I did that with no issues. I didn’t have the software installed to properly run the unit test, that’s why I got the error.