Skip to content

Commit c32a73a

Browse files
committed
1 parent 88448f7 commit c32a73a

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ deviceLog.txt
1010
pylint*
1111
QA*
1212
Report*
13-
setup*
1413
TestApp*
1514
TNS_App*
1615
template-hello*

tests/build/common/setup_tests.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
"""
2+
Test that check CLI package after installation.
3+
"""
4+
import unittest
5+
6+
from core.base_class.BaseClass import BaseClass
7+
from core.osutils.command import run
8+
from core.osutils.os_type import OSType
9+
from core.settings.settings import CURRENT_OS
10+
11+
12+
class SetupTests(BaseClass):
13+
@classmethod
14+
def setUpClass(cls):
15+
BaseClass.setUpClass(cls.__name__)
16+
17+
@classmethod
18+
def tearDownClass(cls):
19+
BaseClass.tearDownClass()
20+
21+
@unittest.skipIf(CURRENT_OS != OSType.OSX, 'Skip on Linux and Windows')
22+
def test_001_mac_script_has_execution_permissions(self):
23+
output = run('ls -la node_modules/nativescript/setup/mac-startup-shell-script.sh')
24+
assert "-rwxr-xr-x" in output, "macOS script has not execution permissions."

0 commit comments

Comments
 (0)