vban-cmd-python/scripts.py

39 lines
733 B
Python
Raw Normal View History

2023-08-10 19:13:34 +01:00
import os
2022-11-07 20:26:06 +00:00
import subprocess
import sys
2022-11-07 20:26:06 +00:00
from pathlib import Path
def ex_gui():
scriptpath = Path.cwd() / 'examples' / 'gui' / '.'
subprocess.run([sys.executable, str(scriptpath)])
2022-11-07 20:26:06 +00:00
def ex_obs():
subprocess.run(['tox', 'r', '-e', 'obs'])
2022-11-07 20:26:06 +00:00
def ex_observer():
scriptpath = Path.cwd() / 'examples' / 'observer' / '.'
subprocess.run([sys.executable, str(scriptpath)])
2023-08-10 19:13:34 +01:00
def test_basic():
os.environ['KIND'] = 'basic'
subprocess.run(['tox'])
2023-08-10 19:13:34 +01:00
def test_banana():
os.environ['KIND'] = 'banana'
subprocess.run(['tox'])
2023-08-10 19:13:34 +01:00
def test_potato():
os.environ['KIND'] = 'potato'
subprocess.run(['tox'])
2023-08-10 19:13:34 +01:00
def test_all():
steps = [test_basic, test_banana, test_potato]
[step() for step in steps]