Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
a5137e8a
Commit
a5137e8a
authored
7 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
tests: fix build with autotools
parent
c129a244
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile.am
+5
-1
5 additions, 1 deletion
Makefile.am
configure.ac
+2
-2
2 additions, 2 deletions
configure.ac
tests/Makefile.am
+3
-3
3 additions, 3 deletions
tests/Makefile.am
tests/infohashtester.cpp
+1
-1
1 addition, 1 deletion
tests/infohashtester.cpp
with
11 additions
and
7 deletions
Makefile.am
+
5
−
1
View file @
a5137e8a
...
...
@@ -12,7 +12,11 @@ if USE_CYTHON
SUBDIRS
+=
python
endif
SUBDIRS
+=
doc tests
if
ENABLE_TESTS
SUBDIRS
+=
tests
endif
SUBDIRS
+=
doc
ACLOCAL_AMFLAGS
=
-I
m4
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
2
−
2
View file @
a5137e8a
...
...
@@ -183,8 +183,8 @@ AM_COND_IF([PROXY_CLIENT_OR_SERVER], [
], [])
AC_ARG_ENABLE([tests], AS_HELP_STRING([--enable-tests], [Enable tests]), build_tests=yes, build_tests=no)
AM_CONDITIONAL(
OPENDHT
_TESTS, test x$build_tests == xyes)
AM_COND_IF([
OPENDHT
_TESTS], [
AM_CONDITIONAL(
ENABLE
_TESTS, test x$build_tests == xyes)
AM_COND_IF([
ENABLE
_TESTS], [
PKG_CHECK_MODULES([CppUnit], [cppunit >= 1.12])
])
...
...
This diff is collapsed.
Click to expand it.
tests/Makefile.am
+
3
−
3
View file @
a5137e8a
if
OPENDHT
_TESTS
if
ENABLE
_TESTS
bin_PROGRAMS
=
opendht_unit_tests
AM_CPPFLAGS
=
-I
../include
nobase_include_HEADERS
=
infohashtester.h
opendht_unit_tests_SOURCES
=
tests_runner.cpp infohashtester.cpp
opendht_unit_tests_HEADERS
=
infohashtester.h
opendht_unit_tests_LDFLAGS
=
-lopendht
-lcppunit
-L
@top_builddir@/src/.libs @Argon2_LDFLAGS@ @GnuTLS_LIBS@
opendht_unit_tests_LDFLAGS
=
-lopendht
-lcppunit
-L
@top_builddir@/src/.libs @GnuTLS_LIBS@
endif
This diff is collapsed.
Click to expand it.
tests/infohashtester.cpp
+
1
−
1
View file @
a5137e8a
...
...
@@ -25,7 +25,7 @@
#include
<string>
// opendht
#include
"infohash.h"
#include
"
opendht/
infohash.h"
namespace
test
{
CPPUNIT_TEST_SUITE_REGISTRATION
(
InfoHashTester
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment