Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update and fix ethereum tests #3778

Merged
merged 22 commits into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
96c0d2c
updated tests
marcindsobczak Dec 20, 2021
745cd28
update tests reference to the most recent commit
marcindsobczak Dec 20, 2021
c60c175
update tests reference
marcindsobczak Jan 7, 2022
396955f
Merge remote-tracking branch 'origin/master' into update_ethereum_tests
marcindsobczak Jan 7, 2022
d201e2e
fix loaders
marcindsobczak Jan 7, 2022
8646a5e
delete stale tests
marcindsobczak Jan 7, 2022
9ae767b
Merge remote-tracking branch 'origin/master' into update_ethereum_tests
marcindsobczak Jan 27, 2022
34e601c
update tests
marcindsobczak Jan 27, 2022
367996d
fix BerlinToLondon tests
marcindsobczak Jan 27, 2022
b6c5826
ignore 12 transactions tests for now (passing hive tests, failing here)
marcindsobczak Jan 27, 2022
ab0410b
update TransactionTests runner
marcindsobczak Jan 27, 2022
7301591
disable difficulty tests with broken loader
marcindsobczak Feb 1, 2022
49b9515
move VM tests from Blockchain.Test project to VM.Test project
marcindsobczak Feb 1, 2022
7880221
clean
marcindsobczak Feb 1, 2022
d82cafd
Merge remote-tracking branch 'origin/master' into update_ethereum_tests
marcindsobczak Feb 1, 2022
f8807d7
fix workflow and add missing tests
marcindsobczak Feb 1, 2022
4839673
remove duplicated tests
marcindsobczak Feb 1, 2022
0220ea4
Merge branch 'update_ethereum_tests' of https://github.com/Nethermind…
marcindsobczak Feb 1, 2022
0436c16
fix MetaTest
marcindsobczak Feb 1, 2022
786f269
add MetaTest for VM.Test
marcindsobczak Feb 1, 2022
3a390fa
cosmetics
marcindsobczak Feb 1, 2022
2c5c5e1
suggested changes
marcindsobczak Feb 2, 2022
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
7 changes: 5 additions & 2 deletions .github/workflows/run-nethermind-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ jobs:
dotnet test -c Release src/Nethermind/Ethereum.KeyAddress.Test
- name: Ethereum.PoW.Test
run: |
dotnet test -c Release src/Nethermind/Ethereum.Rlp.Test
dotnet test -c Release src/Nethermind/Ethereum.PoW.Test
LukaszRozmej marked this conversation as resolved.
Show resolved Hide resolved
- name: Ethereum.Rlp.Test
run: |
dotnet test -c Release src/Nethermind/Ethereum.Basic.Test
dotnet test -c Release src/Nethermind/Ethereum.Rlp.Test
- name: Ethereum.Transaction.Test
run: |
dotnet test -c Release src/Nethermind/Ethereum.Transaction.Test
Expand All @@ -280,3 +280,6 @@ jobs:
- name: Ethereum.Trie.Test
run: |
dotnet test -c Release src/Nethermind/Ethereum.Trie.Test
- name: Ethereum.VM.Test
run: |
dotnet test -c Release src/Nethermind/Ethereum.VM.Test
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,10 @@
<Link>%(RecursiveDir)%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\..\tests\BlockchainTests\ValidBlocks\VMTests\vm*\*.*">
<Content Include="..\..\tests\BlockchainTests\InvalidBlocks\bc*\*.*">
<Link>%(RecursiveDir)%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<!-- <Content Include="..\..\tests\BlockchainTests\InvalidBlocks\bc*\*.*">-->
<!-- <Link>InvalidBlocks\%(RecursiveDir)%(FileName)%(Extension)</Link>-->
<!-- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>-->
<!-- </Content>-->
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Ethereum.Test.Base\Ethereum.Test.Base.csproj" />
Expand Down
11 changes: 6 additions & 5 deletions src/Nethermind/Ethereum.Blockchain.Block.Test/ExampleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,22 @@
*/

using System.Collections.Generic;
using System.Threading.Tasks;
using Ethereum.Test.Base;
using NUnit.Framework;

namespace Ethereum.Blockchain.Block.Test
{
[TestFixture][Parallelizable(ParallelScope.All)]
public class ExampleTests : GeneralStateTestBase
public class ExampleTests : BlockchainTestBase
{
[TestCaseSource(nameof(LoadTests))]
public void Test(GeneralStateTest test)
public async Task Test(BlockchainTest test)
{
Assert.True(RunTest(test).Pass);
await RunTest(test);
}

public static IEnumerable<GeneralStateTest> LoadTests() { var loader = new TestsSourceLoader(new LoadGeneralStateTestsStrategy(), "bcExample");
return (IEnumerable<GeneralStateTest>)loader.LoadTests(); }
public static IEnumerable<BlockchainTest> LoadTests() { var loader = new TestsSourceLoader(new LoadBlockchainTestsStrategy(), "bcExample");
return (IEnumerable<BlockchainTest>)loader.LoadTests(); }
}
}
2 changes: 1 addition & 1 deletion src/Nethermind/Ethereum.Blockchain.Block.Test/MetaTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void All_categories_are_tested()
string[] directories =
Directory.GetDirectories(AppDomain.CurrentDomain.BaseDirectory)
.Select(Path.GetFileName)
.Where(d =>d.StartsWith("bc") || d.StartsWith("vm"))
.Where(d =>d.StartsWith("bc"))
LukaszRozmej marked this conversation as resolved.
Show resolved Hide resolved
.ToArray();

Type[] types = GetType().Assembly.GetTypes();
Expand Down
42 changes: 0 additions & 42 deletions src/Nethermind/Ethereum.Blockchain.Block.Test/VmArithmeticTests.cs

This file was deleted.

This file was deleted.

42 changes: 0 additions & 42 deletions src/Nethermind/Ethereum.Blockchain.Block.Test/VmBlockInfoTests.cs

This file was deleted.

This file was deleted.

This file was deleted.

42 changes: 0 additions & 42 deletions src/Nethermind/Ethereum.Blockchain.Block.Test/VmLogTest.cs

This file was deleted.

This file was deleted.

Loading