summaryrefslogtreecommitdiff
path: root/test/dist.sh
blob: 297e9badbcb649fd8bcea16657712f2d224bc608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#

# Make the dist, build from the dist it, install, then run the test suite
# against what's been installed.

set -ex

VERSION=`sed -n '/^[ \t]*AC_INIT\>/{ s/.*, *//; s/ *).*//; p }' configure.ac`

rm -Rf colm-suite-${VERSION}.tar.{gz,bz2} colm-suite-${VERSION}

make dist
tar -zxvf colm-suite-${VERSION}.tar.gz

cd colm-suite-${VERSION}

./configure --prefix=/tmp/colm-suite \
	--with-crack=/home/thurston/pkgs/crack --enable-manual --enable-debug

make

cd test

./runtests