vban-cmd-python/scripts.py
Onyx and Iris c9c365ac54 rename test poe scripts
add passenv = * to [testenv]
2025-01-25 02:00:54 +00:00

36 lines
763 B
Python

import os
import subprocess
import sys
from pathlib import Path
def ex_gui():
scriptpath = Path.cwd() / 'examples' / 'gui' / '.'
subprocess.run([sys.executable, str(scriptpath)])
def ex_obs():
subprocess.run(['tox', 'r', '-e', 'obs'])
def ex_observer():
scriptpath = Path.cwd() / 'examples' / 'observer' / '.'
subprocess.run([sys.executable, str(scriptpath)])
def test_basic():
subprocess.run(['tox'], env=os.environ.copy() | {'KIND': 'basic'})
def test_banana():
subprocess.run(['tox'], env=os.environ.copy() | {'KIND': 'banana'})
def test_potato():
subprocess.run(['tox'], env=os.environ.copy() | {'KIND': 'potato'})
def test_all():
steps = [test_basic, test_banana, test_potato]
[step() for step in steps]