diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2019-03-29 16:31:39 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-03-29 16:31:39 +1100 |
commit | 00f9febf9c16d932380243a3135ee5aed1adc410 (patch) | |
tree | ed76e164a86adc5ebc4edf36950d520e7c432166 | |
parent | c5d45188f92344759fbd70275483576c0ce42d82 (diff) | |
download | dtc-00f9febf9c16d932380243a3135ee5aed1adc410.zip dtc-00f9febf9c16d932380243a3135ee5aed1adc410.tar.gz dtc-00f9febf9c16d932380243a3135ee5aed1adc410.tar.bz2 |
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>
-rwxr-xr-x | tests/dtc-checkfails.sh | 2 | ||||
-rwxr-xr-x | tests/dtc-fails.sh | 2 | ||||
-rw-r--r-- | tests/dtc-fatal.sh | 2 | ||||
-rw-r--r-- | tests/fdtdump-runtest.sh | 2 | ||||
-rwxr-xr-x | tests/fdtget-runtest.sh | 2 | ||||
-rw-r--r-- | tests/fdtoverlay-runtest.sh | 2 | ||||
-rw-r--r-- | tests/fdtput-runtest.sh | 2 | ||||
-rwxr-xr-x | tests/run_tests.sh | 2 | ||||
-rw-r--r-- | tests/testutils.sh (renamed from tests/tests.sh) | 0 |
9 files changed, 8 insertions, 8 deletions
diff --git a/tests/dtc-checkfails.sh b/tests/dtc-checkfails.sh index 7319597..0e8beb4 100755 --- a/tests/dtc-checkfails.sh +++ b/tests/dtc-checkfails.sh @@ -1,6 +1,6 @@ #! /bin/sh -. ./tests.sh +. ./testutils.sh for x; do shift diff --git a/tests/dtc-fails.sh b/tests/dtc-fails.sh index 4ddcb27..4543203 100755 --- a/tests/dtc-fails.sh +++ b/tests/dtc-fails.sh @@ -1,6 +1,6 @@ #! /bin/sh -. ./tests.sh +. ./testutils.sh if [ "$1" = "-n" ]; then NEG="$1" diff --git a/tests/dtc-fatal.sh b/tests/dtc-fatal.sh index 6781ced..22eea69 100644 --- a/tests/dtc-fatal.sh +++ b/tests/dtc-fatal.sh @@ -1,6 +1,6 @@ #! /bin/sh -. ./tests.sh +. ./testutils.sh verbose_run $VALGRIND "$DTC" -o/dev/null "$@" ret="$?" diff --git a/tests/fdtdump-runtest.sh b/tests/fdtdump-runtest.sh index 77593cf..616c737 100644 --- a/tests/fdtdump-runtest.sh +++ b/tests/fdtdump-runtest.sh @@ -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" diff --git a/tests/fdtget-runtest.sh b/tests/fdtget-runtest.sh index 8d8b058..21044f3 100755 --- a/tests/fdtget-runtest.sh +++ b/tests/fdtget-runtest.sh @@ -1,6 +1,6 @@ #! /bin/sh -. ./tests.sh +. ./testutils.sh LOG=tmp.log.$$ EXPECT=tmp.expect.$$ diff --git a/tests/fdtoverlay-runtest.sh b/tests/fdtoverlay-runtest.sh index 06c1169..c7dbc0f 100644 --- a/tests/fdtoverlay-runtest.sh +++ b/tests/fdtoverlay-runtest.sh @@ -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.$$ diff --git a/tests/fdtput-runtest.sh b/tests/fdtput-runtest.sh index 527a968..b5beb90 100644 --- a/tests/fdtput-runtest.sh +++ b/tests/fdtput-runtest.sh @@ -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.$$ diff --git a/tests/run_tests.sh b/tests/run_tests.sh index f6b308f..e951959 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -1,6 +1,6 @@ #! /bin/sh -. ./tests.sh +. ./testutils.sh if [ -z "$CC" ]; then CC=gcc diff --git a/tests/tests.sh b/tests/testutils.sh index 8dda6e1..8dda6e1 100644 --- a/tests/tests.sh +++ b/tests/testutils.sh |