File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 11classdef TestSys < matlab .unittest .TestCase
22
3+ properties
4+ CI = getenv(" CI" ) == " true" || getenv(" GITHUB_ACTIONS" ) == " true"
5+ end
6+
37properties (TestParameter )
4- fun = {stdlib.isoctave, stdlib.isinteractive, stdlib. has_dotnet, ...
8+ fun = {stdlib.isoctave, stdlib.has_dotnet, ...
59 stdlib.has_java , stdlib.has_python }
610end
711
@@ -16,6 +20,15 @@ function test_is_cygwin(tc)
1620tc .verifyFalse(stdlib .is_cygwin())
1721end
1822
23+ function test_get_shell(tc )
24+ tc .assumeFalse(tc .CI , " get_shell is not tested in CI due to platform differences" )
25+ tc .verifyNotEmpty(stdlib .get_shell())
26+ end
27+
28+ function test_is_interactive(tc )
29+ tc .verifyNotEqual(stdlib .isinteractive(), tc .CI )
30+ end
31+
1932function test_is_rosetta(tc )
2033if ismac()
2134 tc .verifyClass(stdlib .is_rosetta(), ' logical' )
You can’t perform that action at this time.
0 commit comments