build/test: changes for tighter testing needed

This commit is contained in:
Franco Fichtner 2018-04-29 03:55:40 +02:00
parent edbbd4fd1d
commit 2873c9803c
1 changed files with 8 additions and 3 deletions

View File

@ -41,8 +41,10 @@ setup_clone ${STAGEDIR} ${PLUGINSDIR}
setup_chroot ${STAGEDIR}
extract_packages ${STAGEDIR}
# XXX disable plugins, quagga and frr conflict, os-debug for tests
install_packages ${STAGEDIR} ${PRODUCT_CORE} os-debug # ${PRODUCT_PLUGIN}
install_packages ${STAGEDIR} ${PRODUCT_CORE} os-debug${PRODUCT_SUFFIX}
lock_packages ${STAGEDIR}
# XXX plugins have conflicts, cannot install all for following check
echo ">>> Running packages test suite..."
chroot ${STAGEDIR} /bin/sh -es <<EOF
@ -50,14 +52,17 @@ pkg check -da
pkg check -sa
EOF
# XXX make test also exists for plugins, but requires installation
echo ">>> Running ${PLUGINSDIR} test suite..."
chroot ${STAGEDIR} /bin/sh -es <<EOF
make -C${PLUGINSDIR} lint
make -C${PLUGINSDIR} style
EOF
echo ">>> Running ${COREDIR} test suite..."
# XXX make test requires installed components, version check needed
echo ">>> Running ${COREDIR} test suite..."
chroot ${STAGEDIR} /bin/sh -es <<EOF
make -C${COREDIR} lint
make -C${COREDIR} style