make: only run test on matching version number

The tests need the exact installed version to run the correct
tests so we need to enforce it even if it mostly works otherwise.

The procedure is mostly used for the nightly builds anyway, and
that shall run directly after the build.
This commit is contained in:
Franco Fichtner 2018-04-29 14:01:40 +00:00
parent 6c724e4933
commit d5a795b329

View File

@ -342,6 +342,10 @@ dhparam:
.endfor
test: want-phpunit6-php${CORE_PHP}
@if [ "$$(${PKG} query %n-%v ${CORE_NAME})" != "${CORE_NAME}-${CORE_VERSION}" ]; then \
echo "Installed version does not match, expected ${CORE_NAME}-${CORE_VERSION}"; \
exit 1; \
fi
@cd ${.CURDIR}/src/opnsense/mvc/tests && \
phpunit --configuration PHPunit.xml