Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows running autest with a cmake target. It also provides a helper script to run it again for iterative development. I imagine CI will use the target while a developer would use the target to set it up for them and then use the script with filters to iterate on creating tests.
I tried to install trafficserver with DESTDIR and run autest that way but traffic_layout returns the wrong paths in this case so that will have to get sorted if we want that to work. Just throwing ats in /tmp seems just fine, and CI builds don't really need this feature.
This does build the test plugins out of source now, so no more .libs directories in the source tree.
The helper script ends up at ${CMAKE_BINARY_DIRECTORY}/tests/autest.sh. It has all of the options for resolving ats bin and everything but you can add additional options to filter output etc.
The status of autest builds with cmake is still quite poor, but at least this will get us all going to get those fixed.