~ubuntu-branches/ubuntu/trusty/3depict/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/tests/unittests

  • Committer: Package Import Robot
  • Author(s): D Haley
  • Date: 2013-07-20 18:31:32 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20130720183132-5ak932y2x6pwo4fs
Tags: 0.0.14-1
* Update to upstream, 0.0.14
* Enable mathgl2.x configure option
* Modify build-depends, libmgl-dev >= 2.1.32

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
CONFIGURE_PARAMS="--enable-mgl2"
 
4
 
 
5
#apply all quilt patches, recording current status
 
6
QUILT_APPLIED=`quilt applied`
 
7
quilt push -a 
 
8
 
 
9
#If manually running outside autopkgtest, then
 
10
# just use /tmp
 
11
if [ x"$ADTDMP" == x"" ] ; then
 
12
        if [ x"$TMP" == x"" ] ; then
 
13
                ADTDMP=/tmp/
 
14
        else
 
15
                ADTDMP=/tmp/
 
16
        fi
 
17
fi
 
18
 
 
19
REBUILD_DIR=$ADTDMP/3depict-debug/
 
20
 
 
21
#Go to top level dir
 
22
#---
 
23
TOP_LEVEL=` git rev-parse --show-toplevel`
 
24
if [ $? -ne 0 ] ; then
 
25
        $TOP_LEVEL=""
 
26
else
 
27
        pushd $TOP_LEVEL
 
28
fi
 
29
 
 
30
 
 
31
 
 
32
rm -rf $REBUILD_DIR || exit 1;
 
33
mkdir  $REBUILD_DIR || exit 1;
 
34
cp -R ./ $REBUILD_DIR 
 
35
 
 
36
pushd $REBUILD_DIR
 
37
 
 
38
#Rebuild program with debugging enabled.
 
39
# Run tests in both single and multithreaded modes
 
40
#----
 
41
make clean ||  exit 1;
 
42
./configure  $CONFIGURE_PARAMS ||  exit 1;   
 
43
make -j2  ||  exit 1;
 
44
./src/3Depict -t || exit 1; 
 
45
 
 
46
make clean || exit 1;
 
47
./configure $CONFIGURE_PARAMS --enable-openmp-parallel
 
48
make -j2
 
49
./src/3Depict -t || exit 1;
 
50
make clean
 
51
#----
 
52
 
 
53
rm -rf $REBUILD_DIR/
 
54
 
 
55
popd 
 
56
 
 
57
#Restore patches to previous state
 
58
quilt pop -a
 
59
for i in $QUILT_APPLIED
 
60
do
 
61
        quilt push
 
62
done
 
63
 
 
64
if [ x"$TOP_LEVEL" != x"" ] ; then
 
65
        popd
 
66
fi
 
67
 
 
68