~fginther/+junk/mbs-hooks-bamf

« back to all changes in this revision

Viewing changes to B10runmakecheck

  • Committer: Francis Ginther
  • Date: 2012-10-22 14:55:58 UTC
  • Revision ID: francis.ginther@canonical.com-20121022145558-gaflry96jsdxddlv
Adding B10runmakecheck and B20xsltproc to enable dee builds

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -ex
 
3
 
 
4
#if we are building in chroot the RESULT_DIR is mounted to /results
 
5
if [ -z "$RESULT_DIR" ]; then
 
6
    RESULT_DIR=/results
 
7
else
 
8
    RESULT_DIR=""
 
9
fi
 
10
 
 
11
# Leveraged from unity-merger
 
12
 
 
13
# Set to XML output for archiving results (if supported)
 
14
export GTEST_OUTPUT="xml:./"
 
15
 
 
16
cd /tmp/buildd/*/debian/..
 
17
 
 
18
# no test for python lenses for now
 
19
[ -f setup.py ] && exit 0
 
20
 
 
21
if [ -f CMakeLists.txt ]; then
 
22
    cd obj-`dpkg-architecture -qDEB_BUILD_GNU_TYPE`
 
23
fi
 
24
 
 
25
make check-headless || make check || make test
 
26
 
 
27
find . -name '*test*.xml' -exec cp '{}' "$RESULT_DIR" \;