Add tool to copy all clones in test dependencies dir

This commit is contained in:
Charles-Edouard de la Vergne
2024-07-12 09:36:02 +02:00
committed by Alexandre Paillier
parent b7af62dc13
commit 34d1e8737e

12
tools/copy_clones.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
DEVICES=(nanos nanos2 nanox stax flex)
for dev in "${DEVICES[@]}"; do
elf_file="build/${dev}/bin/app.elf"
if [[ -f ${elf_file} ]]; then
cp "${elf_file}" "tests/ragger/.test_dependencies/clone/build/${dev}/bin/"
else
echo "Ignoring unknown file/dev: ${elf_file}"
fi
done