build: slightly improve verify and test
This commit is contained in:
parent
7d14ac6349
commit
93bdfdd14b
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2014-2016 Franco Fichtner <franco@opnsense.org>
|
||||
# Copyright (c) 2014-2017 Franco Fichtner <franco@opnsense.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
|
@ -47,6 +47,13 @@ install_packages ${STAGEDIR} pkg pear-PHP_CodeSniffer phpunit ${PRODUCT_PKGNAME}
|
|||
echo ">>> Running ${PLUGINSDIR} test suite..."
|
||||
chroot ${STAGEDIR} /bin/sh -es <<EOF
|
||||
make -C${PLUGINSDIR} lint
|
||||
make -C${PLUGINSDIR} style
|
||||
EOF
|
||||
|
||||
echo ">>> Running packages test suite..."
|
||||
chroot ${STAGEDIR} /bin/sh -es <<EOF
|
||||
pkg check -da
|
||||
pkg check -sa
|
||||
EOF
|
||||
|
||||
echo ">>> Running ${COREDIR} test suite..."
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2016 Franco Fichtner <franco@opnsense.org>
|
||||
# Copyright (c) 2016-2017 Franco Fichtner <franco@opnsense.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
|
@ -41,9 +41,11 @@ install_packages ${STAGEDIR} ${PRODUCT_PKGNAME}
|
|||
mkdir -p ${STAGEDIR}${SETSDIR}
|
||||
cp ${SETSDIR}/* ${STAGEDIR}${SETSDIR}
|
||||
|
||||
for FILE in $(find ${SETSDIR} -name "*.sig"); do
|
||||
chroot ${STAGEDIR} /bin/sh -es <<EOF
|
||||
echo ">>> Verifying ${FILE%%.sig}:"
|
||||
opnsense-verify ${FILE%%.sig}
|
||||
EOF
|
||||
chroot ${STAGEDIR} /bin/sh -es <<EOF
|
||||
for DIR in ${PACKAGESDIR}/Latest ${SETSDIR}; do
|
||||
for FILE in \$(find \${DIR} -name "*.sig"); do
|
||||
echo ">>> Verifying \${FILE%%.sig}:"
|
||||
opnsense-verify \${FILE%%.sig}
|
||||
done
|
||||
done
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue