mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-01-09 10:55:39 +00:00
WORKFLOW: added a first implementation of library checker in the automation tests
This commit is contained in:
parent
5862232027
commit
f273bc92cc
7
.github/workflows/build_release.yml
vendored
7
.github/workflows/build_release.yml
vendored
|
@ -344,9 +344,12 @@ jobs:
|
||||||
|
|
||||||
# Run Post Build Checks
|
# Run Post Build Checks
|
||||||
- name: Run Post Build Checks
|
- name: Run Post Build Checks
|
||||||
run: |
|
run: /bin/bash ./automation_tools/post_build_check.sh
|
||||||
/bin/bash ./automation_tools/post_build_check.sh
|
|
||||||
|
|
||||||
|
# Search for Missing Libraries
|
||||||
|
- name: Search for Missing Libraries
|
||||||
|
run: /bin/bash ./automation_tools/search_missing_libs.sh
|
||||||
|
|
||||||
# Uninstall RetroDECK Flatpak - Not needed on a thorwaway ubuntu-latest
|
# Uninstall RetroDECK Flatpak - Not needed on a thorwaway ubuntu-latest
|
||||||
# - name: Uninstall RetroDECK Flatpak
|
# - name: Uninstall RetroDECK Flatpak
|
||||||
# run: |
|
# run: |
|
||||||
|
|
14
automation_tools/search_missing_libs.sh
Executable file
14
automation_tools/search_missing_libs.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Search for missing libraries
|
||||||
|
missing_libs=$(flatpak run --command=sh net.retrodeck.retrodeck -c \
|
||||||
|
"find \${FLATPAK_DEST}/bin -type f -exec ldd {} + 2>/dev/null | grep 'not found' | awk '{print \$1}' | sort | uniq")
|
||||||
|
|
||||||
|
# If there is any missing library it will be printed and the step will fail
|
||||||
|
if [ -n "$missing_libs" ]; then
|
||||||
|
echo "The following libraries are missing:"
|
||||||
|
echo "$missing_libs"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "TEST OK: No missing libraries are found"
|
||||||
|
fi
|
Loading…
Reference in a new issue