@@ -0,0 +1,1014 @@
+#!/usr/bin/env python3%0A%0A# Copyright (C) 2019 Inria%0A#%0A# This file is subject to the terms and conditions of the GNU Lesser%0A# General Public License v2.1. See the file LICENSE in the top level%0A# directory for more details.%0A%0Aimport sys%0Afrom testrunner import run%0A%0A%0Adef testfunc(child):%0A    child.expect(r'MAX_NUMBER_BLOCKS: (%5Cd+)%5Cr%5Cn')%0A    max_number_blocks = int(child.match.group(1))%0A    child.expect(r'NUMBER_OF_TESTS: (%5Cd+)%5Cr%5Cn')%0A    number_of_tests = int(child.match.group(1))%0A    for test in range(number_of_tests):%0A        child.expect_exact(%22TEST #%7B%7D:%22.format(test + 1))%0A        for i in range(max_number_blocks):%0A            child.expect(r'%5C(%7B%7D, @@@@@@@%5C) Allocated %5Cd+ Bytes at 0x%5Ba-z0-9%5D+,'%0A                         r' total %5B0-9%5D+%5Cr%5Cn'.format(i))%0A        for i in range(max_number_blocks):%0A            child.expect(r'Free %5C(%7B%7D%5C) %5Cd+ Bytes at 0x%5Ba-z0-9%5D+,'%0A                         ' total %5B0-9%5D+%5Cr%5Cn'.format(i))%0A    child.expect_exact(%22Finishing%22)%0A%0A%0Aif __name__ == %22__main__%22:%0A    sys.exit(run(testfunc))%0A

add automatic test script