kdanylov aka koder | 0c4c552 | 2018-06-29 00:49:26 +0300 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
| 2 | set -xe |
| 3 | |
| 4 | apt update |
| 5 | apt -y install g++ git zlib1g-dev libaio-dev librbd-dev make bzip2 |
| 6 | cd /tmp |
koder aka kdanilov | 6ab4d43 | 2015-06-22 00:26:28 +0300 | [diff] [blame] | 7 | git clone https://github.com/axboe/fio.git |
| 8 | cd fio |
| 9 | ./configure |
kdanylov aka koder | 0c4c552 | 2018-06-29 00:49:26 +0300 | [diff] [blame^] | 10 | make -j 4 |
| 11 | . /etc/lsb-release |
| 12 | # VERSION=$(cat /etc/lsb-release | grep DISTRIB_CODENAME | awk -F= '{print $2}') |
| 13 | chmod a-x fio |
| 14 | bzip2 -z -9 fio |
| 15 | mv fio.bz2 "fio_${DISTRIB_CODENAME}_x86_64.bz2" |