Add missing "ninja rostests" and a long comment explaining all the reasons behind that.

This commit is contained in:
Colin Finck 2020-01-05 17:05:17 +01:00
parent 1d79655867
commit c8dca1bd74
No known key found for this signature in database
GPG Key ID: 1BA74E70456BA1A9

View File

@ -11,5 +11,11 @@ rm -rf $ROSTESTS_INSTALL
mkdir $ROSTESTS_INSTALL
cd $ROS_OUTPUT
ninja rostests
ninja rostests_install
# The directory at ROSTESTS_INSTALL shall only contain the test executables to run, but not rosautotest.exe itself.
# This is why "ninja rostests_install" only builds and copies test executables, and we need to run "ninja rostests" to also get rosautotest built.
# However, we then need to copy rosautotest.exe somewhere for the "run_rostests" script (which may be run on a different machine). ROSTESTS_INSTALL is the only option here.
# "run_rostests" will then move rosautotest.exe out of that directory to its final location.
cp modules/rostests/rosautotest/rosautotest.exe $ROSTESTS_INSTALL