From 0207d8edac02e30fad740c1ce81038c72510def7 Mon Sep 17 00:00:00 2001 From: Thomas Roos Date: Mon, 18 Nov 2024 19:32:41 +0000 Subject: [PATCH] aws-iot-device-client: disable tests, as the new aws-c-io event loop interface changed. (cherry picked from commit b34a434680aad4053758005448218a19afb87987) --- .../aws-iot-device-client_1.9.5.bb | 6 +++++- .../files/001-disable-tests.patch | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 recipes-iot/aws-iot-device-client/files/001-disable-tests.patch diff --git a/recipes-iot/aws-iot-device-client/aws-iot-device-client_1.9.5.bb b/recipes-iot/aws-iot-device-client/aws-iot-device-client_1.9.5.bb index 55ce35983..7c4c35c6e 100644 --- a/recipes-iot/aws-iot-device-client/aws-iot-device-client_1.9.5.bb +++ b/recipes-iot/aws-iot-device-client/aws-iot-device-client_1.9.5.bb @@ -21,13 +21,17 @@ SRC_URI = "\ git://github.com/awslabs/aws-iot-device-client.git;protocol=https;branch=${BRANCH} \ file://run-ptest \ file://ptest_result.py \ + file://001-disable-tests.patch \ " SRCREV = "faf80330b96681f05a03e9409c0c0dcc67e4e915" S = "${WORKDIR}/git" -inherit cmake systemd ptest +inherit cmake systemd +# disable package tests +# this is disabled because of this change here, that is used in the tests: +# https://github.com/awslabs/aws-c-io/commit/b6bff6f557ecf8b92131471d5668e7b90a196fab do_compile_ptest() { cmake_runcmake_build --target test-aws-iot-device-client } diff --git a/recipes-iot/aws-iot-device-client/files/001-disable-tests.patch b/recipes-iot/aws-iot-device-client/files/001-disable-tests.patch new file mode 100644 index 000000000..921dc8fcc --- /dev/null +++ b/recipes-iot/aws-iot-device-client/files/001-disable-tests.patch @@ -0,0 +1,12 @@ +Upstream-Status: Submitted [author] + +Index: git/CMakeLists.txt +=================================================================== +--- git.orig/CMakeLists.txt ++++ git/CMakeLists.txt +@@ -265,4 +265,4 @@ if (BUILD_TEST_DEPS) + ${CMAKE_BINARY_DIR}/googletest-build) + endif () + +-add_subdirectory(test) ++# add_subdirectory(test)