From d5a795b329fd56c39d67fabb20816d22b4160a05 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 29 Apr 2018 14:01:40 +0000 Subject: [PATCH] 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. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 4257b4ee3..d6fc62b6e 100644 --- a/Makefile +++ b/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