]> xenbits.xensource.com Git - xen.git/commit
tools/tests: Fix newly introduced Makefile
authorAnthony PERARD <anthony.perard@vates.tech>
Mon, 14 Apr 2025 14:17:14 +0000 (16:17 +0200)
committerAnthony PERARD <anthony.perard@vates.tech>
Fri, 25 Apr 2025 09:44:03 +0000 (11:44 +0200)
commita5d0e9c901044055c1c412d0825b434f21ec273e
tree138aab855a0e030a17edd8e2402d092cb9765c1c
parentf6281291704aa356489f4bd927cc7348a920bd01
tools/tests: Fix newly introduced Makefile

Fix few issue with this new directory:
- clean generated files
- and ignore those generated files
- include the dependency files generated by `gcc`.
- rework prerequisites:
  "test-rangeset.o" also needs the generated files "list.h" and
  "rangeset.h". Technically, both only needs "harness.h" which needs
  the generated headers, but that's a bit simpler and the previous
  point will add the dependency on "harness.h" automatically.

This last point fix an issue where `make` might decide to build
"test-rangeset.o" before the other files are ready.

Fixes: 7bf777b42cad ("tootls/tests: introduce unit tests for rangesets")
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
tools/tests/rangeset/.gitignore [new file with mode: 0644]
tools/tests/rangeset/Makefile