Skip to content

Commit 2af41ae

Browse files
committed
Add script to run test.
1 parent 45285c8 commit 2af41ae

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

script/test.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env python
2+
3+
import os
4+
import subprocess
5+
import sys
6+
7+
8+
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
9+
10+
11+
def main():
12+
if sys.platform == 'darwin':
13+
atom_shell = os.path.join(SOURCE_ROOT, 'out', 'Debug', 'Atom.app',
14+
'Contents', 'MacOS', 'Atom')
15+
else:
16+
atom_shell = os.path.join(SOURCE_ROOT, 'out', 'Debug', 'atom.exe')
17+
18+
subprocess.check_call([atom_shell, os.path.join(SOURCE_ROOT, 'spec')])
19+
20+
21+
if __name__ == '__main__':
22+
sys.exit(main())

0 commit comments

Comments
 (0)