Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Fix warnings related to leb128 tests (#321)
Browse files Browse the repository at this point in the history
* chore: reorganize scripts under one folder
* fix: frc42 checks
* fix: remove warnings
  • Loading branch information
emmanuelm41 committed Feb 28, 2023
1 parent 24b1ec6 commit e46b858
Show file tree
Hide file tree
Showing 23 changed files with 4,490 additions and 3,972 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ jobs:
toolchain: nightly
override: true
- name: Check FRC0042 using rust script
run: make frc0042
run: make test_frc0042

cbor-decode-integration:
name: "CBOR Decode Tests"
Expand Down
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ build_mock_api: verify_solc
build_builtin_actors:
cd testing/builtin-actors && make bundle-hyperspace

get_method_nums:
cd script && cargo r

build_leb128_test: verify_solc
./bin/solc contracts/v0.8/tests/leb128.test.sol --output-dir ./build/v0.8/tests --overwrite --bin --hashes --opcodes --abi
./bin/solc contracts/v0.8/tests/leb128.generated1.test.sol --output-dir ./build/v0.8/tests --overwrite --bin --hashes --opcodes --abi
Expand All @@ -52,6 +49,12 @@ build_leb128_test: verify_solc
./bin/solc contracts/v0.8/tests/leb128.generated9.test.sol --output-dir ./build/v0.8/tests --overwrite --bin --hashes --opcodes --abi
./bin/solc contracts/v0.8/tests/leb128.generated10.test.sol --output-dir ./build/v0.8/tests --overwrite --bin --hashes --opcodes --abi
./bin/solc contracts/v0.8/tests/leb128.generated11.test.sol --output-dir ./build/v0.8/tests --overwrite --bin --hashes --opcodes --abi
./bin/solc contracts/v0.8/tests/leb128.generated12.test.sol --output-dir ./build/v0.8/tests --overwrite --bin --hashes --opcodes --abi
./bin/solc contracts/v0.8/tests/leb128.generated13.test.sol --output-dir ./build/v0.8/tests --overwrite --bin --hashes --opcodes --abi
./bin/solc contracts/v0.8/tests/leb128.generated14.test.sol --output-dir ./build/v0.8/tests --overwrite --bin --hashes --opcodes --abi

generate_leb128_tests:
cd scripts/leb128 && python generate.py

################ DEPLOY ################

Expand Down Expand Up @@ -110,8 +113,8 @@ test_precompiles_integration: build build_builtin_actors
test_send_integration: build build_builtin_actors
cd testing && cargo test send_test -- --nocapture

frc0042:
cd script && cargo r
test_frc0042:
cd scripts/frc42 && cargo r

test_cbor_decode: build build_builtin_actors
cd testing && cargo test cbor_decode_test -- --nocapture
Expand Down
250 changes: 69 additions & 181 deletions contracts/v0.8/tests/leb128.generated1.test.sol

Large diffs are not rendered by default.

664 changes: 276 additions & 388 deletions contracts/v0.8/tests/leb128.generated10.test.sol

Large diffs are not rendered by default.

664 changes: 276 additions & 388 deletions contracts/v0.8/tests/leb128.generated11.test.sol

Large diffs are not rendered by default.

518 changes: 518 additions & 0 deletions contracts/v0.8/tests/leb128.generated12.test.sol

Large diffs are not rendered by default.

518 changes: 518 additions & 0 deletions contracts/v0.8/tests/leb128.generated13.test.sol

Large diffs are not rendered by default.

518 changes: 518 additions & 0 deletions contracts/v0.8/tests/leb128.generated14.test.sol

Large diffs are not rendered by default.

Loading

0 comments on commit e46b858

Please sign in to comment.