Skip to content

Commit 800c394

Browse files
committed
tests: Move iio_adi_xflow_check to examples
This tool is very ADI-specific and not really useful as a generic IIO utility. Therefore, it makes more sense to have it as part of the examples. Signed-off-by: Paul Cercueil <[email protected]>
1 parent fe21df7 commit 800c394

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

examples/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ else()
8989
message(STATUS "Curses Development Kit (CDK) missing or too old, skipping iio-monitor")
9090
endif ()
9191

92+
if (PTHREAD_LIBRARIES OR ANDROID)
93+
project(iio_adi_xflow_check C)
94+
add_executable(iio_adi_xflow_check iio_adi_xflow_check.c)
95+
target_link_libraries(iio_adi_xflow_check iio iio_tests_helper ${PTHREAD_LIBRARIES})
96+
set(IIO_TESTS_TARGETS ${IIO_TESTS_TARGETS} iio_adi_xflow_check)
97+
endif()
98+
9299
set_target_properties(
93100
${IIO_TESTS_TARGETS} PROPERTIES C_STANDARD 99 C_STANDARD_REQUIRED ON
94101
C_EXTENSIONS OFF

tests/iio_adi_xflow_check.c renamed to examples/iio_adi_xflow_check.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <string.h>
1616
#include <unistd.h>
1717

18-
#include "iio_common.h"
18+
#include "../tests/iio_common.h"
1919

2020

2121
#define MY_NAME "iio_adi_xflow_check"

tests/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,10 @@ target_link_libraries(iio_writedev iio iio_tests_helper)
5757
set(IIO_TESTS_TARGETS iio_genxml iio_info iio_attr iio_readdev iio_reg iio_writedev)
5858

5959
if(PTHREAD_LIBRARIES OR ANDROID)
60-
project(iio_adi_xflow_check C)
6160
project(iio_stresstest C)
62-
add_executable(iio_adi_xflow_check iio_adi_xflow_check.c)
6361
add_executable(iio_stresstest iio_stresstest.c)
64-
target_link_libraries(iio_adi_xflow_check iio iio_tests_helper ${PTHREAD_LIBRARIES})
6562
target_link_libraries(iio_stresstest iio iio_tests_helper ${PTHREAD_LIBRARIES})
66-
set(IIO_TESTS_TARGETS ${IIO_TESTS_TARGETS} iio_adi_xflow_check iio_stresstest)
63+
set(IIO_TESTS_TARGETS ${IIO_TESTS_TARGETS} iio_stresstest)
6764

6865
target_link_libraries(iio_readdev ${PTHREAD_LIBRARIES})
6966
target_link_libraries(iio_writedev ${PTHREAD_LIBRARIES})

0 commit comments

Comments
 (0)