tests.sh 643 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env bash
  2. set -e
  3. if [ "$1" == "build" ]
  4. then
  5. (
  6. git clone --recursive https://github.com/ethereum/cpp-ethereum
  7. cd cpp-ethereum
  8. rm -rf hera
  9. ln -s `pwd`/../. hera
  10. mkdir build
  11. cd build
  12. cmake -DHERA=ON ..
  13. make
  14. )
  15. TESTETH=$(pwd)/cpp-ethereum/build/test/testeth
  16. else
  17. TESTETH=testeth
  18. fi
  19. WORKING_DIR=$(pwd)
  20. echo "running tests.sh inside working dir: $WORKING_DIR"
  21. echo "listing files:"
  22. ls -al
  23. echo "fetch ewasm tests."
  24. git clone https://github.com/ewasm/tests -b wasm-tests --single-branch
  25. echo "run ewasm tests."
  26. ${TESTETH} -t GeneralStateTests/stEWASMTests -- --testpath ./tests --vm hera --singlenet "Byzantium"