mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
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>
This commit is contained in:
parent
8d8372b137
commit
d030a893be
1 changed files with 3 additions and 2 deletions
|
@ -373,9 +373,10 @@ tree1_tests_rw () {
|
||||||
check_tests () {
|
check_tests () {
|
||||||
tree="$1"
|
tree="$1"
|
||||||
shift
|
shift
|
||||||
|
dtb=$(basename "$tree" .dts).test.dtb
|
||||||
run_sh_test "$SRCDIR/dtc-checkfails.sh" "$@" -- -I dts -O dtb $tree
|
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_dtc_test -I dts -O dtb -o "$dtb" -f $tree
|
||||||
run_sh_test "$SRCDIR/dtc-checkfails.sh" "$@" -- -I dtb -O dtb $tree.test.dtb
|
run_sh_test "$SRCDIR/dtc-checkfails.sh" "$@" -- -I dtb -O dtb "$dtb"
|
||||||
}
|
}
|
||||||
|
|
||||||
ALL_LAYOUTS="mts mst tms tsm smt stm"
|
ALL_LAYOUTS="mts mst tms tsm smt stm"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue