Commit 9b127694 authored by Anas Nashif's avatar Anas Nashif Committed by Anas Nashif
Browse files

tests: use cmake to build object benchmarks

parent f9a70a86
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -3,9 +3,12 @@ rm results.txt
rm -rf results
for conf in `ls -v *.conf`; do
    echo $conf
	outdir=results/$(basename $conf .conf)
    app=$(basename $conf .conf)
	make BOARD=arduino_101 CONF_FILE=$conf O=${outdir}
	${ZEPHYR_BASE}/scripts/sanitycheck -z ${outdir}/${app}.elf >> results.txt
    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