diff options
author | Brandon Maier <brandon.maier@collins.com> | 2023-08-01 19:58:04 +0000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2023-08-04 13:15:08 +1000 |
commit | d030a893be259795e7f3a791d84c262b6419ce20 (patch) | |
tree | cf2e9157010f7b6fdc34e03899c3c4b80560edc6 /tests | |
parent | 8d8372b13706514fada1415cb4b29a0ab0235d07 (diff) | |
download | dtc-d030a893be259795e7f3a791d84c262b6419ce20.zip dtc-d030a893be259795e7f3a791d84c262b6419ce20.tar.gz dtc-d030a893be259795e7f3a791d84c262b6419ce20.tar.bz2 |
tests: generate dtbs in Meson build directory
When running under Meson, check_tests() is generating dtb build files in
the source directory. This is because dtb is named by appending
".test.dtb" to the full source file name.
Use basename to extract just the source filename and write it to the
working directory which is the build directory.
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/run_tests.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 8aa1f89..c4f8b9b 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -373,9 +373,10 @@ tree1_tests_rw () { check_tests () { tree="$1" shift + dtb=$(basename "$tree" .dts).test.dtb run_sh_test "$SRCDIR/dtc-checkfails.sh" "$@" -- -I dts -O dtb $tree - run_dtc_test -I dts -O dtb -o $tree.test.dtb -f $tree - run_sh_test "$SRCDIR/dtc-checkfails.sh" "$@" -- -I dtb -O dtb $tree.test.dtb + run_dtc_test -I dts -O dtb -o "$dtb" -f $tree + run_sh_test "$SRCDIR/dtc-checkfails.sh" "$@" -- -I dtb -O dtb "$dtb" } ALL_LAYOUTS="mts mst tms tsm smt stm" |