Re: [Proftpd-user] How to execute unit and regression tests
Gunjan Aggarwal <[email protected]>
| Newsgroups | gmane.network.proftpd.user |
|---|---|
| Message-ID | <[email protected]> |
Hi TJ, Thanks for the reply and the link to Testing.html. Today I installed libcheck, following the log: ``` :/check-0.12.0/build# make install [ 7%] Built target compat [ 30%] Built target check [ 66%] Built target check_check [ 80%] Built target check_check_export [ 85%] Built target check_nofork [ 90%] Built target check_nofork_teardown [ 95%] Built target check_set_max_msg_size [100%] Built target ex_output Install the project... -- Install configuration: "Debug" -- Installing: /usr/local/include/check_stdint.h -- Installing: /usr/local/lib/libcompat.a -- Installing: /usr/local/include/libcompat.h -- Installing: /usr/local/lib/libcheck.a -- Installing: /usr/local/include/check.h -- Installing: /usr/local/cmake/check.cmake -- Installing: /usr/local/cmake/check-debug.cmake ``` After installing libcheck, I tried to configure ProFTPD as following: ``` ./configure --enable-tests --with-includes=/usr/local/include --with-libraries=/usr/local/lib ``` But I am still getting error that libcheck library is missing: ``` checking check.h usability... yes checking check.h presence... yes checking for check.h... yes checking for tcase_create in -lcheck... no configure: error: libcheck support, required for tests, not present -- aborting ``` Please suggest what I am missing here. Thanks, Gunjan On 1/28/2018 12:47 PM, TJ Saunders wrote: >> I just installed ProFTPD version "1.3.7rc1" and trying to execute tests. >> It looks like that executing "make check" in the top level directory is >> not building and executing tests. > Are you using the instructions from here? > > http://www.proftpd.org/docs/howto/Testing.html > > >> gcc -g2 -O2 -Wall -fno-omit-frame-pointer -DHAVE_CONFIG_H -DLINUX -I.. >> -I../include -I../include -c -o api/pool.o api/pool.c >> In file included from api/pool.c:27:0: >> api/tests.h:36:3: error: #error "Missing Check installation; necessary >> for ProFTPD testsuite" >> # error "Missing Check installation; necessary for ProFTPD testsuite" >> ^ > This error indicates that you are missing the libcheck library; that is the C library used for the unit tests. > > Cheers, > TJ > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > ProFTPD Users List <[email protected]> > Unsubscribe problems? > http://www.proftpd.org/list-unsub.html ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ ProFTPD Users List <[email protected]> Unsubscribe problems? http://www.proftpd.org/list-unsub.html