summaryrefslogtreecommitdiff
path: root/nightly-test
blob: 3e609be241666dda25d0ee013518392b74d20fd1 (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/sh
# Usage: nightly-test <GMPDIR> <BRANCH>
set -e
GMP="$1"
BRANCH="$2"
DIR=mpfr-nightly
echo "BRANCH=$BRANCH"
echo "GMP=$GMP"
cd /tmp
/bin/rm -fr "$DIR"
mkdir "$DIR"
# The following test should be useless, but let's be paranoid.
test ! -h "$DIR"
svn checkout "svn://scm.gforge.inria.fr/svn/mpfr/${BRANCH:-trunk}" "$DIR"
cd "$DIR"
autoreconf -i
./configure --with-gmp="$GMP" --disable-alloca --enable-assert=full \
  --disable-shared --enable-thread-safe --enable-tests-timeout=60 CFLAGS="-Wall -Wmissing-prototypes -O2 -g -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security"
make
export GMP_CHECK_RANDOMIZE=1
export MPFR_CHECK_MAX=1
export MPFR_CHECK_ALL=1
make check
cd /tmp
/bin/rm -fr "$DIR"