File: run-test.sh

package info (click to toggle)
intel-gpu-tools 2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 62,024 kB
  • sloc: xml: 769,439; ansic: 348,692; python: 8,307; yacc: 2,781; perl: 1,196; sh: 1,178; lex: 487; asm: 227; makefile: 27; lisp: 11
file content (19 lines) | stat: -rw-r--r-- 451 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

SRCDIR="${srcdir-`pwd`}"
BUILDDIR="${top_builddir-`pwd`}"

test="TEST"

if [ -n "$1" ] ; then
	test="$1"
fi

test -d "${BUILDDIR}/test" || mkdir "${BUILDDIR}/test/"

"${BUILDDIR}/intel-gen4asm" -o "${BUILDDIR}/${test}.out" "$SRCDIR/${test}.g4a"
if cmp "${BUILDDIR}/${test}.out" "${SRCDIR}/${test}.expected" 2> /dev/null; then : ; else
  echo "Output comparison for ${test}"
  diff -u "${SRCDIR}/${test}.expected" "${test}.out"
  exit 1;
fi