tests.sh has a bunch of shell setup that's sourced in a number of other scripts. It _doesn't_ actually run a bunch of tests, which is kind of what the name suggests. So rename it to be more obvious. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
15 lines
254 B
Bash
15 lines
254 B
Bash
#! /bin/sh
|
|
|
|
. ./testutils.sh
|
|
|
|
verbose_run $VALGRIND "$DTC" -o/dev/null "$@"
|
|
ret="$?"
|
|
|
|
if [ "$ret" -gt 127 ]; then
|
|
FAIL "dtc killed by signal (ret=$ret)"
|
|
elif [ "$ret" != "1" ]; then
|
|
FAIL "dtc returned incorrect status $ret instead of 1"
|
|
fi
|
|
|
|
PASS
|