blob: d29c86c9eb4dd2839c52b53f419581387234113a [file] [log] [blame]
William Kurkianea869482019-04-09 15:16:11 -04001#!/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 .