diff options
Diffstat (limited to 'meta-networking/recipes-protocols/freediameter/files/install_test.patch')
-rw-r--r-- | meta-networking/recipes-protocols/freediameter/files/install_test.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/freediameter/files/install_test.patch b/meta-networking/recipes-protocols/freediameter/files/install_test.patch new file mode 100644 index 0000000000..151037d69b --- /dev/null +++ b/meta-networking/recipes-protocols/freediameter/files/install_test.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | CMakeLists: add an option to install tests | ||
2 | |||
3 | Upstream-Status: Inappropriate [OE ptest specific] | ||
4 | |||
5 | Original author: Yao Zhao <yao.zhao@windriver.com> | ||
6 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
7 | |||
8 | diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt | ||
9 | index da8da1b..de04059 100644 | ||
10 | --- a/tests/CMakeLists.txt | ||
11 | +++ b/tests/CMakeLists.txt | ||
12 | @@ -113,4 +113,9 @@ ENDFOREACH( TEST ) | ||
13 | #### | ||
14 | ## INSTALL section ## | ||
15 | |||
16 | -# we do not install the tests | ||
17 | +# install the tests | ||
18 | +SET(INSTALL_TEST_SUFFIX /opt/${FD_PROJECT_NAME}-tests CACHE PATH "Directory where the test binary is installed.") | ||
19 | + | ||
20 | +INSTALL(TARGETS ${TEST_LIST} | ||
21 | + RUNTIME DESTINATION ${INSTALL_TEST_SUFFIX} | ||
22 | + COMPONENT freeDiameter-common) | ||