summaryrefslogtreecommitdiff
path: root/test/dist.sh
blob: 738a79380edb268bafd6786f8e149e686d258f95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#

set -xe

eval `grep VERSION= config.status`
DIST=colm-$VERSION.tar.gz

trap "rm -f $DIST" EXIT
make dist

WORKDIR=`mktemp -d /tmp/colm.XXXXXX`
trap "rm -Rf $DIST $WORKDIR" EXIT
tar -C $WORKDIR -xzvf $DIST

cd $WORKDIR/${DIST%.tar.gz}
./configure && make -j8
cd test && ./runtests