Regression tests
This commit is contained in:
parent
0786016436
commit
ac8256a96b
1 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ ok = ":white_check_mark:"
|
||||||
warning = ":warning:"
|
warning = ":warning:"
|
||||||
error = ":negative_squared_cross_mark:"
|
error = ":negative_squared_cross_mark:"
|
||||||
stress_duration = 10
|
stress_duration = 10
|
||||||
repeats = 10
|
repeats = 1
|
||||||
|
|
||||||
|
|
||||||
def print(*args, **kwargs):
|
def print(*args, **kwargs):
|
||||||
|
@ -176,7 +176,7 @@ def test(tint2path, config):
|
||||||
if exitcode != 0:
|
if exitcode != 0:
|
||||||
print("tint2 crashed with exit code {0}!".format(exitcode))
|
print("tint2 crashed with exit code {0}!".format(exitcode))
|
||||||
print("Output:")
|
print("Output:")
|
||||||
print("```" + out + "```")
|
print("```\n" + out.strip() + "\n```")
|
||||||
return
|
return
|
||||||
min_fps, med_fps = compute_min_med_fps(out)
|
min_fps, med_fps = compute_min_med_fps(out)
|
||||||
leaks = find_asan_leaks(out)
|
leaks = find_asan_leaks(out)
|
||||||
|
@ -193,7 +193,7 @@ def test(tint2path, config):
|
||||||
print("FPS:", "min:", min_fps, "median:", med_fps, fps_status)
|
print("FPS:", "min:", min_fps, "median:", med_fps, fps_status)
|
||||||
if mem_status != ok or leak_status != ok or fps_status != ok:
|
if mem_status != ok or leak_status != ok or fps_status != ok:
|
||||||
print("Output:")
|
print("Output:")
|
||||||
print("```" + out + "```")
|
print("```\n" + out.strip() + "\n```")
|
||||||
stop_xvfb()
|
stop_xvfb()
|
||||||
|
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ def compile_and_report(src_dir):
|
||||||
if c.returncode != 0:
|
if c.returncode != 0:
|
||||||
print("Status: Failed!", error)
|
print("Status: Failed!", error)
|
||||||
print("Output:")
|
print("Output:")
|
||||||
print("```" + out + "```")
|
print("```\n" + out.strip() + "\n```")
|
||||||
raise RuntimeError("compilation failed")
|
raise RuntimeError("compilation failed")
|
||||||
if "warning:" in out:
|
if "warning:" in out:
|
||||||
print("Status: Succeeded with warnings!", warning)
|
print("Status: Succeeded with warnings!", warning)
|
||||||
|
|
Loading…
Reference in a new issue