Created
March 9, 2020 11:52
-
-
Save meowsbits/1a94354dd538843715fd0f4d81996b16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
SO_SSVM=/home/ia/dev/second-state/SSVM/build/tools/ssvm-evmc/libssvmEVMC.so | |
SO_HERA=/home/ia/dev/ewasm/hera/build/src/libhera.so | |
SO_PATH='' | |
if [[ $1 = ssvm ]]; then | |
SO_PATH="$SO_SSVM" | |
elif [[ $1 = hera ]]; then | |
SO_PATH="$SO_HERA" | |
fi | |
[[ -z "$SO_PATH" ]] && echo "Use 'hera' or 'ssvm' as arg1" && exit 1 | |
echo "Running EWASM tests for $SO_PATH" | |
echo '> go test -v ./tests/... -run TestState -evmc.ewasm='"$SO_PATH" | tee test.$1.log | |
go test -v ./tests/... -run TestState -evmc.ewasm="$SO_PATH" |& tee test.$1.log | |
# grep -A2 FAIL test.*.log | |
# grep -B5 -A5 'segementation violation' test.*.log | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment