tests: Rename tests.sh to testutils.sh

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>
main
David Gibson 2019-03-29 16:31:39 +11:00
parent c5d45188f9
commit 00f9febf9c
9 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
#! /bin/sh

. ./tests.sh
. ./testutils.sh

for x; do
shift

View File

@ -1,6 +1,6 @@
#! /bin/sh

. ./tests.sh
. ./testutils.sh

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

View File

@ -1,6 +1,6 @@
#! /bin/sh

. ./tests.sh
. ./testutils.sh

verbose_run $VALGRIND "$DTC" -o/dev/null "$@"
ret="$?"

View File

@ -4,7 +4,7 @@
# $1 - source file to compile and compare with fdtdump output of the
# compiled file.

. ./tests.sh
. ./testutils.sh

dts="$1"
dtb="${dts}.dtb"

View File

@ -1,6 +1,6 @@
#! /bin/sh

. ./tests.sh
. ./testutils.sh

LOG=tmp.log.$$
EXPECT=tmp.expect.$$

View File

@ -6,7 +6,7 @@
# Usage
# fdtoverlay-runtest.sh name expected_output dtb_file node property flags value

. ./tests.sh
. ./testutils.sh

LOG=tmp.log.$$
EXPECT=tmp.expect.$$

View File

@ -6,7 +6,7 @@
# Usage
# fdtput-runtest.sh name expected_output dtb_file node property flags value

. ./tests.sh
. ./testutils.sh

LOG=tmp.log.$$
EXPECT=tmp.expect.$$

View File

@ -1,6 +1,6 @@
#! /bin/sh

. ./tests.sh
. ./testutils.sh

if [ -z "$CC" ]; then
CC=gcc