mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
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:
parent
6c724e4933
commit
d5a795b329
4
Makefile
4
Makefile
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user