Opened 10 years ago
Closed 10 years ago
#2750 closed defect (invalid)
tests don't get cleaned/regenerated
Reported by: | fabio | Owned by: | |
---|---|---|---|
Priority: | If Time Permits | Milestone: | |
Component: | Build & Packages | Keywords: | |
Cc: | Patch: |
Description (last modified by )
I moved the 0ad directory (from /home/fabio/0ad to /home/fabio/0ad/trunk) and noticed tests building errors, due to include still referring to paths to the previous 0ad directory. Sample error:
../../../source/simulation2/components/tests/test_Position.cpp:16:79: fatal error: /home/fabio/0ad/source/simulation2/components/tests/test_Position.h: File o directory non esistente #include "/home/fabio/0ad/source/simulation2/components/tests/test_Position.h"
I also cleaned workspaces, but the tests files didn't remove, and didn't also get regenerated while rebuilding.
I fixed it manually deleting the tests with something like:
rm source/*/*/tests/*.h
Change History (2)
comment:1 by , 10 years ago
Description: | modified (diff) |
---|
comment:2 by , 10 years ago
Milestone: | Backlog |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
You should have run
rm source/*/*/tests/*.cpp
the headers are the actual files, and the correct procedure would have beenThe tests *.cpp files are generated during make, so if the original files didn't change they still remain there. It might be nice to use relative include parts to solve such issues, but moving build folders without cleaning is very likely to result in some issues.