Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
  • Loading branch information
priv-kweihmann committed Nov 12, 2024
1 parent d0bf51c commit d9fc3d7
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions test/buildntest
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,12 @@ _pwd=$(pwd)

trap "sed -i '$ d' ${_pwd}/conf/local.conf" EXIT

mods=$(${_thispath}/get_matching_mods $@)

echo "Check the following modules: ${mods}"

echo "SCA_AVAILABLE_MODULES = \"${mods}\"" >> ${_pwd}/conf/local.conf

_targets=$(${_thispath}/get_buildmodules $@)
if [ ! -z "${_targets}" ]; then
echo "Building the following recipes: ${_targets}"
if [ -z "${BUILDNTEST_PRESERVECACHE}" ]; then
bitbake ${_targets} -c cleansstate || exit 1
# Remove all previously exported files
for m in ${mods}; do
rm -rf ${_pwd}/tmp/deploy/images/*/sca/${m}/*
done
fi
bitbake ${_targets} || exit 1
if [ -z "${BUILDNTEST_NOSDK}" ]; then
bitbake nativesdk-sca-tools || exit 1
fi
fi

# test scabot implementation
if [ -z "${BUILDNTEST_NOSCABOT}" ]; then
bitbake python3-scabot-native
bitbake python3-scabot-native -caddto_recipe_sysroot
bitbake python3-scabot-native -caddto_recipe_sysroot || find tmp/work/x86_64-linux/python3-scabot-native/1.6.0/
oe-run-native python3-scabot-native scabot --help || exit 1
fi

if [ -z "${BUILDNTEST_NOTEST}" ]; then
${_thispath}/check_results ${_pwd}/tmp/deploy/images/*/sca ${mods} || exit 1
fi

0 comments on commit d9fc3d7

Please sign in to comment.