diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-22 04:09:45 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-22 04:09:45 -0700 |
commit | 11891e2475a123ad911647e380d2c547db70de09 (patch) | |
tree | 73ebc7ec31fb707cdd75df18323f3d98337afe61 /testing | |
parent | b7393890eb8fd3505c2f71a37f4756f71f948890 (diff) | |
parent | 2ab2ebe5a5f47b53a026118f144adf932aad1f11 (diff) |
Merge pull request #84 from nurupo/master
Improved build system
Diffstat (limited to 'testing')
-rw-r--r-- | testing/CMakeLists.txt | 12 | ||||
-rw-r--r-- | testing/DHT_test.c | 2 |
2 files changed, 10 insertions, 4 deletions
diff --git a/testing/CMakeLists.txt b/testing/CMakeLists.txt index bb599b86..12efc2f4 100644 --- a/testing/CMakeLists.txt +++ b/testing/CMakeLists.txt | |||
@@ -1,7 +1,13 @@ | |||
1 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_cryptosendfiletest.cmake) | 1 | cmake_minimum_required(VERSION 2.6.0) |
2 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_sendfiletest.cmake) | 2 | |
3 | cmake_policy(SET CMP0011 NEW) | ||
4 | |||
5 | #include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_cryptosendfiletest.cmake) | ||
6 | #include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_sendfiletest.cmake) | ||
3 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_test.cmake) | 7 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/DHT_test.cmake) |
4 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testclient.cmake) | 8 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testclient.cmake) |
5 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testserver.cmake) | 9 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Lossless_UDP_testserver.cmake) |
6 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Messenger_test.cmake) | 10 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Messenger_test.cmake) |
7 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/nTox.cmake) \ No newline at end of file | 11 | if(NOT WIN32) |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/nTox.cmake) | ||
13 | endif() | ||
diff --git a/testing/DHT_test.c b/testing/DHT_test.c index 5f85e934..5895fa55 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* DHT test | 1 | /* DHT test |
2 | * A file with a main that runs our DHT for testing. | 2 | * A file with a main that runs our DHT for testing. |
3 | * | 3 | * |
4 | * Compile with: gcc -O2 -Wall -D VANILLA_NACL -o test ../core/Lossless_UDP.c ../core/network.c ../core/net_crypto.c ../core/Messenger.c ../nacl/build/${HOSTNAME%.*}/lib/amd64/* DHT_test.c | 4 | * Compile with: gcc -O2 -Wall -D VANILLA_NACL -o test ../core/Lossless_UDP.c ../core/network.c ../core/net_crypto.c ../core/Messenger.c ../nacl/build/${HOSTNAME%.*}/lib/amd64/ DHT_test.c |
5 | * | 5 | * |
6 | * Command line arguments are the ip, port and public key of a node. | 6 | * Command line arguments are the ip, port and public key of a node. |
7 | * EX: ./test 127.0.0.1 33445 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | 7 | * EX: ./test 127.0.0.1 33445 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |