File: dtc-fails.sh

package info (click to toggle)
device-tree-compiler 1.4.0%2Bdfsg-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 1,444 kB
  • sloc: ansic: 8,590; sh: 694; asm: 619; lex: 459; yacc: 429; makefile: 226; perl: 74
file content (30 lines) | stat: -rwxr-xr-x 368 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
20
21
22
23
24
25
26
27
28
29
30
#! /bin/sh

. ./tests.sh

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

OUTPUT="$1"
shift

verbose_run $VALGRIND "$DTC" -o "$OUTPUT" "$@"
ret="$?"

FAIL_IF_SIGNAL $ret

if [ -n "$NEG" ]; then
    if [ ! -e "$OUTPUT" ]; then
	FAIL "Produced no output"
    fi
else
    if [ -e "$OUTPUT" ]; then
	FAIL "Incorrectly produced output"
    fi
fi

rm -f "$OUTPUT"

PASS