run.py 578 Bytes
Newer Older
1
2
#!/usr/bin/python

3
4
if __name__ == "__main__":
    import os
5

6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
    # if os.getcwd().endswith('test'):
    #     os.chdir('..')
    # print("Running nosetests:")
    # os.system("nosetests test")

    interpreter = 'python '
    # interpreter = r'C:\Users\di68kap\AppData\Local\Programs\Python\Python37-32\python.exe '

    os.system(interpreter + '--version')

    assert os.getcwd().endswith('test')
    files = os.listdir()
    for filename in files:
        if filename.startswith('test_'):
            print('\nTEST ' + filename)
            os.system(interpreter + filename)