regression.py 493 Bytes
Newer Older
1 2 3 4 5 6
#!/usr/bin/env python2
import sys

timeout = 5

binaries = [
7 8
    "taste-simulate-leon3 binary.c/binaries/leon_partition",
    "taste-simulate-leon3 ./binary.ada/binaries/leon_partition.exe"
9 10 11 12 13 14 15 16 17 18 19 20 21 22
]

expected = [
    '\[Startup\] Expected output: "Hello, world..." every 2 seconds',
    'Hello, world...',
    'Hello, world...',
    'Hello, world...',
    'Hello, world...'
]

sys.path.append("..")
import commonRegression
result = commonRegression.test(binaries, expected, timeout)
sys.exit(result)