mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
+ Unit testing requires cppunit. + add options for CMake and Autotools to build opendht_unit_tests. + add sample tests for InfoHash + modify Dockerfiles and Travis build to run `make test` + Change lowbit signature to return an int instead of an unsigned.
10 lines
405 B
Plaintext
10 lines
405 B
Plaintext
FROM aberaud/opendht-deps
|
|
MAINTAINER Adrien Béraud <adrien.beraud@savoirfairelinux.com>
|
|
|
|
RUN apt-get install -y libcppunit-dev # temp while aberaud/opendht-deps doesn't have this
|
|
|
|
COPY . /root/opendht
|
|
RUN cd /root/opendht && mkdir build && cd build \
|
|
&& cmake -DCMAKE_INSTALL_PREFIX=/usr -DOPENDHT_PYTHON=On -DOPENDHT_LTO=On -DOPENDHT_TESTS=ON .. \
|
|
&& make -j8 && ./opendht_unit_tests && make install
|