File: run_test.py

package info (click to toggle)
ipe-tools 1%3A7.2.29.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 940 kB
  • sloc: python: 2,840; cpp: 2,752; ansic: 1,052; sh: 224; makefile: 95; xml: 39
file content (16 lines) | stat: -rw-r--r-- 405 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from glob import glob
from os.path import exists
from subprocess import run


if not exists(outdir := "test_outputs"):
    run(f"mkdir {outdir}", shell=True)

if exists(f"tests/{outdir}"):
    run(f"rm -rf tests/{outdir}", shell=True)

for f in (files := glob('tests/*.py')):
    print(f"python {f}")
    run(["python", f"{f}"])
run(f"mv *.ipe {outdir}", shell=True)
run(f"mv {outdir} tests", shell=True)