diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f21e1d13..92ddd8358 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -157,20 +157,17 @@ jobs: mkdir truffle_tests cd truffle_tests truffle unbox metacoin - manticore . --contract MetaCoin --workspace output - ### The original comment says we should get 41 states, but after implementing the shift - ### insructions, we get 31. Was the original comment a typo? - - # The correct answer should be 41 - # but Manticore fails to explore the paths due to the lack of the 0x1f opcode support - # see https://github.com/trailofbits/manticore/issues/1166 - # if [ "$(ls output/*tx -l | wc -l)" != "41" ]; then + coverage run -m manticore . --contract MetaCoin --workspace output + # Truffle smoke test. We test if manticore is able to generate states + # from a truffle project. if [ "$(ls output/*tx -l | wc -l)" != "34" ]; then echo "Truffle test failed" `ls output/*tx -l | wc -l` "!= 34" return 1 fi echo "Truffle test succeded" + coverage xml cd .. + cp truffle_tests/coverage.xml . return 0 } diff --git a/codecov.yml b/codecov.yml index 6f6b36e25..9cd6e9730 100644 --- a/codecov.yml +++ b/codecov.yml @@ -2,7 +2,7 @@ comment: false codecov: notify: - # We have 8 test steps that produce coverage data. + # We have 9 test steps that produce coverage data. # If we add or remove any, we need to change this number. - after_n_builds: 8 + after_n_builds: 9 wait_for_ci: yes