forked from rigtorp/nanomq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rilakkuma
committed
Sep 13, 2014
1 parent
18bd187
commit 8d6f0d5
Showing
4 changed files
with
29 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
# Locate GTest | ||
find_package(GTest REQUIRED) | ||
set(LOCAL_INC_DIR "include") | ||
include_directories(${GTEST_INCLUDE_DIRS} ${LOCAL_INC_DIR}) | ||
|
||
#set(SOURCES tests.cpp ${LOCAL_INC_DIR}/nmq.hpp) | ||
|
||
# Link runTests with what we want to test and the GTest and pthread library | ||
add_executable(runTests tests.cpp) | ||
add_executable(local_lat local_lat.cpp) | ||
add_executable(remote_lat remote_lat.cpp) | ||
add_executable(local_thr local_thr.cpp) | ||
add_executable(remote_thr remote_thr.cpp) | ||
target_link_libraries(runTests ${GTEST_LIBRARIES} pthread) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#rm TEST | ||
|
||
./local_lat LAT $1 $2 & | ||
./remote_lat LAT $1 $2 | ||
|
||
killall local_lat | ||
rm LAT | ||
|
||
#./local_thr THR $1 $2 & | ||
#./remote_thr THR $1 $2 | ||
#killall local_thr | ||
#rm THR | ||
|