zephyr/tests/benchmarks/object_footprint/run.sh
Anas Nashif 9b12769479 tests: use cmake to build object benchmarks
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2017-11-08 20:00:22 -05:00

15 lines
358 B
Bash
Executable File

#!/bin/sh
rm results.txt
rm -rf results
for conf in `ls -v *.conf`; do
echo $conf
app=$(basename $conf .conf)
build_dir=results/$(basename $conf .conf)
cmake -DBOARD=arduino_101 -DCONF_FILE=$conf -H. -B${build_dir}
cmake --build ${build_dir}
${ZEPHYR_BASE}/scripts/sanitycheck -z ${build_dir}/zephyr/${app}.elf >> results.txt
done