File: build-testsuite

package info (click to toggle)
arrayfire 3.3.2%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 109,016 kB
  • sloc: cpp: 127,909; lisp: 6,878; python: 3,923; ansic: 1,051; sh: 347; makefile: 338; xml: 175
file content (26 lines) | stat: -rwxr-xr-x 638 bytes parent folder | download
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
#!/bin/sh
# Copyright 2015 Ghislain Antony Vaillant
#
# This file is part of the autopkgtest testsuite for ArrayFire.

set -e

# Presence of $ADTTMP implies that someone will handle cleanup for us, so we
# can avoid duplicating the effort (signal handling, etc.) here.
if [ -z "$ADTTMP" ]
then
	echo "Required envvar \"$ADTTMP\"is not set" >&2
	exit 1
fi

SRCDIR=`pwd`
cd "$ADTTMP"
cmake "$SRCDIR/test"
echo "configure: OK"
make
echo "build: OK"
CTEST_OUTPUT_ON_FAILURE=1
ctest --force-new-ctest-process -R "cpu" -E "large|dense"
echo "run: OK (cpu)"
ctest --force-new-ctest-process -R "unified" -E "large|dense"
echo "run: OK (unified)"