-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ftest coverage functionality is broken #4418
Comments
The cause could be in the following part:
The Maybe activating UNIT_TEST the logic that check geo-query capabilities in the code gets disabled and that's is causing the above problem (just a theory, needs to be checked). |
I have tried to disable the UNIT_TEST declaration this way: iff --git a/makefile b/makefile
index a279b0adf..c13bfe87b 100644
--- a/makefile
+++ b/makefile
@@ -74,7 +74,7 @@ prepare_debug: compile_info
prepare_coverage: compile_info
mkdir -p BUILD_COVERAGE || true
- cd BUILD_COVERAGE && cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_ARCH=$(BUILD_ARCH) -DUNIT_TEST=True -DCOVERAGE=True -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR)
+ cd BUILD_COVERAGE && cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_ARCH=$(BUILD_ARCH) -DCOVERAGE=True -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR)
prepare_unit_test: compile_info
@echo '------------------------------- prepare_unit_test starts ---------------------------------' But I get this error:
|
This needs to be debuged and tested. Maybe a first step in the solution is not to use the same Re-writting the coverage related targets from scratch in the |
Fixed by PR #4607 |
Code coverage reporting feature implemented in makefile could be broken (and I don't know since when).
It seems that the coverage target for unit tests works (see this) but problems happens with the functional test pass:
If we run testHarness just after that (i.e. without rebuilding the contextBroker binary) we can see the same tests are failing:
Looking into CB traces in /tmp/contextBroker.log we see:
This is very weird... if we rebuild contextBroker binary again doing
make di INSTALL_DIR=~
and run./testHarness.sh cases/0000_deprecated_checkings/legacy_geoquery_circle_json.test
again it works.The text was updated successfully, but these errors were encountered: