Skip to content

Commit

Permalink
aws-crt-python: use submodule dependencies instead of package depende…
Browse files Browse the repository at this point in the history
…ncies

As stated here: awslabs/aws-crt-python#604 (comment)
it is not save to assume the work together.
  • Loading branch information
thomas-roos committed Oct 21, 2024
1 parent d920c6a commit d789fa0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
20 changes: 5 additions & 15 deletions recipes-sdk/aws-crt-python/aws-crt-python_0.22.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"

DEPENDS += "\
${PYTHON_PN}-setuptools-native \
aws-c-auth \
aws-c-cal \
aws-c-common \
aws-c-compression \
aws-c-event-stream \
aws-c-http \
aws-c-io \
aws-c-mqtt \
aws-c-s3 \
aws-c-sdkutils \
aws-checksums \
s2n \
"

BRANCH ?= "main"
# nooelint: oelint.file.patchsignedoff
SRC_URI = "\
git://github.com/awslabs/aws-crt-python.git;protocol=https;branch=${BRANCH} \
gitsm://github.com/awslabs/aws-crt-python.git;protocol=https;branch=${BRANCH} \
file://fix-shared-linking.patch \
file://run-ptest \
"
Expand Down Expand Up @@ -51,8 +39,10 @@ RDEPENDS:${PN}-ptest += "\
"

do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/* ${D}${PTEST_PATH}/tests/
cp -rf ${S}/test ${D}${PTEST_PATH}/
}

BBCLASSEXTEND = "native nativesdk"

# nooelint: oelint.vars.insaneskip:INSANE_SKIP
INSANE_SKIP:${PN}-dbg += "buildpaths"
10 changes: 4 additions & 6 deletions recipes-sdk/aws-crt-python/files/run-ptest
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

echo nameserver 8.8.4.4 >> /etc/resolv.conf

cd tests/

# known good tests
TESTS="\
test/test_appexit.py \
test/test_auth.py \
test/test_checksums.py \
test/test_common.py \
test/test_crypto.py \
Expand All @@ -34,8 +31,9 @@ do
done

### removed tests ####
# ./test/test_http_client.py
# ./test/test_mqtt5_canary.py
# test_auth.py
# test_http_client.py
# test_mqtt5_canary.py

# a expected exception is thrown causing ptest to fail
# ./test/test_websocket.py
# test_websocket.py

0 comments on commit d789fa0

Please sign in to comment.