diff --git a/tests/README.md b/tests/README.md index cf203a876dcf..fc5732adcfe9 100644 --- a/tests/README.md +++ b/tests/README.md @@ -1,5 +1,11 @@ # Various tests to be executed prior to releases +## Test permissions + +There are a number of tests that acccess the file system and the bluetooh. For these tests to correctly execute you have to ensure that +the terminal application that you are using to execute the tests has access to the full filesystem and the bluetooth. If you do not do this +step the macOS tests will crash. + ## Test solutions Many of the test solutions and test projects are generated, and will diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSAccelerationStructureTests.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSAccelerationStructureTests.cs index 6eedcfc79edd..0d8bcedba205 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSAccelerationStructureTests.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSAccelerationStructureTests.cs @@ -33,6 +33,7 @@ public void Metal () { TestRuntime.AssertDevice (); TestRuntime.AssertXcodeVersion (10, 0); + TestRuntime.AssertNotVirtualMachine (); device = MTLDevice.SystemDefault; // some older hardware won't have a default diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSImageBatchTests.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSImageBatchTests.cs index f74bbe314daf..006041af2f56 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSImageBatchTests.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSImageBatchTests.cs @@ -31,6 +31,7 @@ public void Metal () { TestRuntime.AssertDevice (); TestRuntime.AssertXcodeVersion (10, 0); + TestRuntime.AssertNotVirtualMachine (); device = MTLDevice.SystemDefault; // some older hardware won't have a default diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramEqualizationTest.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramEqualizationTest.cs index 28054050e6c4..d626c131dfc5 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramEqualizationTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramEqualizationTest.cs @@ -30,6 +30,7 @@ public void Metal () Assert.Inconclusive ("Metal Performance Shaders is not supported in the simulator"); #else TestRuntime.AssertXcodeVersion (9, 0); + TestRuntime.AssertNotVirtualMachine (); #endif device = MTLDevice.SystemDefault; diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramSpecificationTest.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramSpecificationTest.cs index a8a8b7ae46e9..fd395cceace2 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramSpecificationTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramSpecificationTest.cs @@ -30,6 +30,7 @@ public void Metal () Assert.Inconclusive ("Metal Performance Shaders is not supported in the simulator"); #else TestRuntime.AssertXcodeVersion (9, 0); + TestRuntime.AssertNotVirtualMachine (); #endif device = MTLDevice.SystemDefault; diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramTest.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramTest.cs index 44bf15aa70f6..6a4bfdd908c7 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramTest.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSImageHistogramTest.cs @@ -30,6 +30,7 @@ public void Metal () Assert.Inconclusive ("Metal Performance Shaders is not supported in the simulator"); #else TestRuntime.AssertXcodeVersion (9, 0); + TestRuntime.AssertNotVirtualMachine (); #endif device = MTLDevice.SystemDefault; diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSImageNormalizedHistogramTests.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSImageNormalizedHistogramTests.cs index 0f01ffcb58ea..1af64a62ec0e 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSImageNormalizedHistogramTests.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSImageNormalizedHistogramTests.cs @@ -30,6 +30,7 @@ public void Metal () { TestRuntime.AssertDevice (); TestRuntime.AssertXcodeVersion (10, 0); + TestRuntime.AssertNotVirtualMachine (); device = MTLDevice.SystemDefault; // some older hardware won't have a default diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSStateBatchTests.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSStateBatchTests.cs index 09c69717ba56..3bc36de253ef 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSStateBatchTests.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSStateBatchTests.cs @@ -31,6 +31,7 @@ public void Metal () { TestRuntime.AssertDevice (); TestRuntime.AssertXcodeVersion (10, 0); + TestRuntime.AssertNotVirtualMachine (); device = MTLDevice.SystemDefault; // some older hardware won't have a default diff --git a/tests/monotouch-test/MetalPerformanceShaders/MPSStateResourceListTests.cs b/tests/monotouch-test/MetalPerformanceShaders/MPSStateResourceListTests.cs index be9ba09a2624..562fa794adf8 100644 --- a/tests/monotouch-test/MetalPerformanceShaders/MPSStateResourceListTests.cs +++ b/tests/monotouch-test/MetalPerformanceShaders/MPSStateResourceListTests.cs @@ -30,6 +30,7 @@ public void Metal () { TestRuntime.AssertDevice (); TestRuntime.AssertXcodeVersion (10, 0); + TestRuntime.AssertNotVirtualMachine (); device = MTLDevice.SystemDefault; // some older hardware won't have a default