Skip to content

Commit

Permalink
fetch from legacy folder
Browse files Browse the repository at this point in the history
  • Loading branch information
winsvega committed Jun 11, 2024
1 parent 61c6577 commit 44e79c5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions converted-ethereum-tests.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
EOFTests/EIP3540/validInvalid.json
GeneralStateTests/stChainId/chainId.json

0 comments on commit 44e79c5

Please sign in to comment.