From 44e79c5f7fcdf48bc496c76f9c5148f8ac6940cc Mon Sep 17 00:00:00 2001 From: Dimitry Kh Date: Tue, 11 Jun 2024 10:32:33 +0200 Subject: [PATCH] fetch from legacy folder --- .github/workflows/coverage.yaml | 19 +++++++++++++++++-- converted-ethereum-tests.txt | 1 + 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 7fdf144966..e897c255a6 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -58,6 +58,15 @@ jobs: GeneralStateTests EOFTests + - name: Checkout ethereum/legacytests + uses: actions/checkout@v4 + with: + repository: ethereum/legacytests + path: legacytestpath + sparse-checkout: | + Cancun/GeneralStateTests + + # This command diffs the file and filters in new lines - name: Parse converted tests from converted-ethereum-tests.txt run: | @@ -74,9 +83,15 @@ jobs: echo $file done - mkdir -p ${{ github.workspace }}/evmtest_coverage/coverage/BASE_TESTS + BASE_TESTS_PATH=${{ github.workspace }}/evmtest_coverage/coverage/BASE_TESTS + mkdir -p $BASE_TESTS_PATH for file in $files; do - cp ${{ github.workspace }}/testpath/$file ${{ github.workspace }}/evmtest_coverage/coverage/BASE_TESTS + cp ${{ github.workspace }}/testpath/$file $BASE_TESTS_PATH + if [[ "$file" == *"GeneralStateTests"* ]]; then + base_name=$(basename "$file") + legacy_file_name="legacy_$base_name" + cp ${{ github.workspace }}/legacytestpath/Cancun/$file $BASE_TESTS_PATH/$legacy_file_name + fi done diff --git a/converted-ethereum-tests.txt b/converted-ethereum-tests.txt index cf1e684aeb..2caf641036 100644 --- a/converted-ethereum-tests.txt +++ b/converted-ethereum-tests.txt @@ -1 +1,2 @@ EOFTests/EIP3540/validInvalid.json +GeneralStateTests/stChainId/chainId.json