[PATCH v2 08/33] dtoc: Move test files into a test/ directory

Simon Glass sjg at chromium.org
Sun Feb 7 01:17:22 CET 2021


It is confusing to have the test files in the same places as the
implementation. Move them into a separate directory.

Add a helper function for test_dtoc, to avoid repeating the same
path.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 tools/dtoc/{ => test}/dtoc_test.dts           |  0
 tools/dtoc/{ => test}/dtoc_test_add_prop.dts  |  0
 tools/dtoc/{ => test}/dtoc_test_addr32.dts    |  0
 tools/dtoc/{ => test}/dtoc_test_addr32_64.dts |  0
 tools/dtoc/{ => test}/dtoc_test_addr64.dts    |  0
 tools/dtoc/{ => test}/dtoc_test_addr64_32.dts |  0
 tools/dtoc/{ => test}/dtoc_test_aliases.dts   |  0
 tools/dtoc/{ => test}/dtoc_test_bad_reg.dts   |  0
 tools/dtoc/{ => test}/dtoc_test_bad_reg2.dts  |  0
 .../{ => test}/dtoc_test_driver_alias.dts     |  0
 tools/dtoc/{ => test}/dtoc_test_empty.dts     |  0
 .../{ => test}/dtoc_test_invalid_driver.dts   |  0
 tools/dtoc/{ => test}/dtoc_test_phandle.dts   |  0
 .../dtoc/{ => test}/dtoc_test_phandle_bad.dts |  0
 .../{ => test}/dtoc_test_phandle_bad2.dts     |  0
 .../{ => test}/dtoc_test_phandle_cd_gpios.dts |  0
 .../{ => test}/dtoc_test_phandle_reorder.dts  |  0
 .../{ => test}/dtoc_test_phandle_single.dts   |  0
 .../{ => test}/dtoc_test_scan_drivers.cxx     |  0
 tools/dtoc/{ => test}/dtoc_test_simple.dts    |  0
 tools/dtoc/test_dtoc.py                       |  2 +-
 tools/dtoc/test_fdt.py                        | 31 +++++++++++++------
 tools/dtoc/test_src_scan.py                   |  3 +-
 23 files changed, 24 insertions(+), 12 deletions(-)
 rename tools/dtoc/{ => test}/dtoc_test.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_add_prop.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_addr32.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_addr32_64.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_addr64.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_addr64_32.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_aliases.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_bad_reg.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_bad_reg2.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_driver_alias.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_empty.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_invalid_driver.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_phandle.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_phandle_bad.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_phandle_bad2.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_phandle_cd_gpios.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_phandle_reorder.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_phandle_single.dts (100%)
 rename tools/dtoc/{ => test}/dtoc_test_scan_drivers.cxx (100%)
 rename tools/dtoc/{ => test}/dtoc_test_simple.dts (100%)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list