Browse Source

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 6 years ago
parent
commit
00f9febf9c
  1. 2
      tests/dtc-checkfails.sh
  2. 2
      tests/dtc-fails.sh
  3. 2
      tests/dtc-fatal.sh
  4. 2
      tests/fdtdump-runtest.sh
  5. 2
      tests/fdtget-runtest.sh
  6. 2
      tests/fdtoverlay-runtest.sh
  7. 2
      tests/fdtput-runtest.sh
  8. 2
      tests/run_tests.sh
  9. 0
      tests/testutils.sh

2
tests/dtc-checkfails.sh

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

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

for x; do
shift

2
tests/dtc-fails.sh

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

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

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

2
tests/dtc-fatal.sh

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

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

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

2
tests/fdtdump-runtest.sh

@ -4,7 +4,7 @@ @@ -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"

2
tests/fdtget-runtest.sh

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

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

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

2
tests/fdtoverlay-runtest.sh

@ -6,7 +6,7 @@ @@ -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.$$

2
tests/fdtput-runtest.sh

@ -6,7 +6,7 @@ @@ -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.$$

2
tests/run_tests.sh

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

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

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

0
tests/tests.sh → tests/testutils.sh

Loading…
Cancel
Save