Takahiro Suzuki | d7bf820 | 2020-12-17 20:21:59 +0900 | [diff] [blame] | 1 | #!/bin/bash |
2 | # Get utilities | ||||
3 | yum -y -q -e 0 install wget tar unzip gcc | ||||
4 | |||||
5 | # Get Go | ||||
6 | wget -q https://dl.google.com/go/go1.11.1.linux-386.tar.gz | ||||
7 | tar -C /usr/local -xzf go1.11.1.linux-386.tar.gz | ||||
8 | export PATH=$PATH:/usr/local/go/bin | ||||
9 | |||||
10 | # Get payload | ||||
11 | wget -q https://github.com/DataDog/zstd/files/2246767/mr.zip | ||||
12 | unzip mr.zip | ||||
13 | |||||
14 | # Build and run tests | ||||
15 | cd zstd | ||||
16 | go build | ||||
17 | PAYLOAD=$(pwd)/mr go test -v | ||||
18 | PAYLOAD=$(pwd)/mr go test -bench . |