Skip to content

Commit

Permalink
chore: remove DHT_test.c since it's unused
Browse files Browse the repository at this point in the history
  • Loading branch information
sudden6 committed Feb 22, 2022
1 parent 6be655c commit e42441e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 273 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,6 @@ endif()

option(BUILD_MISC_TESTS "Build additional tests" OFF)
if (BUILD_MISC_TESTS)
add_executable(DHT_test ${CPUFEATURES}
testing/DHT_test.c)
target_link_modules(DHT_test toxcore misc_tools)

add_executable(Messenger_test ${CPUFEATURES}
testing/Messenger_test.c)
target_link_modules(Messenger_test toxcore misc_tools)
Expand Down
13 changes: 0 additions & 13 deletions testing/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,6 @@ cc_library(
],
)

cc_binary(
name = "DHT_test",
testonly = 1,
srcs = ["DHT_test.c"],
deps = [
":misc_tools",
"//c-toxcore/toxcore:DHT",
"//c-toxcore/toxcore:Messenger",
"//c-toxcore/toxcore:friend_requests",
"//c-toxcore/toxcore:mono_time",
],
)

cc_binary(
name = "Messenger_test",
testonly = 1,
Expand Down
239 changes: 0 additions & 239 deletions testing/DHT_test.c

This file was deleted.

18 changes: 1 addition & 17 deletions testing/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,7 @@ libmisc_tools_la_LIBADD = $(LIBSODIUM_LDFLAGS)

if BUILD_TESTING

noinst_PROGRAMS += DHT_test \
Messenger_test

DHT_test_SOURCES = ../testing/DHT_test.c

DHT_test_CFLAGS = $(LIBSODIUM_CFLAGS) \
$(NACL_CFLAGS)

DHT_test_LDADD = $(LIBSODIUM_LDFLAGS) \
$(NACL_LDFLAGS) \
libmisc_tools.la \
libtoxcore.la \
$(LIBSODIUM_LIBS) \
$(NACL_OBJECTS) \
$(NACL_LIBS) \
$(WINSOCK2_LIBS)

noinst_PROGRAMS += Messenger_test

Messenger_test_SOURCES = \
../testing/Messenger_test.c
Expand Down

0 comments on commit e42441e

Please sign in to comment.