1#!/bin/bash 2rm -f /tmp/pico-mem-report-* 3 4ASAN_OPTIONS="detect_leaks=0" ./build/test/units || exit 1 5ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_fragments.elf || exit 1 6ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_pico_stack.elf || exit 1 7ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_802154.elf || exit 1 8ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_6lowpan.elf || exit 1 9ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_ethernet.elf || exit 1 10ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_pico_protocol.elf || exit 1 11ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_pico_frame.elf || exit 1 12ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_seq.elf || exit 1 13ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_tcp.elf || exit 1 14ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_dev_loop.elf || exit 1 15ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_dns_client.elf || exit 1 16ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_dns_common.elf || exit 1 17ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_sntp_client.elf || exit 1 18ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_ipv6_nd.elf || exit 1 19ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_mdns.elf || exit 1 20ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_dns_sd.elf || exit 1 21ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_ipfilter.elf || exit 1 22ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_queue.elf || exit 1 23ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_tftp.elf || exit 1 24ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_aodv.elf || exit 1 25ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_dev_ppp.elf || exit 1 26ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_mld.elf || exit 1 27ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_igmp.elf || exit 1 28ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_hotplug_detection.elf || exit 1 29ASAN_OPTIONS="detect_leaks=0" ./build/test/modunit_strings.elf || exit 1 30 31MAXMEM=`cat /tmp/pico-mem-report-* | sort -r -n |head -1` 32echo 33echo 34echo 35echo "MAX memory used: $MAXMEM" 36rm -f /tmp/pico-mem-report-* 37 38echo "SUCCESS!" && exit 0 39