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

timeout = 5

binaries = [
7 8
    "binary.ada/binaries/demo", 
    "binary.c/binaries/demo"]
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36

expected = [
    ["\[passive_function\] startup done", "\[cyclic function\] startup done"],
    ["\[passive_function\] startup done", "\[cyclic function\] startup done"],
    "cycle: input i=0, j=0",
    "test1 = 0",
    "   result of computation: 0",
    "cycle: input i=1, j=1",
    "test1 = 2",
    "   result of computation: 2",
    "cycle: input i=2, j=2",
    "test1 = 4",
    "   result of computation: 4",
    "cycle: input i=3, j=3",
    "test1 = 6",
    "   result of computation: 6",
    "cycle: input i=4, j=4",
    "test1 = 8",
    "   result of computation: 8",
    "cycle: input i=5, j=5",
    "test1 = 10",
    "   result of computation: 10"
]

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