Add unit test for dynamically loading modules on posix.

This commit is contained in:
Mara Bos
2018-11-24 01:58:09 +01:00
committed by Lorenz Meier
parent d13836eb1e
commit 3c660acca8
6 changed files with 54 additions and 1 deletions
+6
View File
@@ -8,6 +8,7 @@ program="$3"
model="$4"
src_path="$5"
build_path="$6"
# The rest of the arguments are files to copy into the working dir.
echo SITL ARGS
@@ -58,6 +59,11 @@ pkill -x px4_$model || true
cp $src_path/Tools/posix_lldbinit $rootfs/.lldbinit
cp $src_path/Tools/posix.gdbinit $rootfs/.gdbinit
shift 6
for file in "$@"; do
cp "$file" $rootfs/
done
SIM_PID=0
if [ "$program" == "jmavsim" ] && [ ! -n "$no_sim" ]