File: runtest.sh

package info (click to toggle)
pocl 7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 29,768 kB
  • sloc: lisp: 151,669; ansic: 135,425; cpp: 65,801; python: 1,846; sh: 1,084; ruby: 255; pascal: 231; tcl: 180; makefile: 174; asm: 81; java: 72; xml: 49
file content (14 lines) | stat: -rw-r--r-- 346 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

TS_BASEDIR="$1"
shift
TS_BUILDDIR="$1"
shift
TS_SRCDIR="$1"
shift

# Set DBG_CMD="gdb --args" to drop to a debugger.
# -s is useful as it dumps the PoCL logs directly without capture.
# -k can be used to filter the test

cd "${TS_SRCDIR}/test" && ${DBG_CMD} ${TS_BUILDDIR}/bin/python3 ${TS_BUILDDIR}/bin/py.test -s -v --tb=native $@