Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bindea-cristian committed Apr 10, 2024
1 parent 5bccbe0 commit fe4cd2b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/kuiperbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
shell: bash
run: echo "commit_sha=$(git rev-parse --short ${{ github.sha }})" >> "$GITHUB_ENV"

- name: Setup upterm session
uses: lhotari/action-upterm@v1

- uses: actions/upload-artifact@v4
with:
name: scopy-linux-armhf-${{ env.commit_sha }}
Expand Down
32 changes: 23 additions & 9 deletions ci/kuiper/copy-deps.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

set -ex
export PS4='+(${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'

SRC_DIR=$(git rev-parse --show-toplevel)
source $SRC_DIR/ci/kuiper/kuiper_build_config.sh

Expand All @@ -12,23 +14,35 @@ if [ ! -f "${SRC_DIR}"/ci/kuiper/ldd-mod ]; then
ls /usr/arm-linux-gnueabihf/lib
ls /usr/arm-linux-gnueabihf/lib/ld-2.31.so
ls /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3
printenv
sed 's|.*RTLDLIST=.*|RTLDLIST="/usr/arm-linux-gnueabihf/lib/ld-2.31.so /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3"|' /usr/bin/ldd | tee "${SRC_DIR}"/ci/kuiper/ldd-mod
chmod +x "${SRC_DIR}"/ci/kuiper/ldd-mod


echo "-----------------"
cat "${SRC_DIR}"/ci/kuiper/ldd-mod
fi

export LD_LIBRARY_PATH="${APP_DIR}/usr/lib:${SYSROOT}/lib:${SYSROOT}/lib/arm-linux-gnueabihf:${SYSROOT}/usr/arm-linux-gnueabihf/lib:${SYSROOT}/usr/local/qt5.15/lib:${SYSROOT}/usr/local/lib:${SRC_DIR}/build"
LIBS_ARRAY=()
run_ldd(){

if [ ! -z "$(${SRC_DIR}/ci/kuiper/ldd-mod $1 | grep "not found")" ]; then
echo "--- LIB NOT FOUND"
${SRC_DIR}/ci/kuiper/ldd-mod $1
exit 1
fi
if [ ! -z "$(${SRC_DIR}/ci/kuiper/ldd-mod $1 | grep "not a dynamic executable")" ]; then
echo "--- LDD ERROR"
exit 1
fi
# if [ ! -z "$(${SRC_DIR}/ci/kuiper/ldd-mod $1 | grep "not found")" ]; then
# echo "--- LIB NOT FOUND"
# ${SRC_DIR}/ci/kuiper/ldd-mod $1
# exit 1
# fi
# if [ ! -z "$(${SRC_DIR}/ci/kuiper/ldd-mod $1 | grep "dynamic executable")" ]; then
# echo "--- LDD ERROR"
# exit 1
# fi

echo "LDD test:"
ldd "$1"

echo "LDD-mod test:"
"${SRC_DIR}"/ci/kuiper/ldd-mod "$1"


for library in $("${SRC_DIR}"/ci/kuiper/ldd-mod "$1" | cut -d '>' -f 2 | awk '{print $1}')
do
Expand Down

0 comments on commit fe4cd2b

Please sign in to comment.