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
9 changes: 4 additions & 5 deletions .github/workflows/nethermind-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,20 @@ jobs:
project:
- Ethereum.Abi.Test
- Ethereum.Basic.Test
- Ethereum.Blockchain.Block.Legacy.Test
- Ethereum.Blockchain.Block.Test
- Ethereum.Blockchain.Legacy.Test
- Ethereum.Blockchain.Pyspec.Test
- Ethereum.Blockchain.Test
- Ethereum.Difficulty.Test
- Ethereum.HexPrefix.Test
- Ethereum.KeyAddress.Test
- Ethereum.KeyStore.Test
- Ethereum.Legacy.Blockchain.Block.Test
- Ethereum.Legacy.Blockchain.Test
- Ethereum.Legacy.Transition.Test
- Ethereum.Legacy.VM.Test
- Ethereum.PoW.Test
- Ethereum.Rlp.Test
- Ethereum.Transaction.Test
- Ethereum.Transition.Test
- Ethereum.Trie.Test
- Ethereum.VM.Test
- Nethermind.Abi.Test
- Nethermind.Api.Test
- Nethermind.AuRa.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
// SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited
// SPDX-License-Identifier: LGPL-3.0-only

using System;
using System.Collections.Generic;
using System.IO;
using Ethereum.Test.Base;
using NUnit.Framework;

namespace Ethereum.Blockchain.Test;
namespace Ethereum.Blockchain.Block.Test;

[TestFixture]
[Parallelizable(ParallelScope.All)]
public class Eip3860LimitmeterInitCodeTests : GeneralStateTestBase
public class BlockhashTests : GeneralStateTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
Expand All @@ -19,7 +21,7 @@ public void Test(GeneralStateTest test)

public static IEnumerable<GeneralStateTest> LoadTests()
{
var loader = new TestsSourceLoader(new LoadGeneralStateTestsStrategy(), "stEIP3860-limitmeterinitcode");
var loader = new TestsSourceLoader(new LoadGeneralStateTestsStrategy(), Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Blockhash"));
return loader.LoadTests<GeneralStateTest>();
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="../tests.props" />

<ItemGroup>
Expand All @@ -12,7 +12,15 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<None Update="Blockhash\blockhash.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Ethereum.Test.Base\Ethereum.Test.Base.csproj" />
</ItemGroup>

</Project>
5 changes: 3 additions & 2 deletions src/Nethermind/Ethereum.Blockchain.Block.Test/ForgedTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ public class ForgedTests : BlockchainTestBase
[TestCaseSource(nameof(LoadTests))]
public async Task Test(BlockchainTest test)
{
bool isWindows = System.Runtime.InteropServices.RuntimeInformation
.IsOSPlatform(OSPlatform.Windows);
bool isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
if (isWindows)
{
return;
}

await RunTest(test);
}
Expand Down
2 changes: 0 additions & 2 deletions src/Nethermind/Ethereum.Blockchain.Block.Test/StateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using Nethermind.Core.Attributes;
using NUnit.Framework;

namespace Ethereum.Blockchain.Block.Test
Expand All @@ -13,7 +12,6 @@ namespace Ethereum.Blockchain.Block.Test
[Parallelizable(ParallelScope.All)]
public class StateTests : BlockchainTestBase
{
[Todo(Improve.TestCoverage, "SuicideStorage tests")]
[TestCaseSource(nameof(LoadTests)), Retry(3)]
public async Task Test(BlockchainTest test)
{
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions src/Nethermind/Ethereum.Blockchain.Legacy.Test/CodeCopyTests.cs

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions src/Nethermind/Ethereum.Blockchain.Legacy.Test/Create2Tests.cs

This file was deleted.

26 changes: 0 additions & 26 deletions src/Nethermind/Ethereum.Blockchain.Legacy.Test/CreateTests.cs

This file was deleted.

This file was deleted.

This file was deleted.

Loading