blob: d29c86c9eb4dd2839c52b53f419581387234113a [file] [log] [blame]
Prince Pereirac1c21d62021-04-22 08:38:15 +00001#!/bin/bash
2# Get utilities
3yum -y -q -e 0 install wget tar unzip gcc
4
5# Get Go
6wget -q https://dl.google.com/go/go1.11.1.linux-386.tar.gz
7tar -C /usr/local -xzf go1.11.1.linux-386.tar.gz
8export PATH=$PATH:/usr/local/go/bin
9
10# Get payload
11wget -q https://github.com/DataDog/zstd/files/2246767/mr.zip
12unzip mr.zip
13
14# Build and run tests
15cd zstd
16go build
17PAYLOAD=$(pwd)/mr go test -v
18PAYLOAD=$(pwd)/mr go test -bench .