|
|
@ -14,12 +14,18 @@ |
|
|
|
# See the License for the specific language governing permissions and |
|
|
|
# See the License for the specific language governing permissions and |
|
|
|
# limitations under the License. |
|
|
|
# limitations under the License. |
|
|
|
|
|
|
|
|
|
|
|
import subprocess, sys, shutil |
|
|
|
import os |
|
|
|
|
|
|
|
import sys |
|
|
|
|
|
|
|
import shutil |
|
|
|
|
|
|
|
import subprocess |
|
|
|
import platform |
|
|
|
import platform |
|
|
|
from mesonbuild import mesonlib |
|
|
|
from mesonbuild import mesonlib |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
if __name__ == '__main__': |
|
|
|
returncode = 0 |
|
|
|
returncode = 0 |
|
|
|
|
|
|
|
# Running on a developer machine? Be nice! |
|
|
|
|
|
|
|
if not mesonlib.is_windows() and 'TRAVIS' not in os.environ: |
|
|
|
|
|
|
|
os.nice(20) |
|
|
|
print('Running unittests.\n') |
|
|
|
print('Running unittests.\n') |
|
|
|
if mesonlib.is_linux(): |
|
|
|
if mesonlib.is_linux(): |
|
|
|
returncode += subprocess.call([sys.executable, 'run_unittests.py', '-v']) |
|
|
|
returncode += subprocess.call([sys.executable, 'run_unittests.py', '-v']) |
|
|
|