Files
OpenUxAS-SoI/docker/ContainerScriptsAndFiles/runUxAS_tests.py
2018-10-11 08:19:56 -04:00

16 lines
369 B
Python

#! /usr/bin/env python3
import os
from subprocess import call
def callWithShell(cmd):
call(cmd, shell=True)
# 1 - change to the volume with OpenUxAS code :
os.chdir("/tmp_build")
# if `build` exists, then just run Ninja
if(os.path.isdir("build")):
callWithShell("meson build --buildtype=release")
# 3 - compile the code
callWithShell("ninja -C build test")