Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ namespace RP2040Sharp.IntegrationTests.Tests;
[Trait("Category","Integration")]
public class FreeRtosKernelTest {
private const string Bin="/Users/begeistert/Repos/pymcu-nanort/dist/firmware.bin";
[Fact] public void Full_Kernel_AllSubsystems() {
[Fact(Skip="Requires a locally-built PyMCU/nanoRT firmware at the hard-coded Bin path; not available in CI. Remove Skip after `pymcu build`.")]
public void Full_Kernel_AllSubsystems() {
using var pico=new PicoSimulation(withUsbCdc:false);
pico.LoadFlash(File.ReadAllBytes(Bin));
for(int i=0;i<1000;i++) pico.RunInstructions(5000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
return (edges - startEdges, instrs);
}

[Fact]
[Fact(Skip="Requires a locally-built PyMCU firmware (run `pymcu build` in examples/mp-blink-tight); the hard-coded path is not available in CI. Remove Skip to run locally.")]
public void Native_PyMcu_vs_Interpreted_MicroPython()
{
if (!File.Exists(PyMcuBin))
Expand All @@ -81,7 +81,7 @@
double pymcuInstrPerEdge = (double)pymcuInstr / Math.Max(1, pymcuEdges);

// ── (2) Real MicroPython interpreting the same source ──
var runner = MicroPythonRunner.CreateAsync("v1.21.0").GetAwaiter().GetResult();

Check warning on line 84 in tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs

View workflow job for this annotation

GitHub Actions / Unit Tests

Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)

Check warning on line 84 in tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs

View workflow job for this annotation

GitHub Actions / Unit Tests

Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)

Check warning on line 84 in tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs

View workflow job for this annotation

GitHub Actions / Integration Tests (v1.21.0)

Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)

Check warning on line 84 in tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs

View workflow job for this annotation

GitHub Actions / Integration Tests (v1.21.0)

Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)

Check warning on line 84 in tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs

View workflow job for this annotation

GitHub Actions / Integration Tests (v1.19.1)

Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)

Check warning on line 84 in tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs

View workflow job for this annotation

GitHub Actions / Integration Tests (v1.19.1)

Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)

Check warning on line 84 in tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs

View workflow job for this annotation

GitHub Actions / Integration Tests (v1.20.0)

Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)

Check warning on line 84 in tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs

View workflow job for this annotation

GitHub Actions / Integration Tests (v1.20.0)

Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)
if (runner is null)
throw new InvalidOperationException("MicroPython firmware unavailable (no network/cache).");

Expand Down Expand Up @@ -118,7 +118,7 @@
}
finally
{
runner.DisposeAsync().GetAwaiter().GetResult();

Check warning on line 121 in tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs

View workflow job for this annotation

GitHub Actions / Unit Tests

Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)

Check warning on line 121 in tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs

View workflow job for this annotation

GitHub Actions / Integration Tests (v1.21.0)

Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)

Check warning on line 121 in tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs

View workflow job for this annotation

GitHub Actions / Integration Tests (v1.19.1)

Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)

Check warning on line 121 in tests/RP2040Sharp.IntegrationTests/Tests/PyMcuVsMicroPythonBenchmark.cs

View workflow job for this annotation

GitHub Actions / Integration Tests (v1.20.0)

Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)
}
double mpInstrPerEdge = (double)mpInstr / Math.Max(1, mpEdges);

Expand Down
Loading