Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
25f8bb6eaThis file is pinned to the selected release. Download the original to open it in your design tool.
#!/usr/bin/env python3
import sys
failed = False
tbman_lines = []
for line in open(sys.argv[1]).readlines():
if line.startswith("TBMAN:"):
tbman_lines.append(line.strip()[7:])
failed = failed or tbman_lines[0] != "Hello, world!"
failed = failed or not tbman_lines[1].startswith("CPU requested termination")
failed = failed or tbman_lines[1].split(" ")[-1] != "123"
if not failed:
print("Test PASSED.")