File: test.py

package info (click to toggle)
libxmlbird 1.2.15-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 308 kB
  • sloc: python: 649; xml: 122; sh: 51; makefile: 14
file content (17 lines) | stat: -rwxr-xr-x 384 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/python
import subprocess
from scripts import tests

tests = tests.get_tests();

for test in tests:
    print('Running tests:')
    process = subprocess.Popen("./run_test.sh ./build/bin/" + test, shell=True)
    process.communicate()[0]
    
    if not process.returncode == 0:
        print(test + ' failed')
        exit (1)
    else:
        print(test + ' passed')