-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile_and_test_gt_large
executable file
·41 lines (36 loc) · 1.22 KB
/
compile_and_test_gt_large
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh -e
. uniqueness.sh
GT_SRC_DIR=/var/www/servers/genometools.org/htdocs/pub
GT_TAR_NAME=genometools-unstable.tar.gz
GT_DIR=genometools-unstable
METASCRIPTS_DIR=$HOME/gtmetascripts
# source git repository used for `git show`
export GIT_DIR=/var/www/pub/git/genometools.git
if [ $GT_SRC_DIR/$GT_TAR_NAME -nt $METASCRIPTS_DIR/gt_large/$GT_TAR_NAME ] \
&& is_unique
then
COMMIT=`zcat $GT_SRC_DIR/$GT_TAR_NAME | git get-tar-commit-id`
git show --stat $COMMIT
mkdir -p $METASCRIPTS_DIR/gt_large
cp -f $GT_SRC_DIR/$GT_TAR_NAME $METASCRIPTS_DIR/gt_large
rm -rf $METASCRIPTS_DIR/gt_large/$GT_DIR
cd $METASCRIPTS_DIR/gt_large
tar xzf $GT_TAR_NAME
cd $GT_DIR
echo "large test"
cd src/external
cp $METASCRIPTS_DIR/hmmer-2.3.2.tar.gz .
tar -xzf hmmer-2.3.2.tar.gz
rm -f hmmer-2.3.2.tar.gz
cd ../..
make 64bit=yes with-hmmer=yes > /dev/null
make 64bit=yes gttestdata=$HOME/gttestdata memcheck=yes test
echo "test threaded version"
make cleanup
make 64bit=yes threads=yes > /dev/null
valgrind --tool=helgrind bin/gt -j 8 -test > /dev/null
echo "test with amalgamation=yes and assert=no"
make cleanup
make 64bit=yes amalgamation=yes assert=no > /dev/null
make 64bit=yes amalgamation=yes assert=no test
fi