This adds hooks for use with Labgrid. The only existing hook that really does anything now is the 'console' one. There is also a new 'getrole' hook which looks up a role to find various things about it, such as the U-Boot board name.
Changes in v4: - Use an environment variable to select the Labgrid hooks - Add new patch to add .none scripts for power off/on - Support pytest fully with dual-build boards like Beagleplay Changes in v3: - Fall back to conf.${board_type}_${board_ident} if conf.all missing - Update scripts for latest version of Labgrid integration - Add poweroff.none and poweron.none - Provide -n flag when querying board info - Target the grpc version of Labgrid which is now in -master - Update README to cover the changes Changes in v2: - Make use of the common script (only) to set bin_dir - Make use of the common script (only) to set bin_dir Simon Glass (3): Create a common file for test scripts Add .none scripts for power off/on Provide some basic scripts for Labgrid integration README.md | 50 ++++++++++++++++++++++++++++++++++++ bin/console.labgrid | 42 ++++++++++++++++++++++++++++++ bin/ellesmere/common-labgrid | 46 +++++++++++++++++++++++++++++++++ bin/ellesmere/conf.all | 24 +++++++++++++++++ bin/getrole.labgrid | 25 ++++++++++++++++++ bin/poweroff.none | 22 ++++++++++++++++ bin/poweron.none | 22 ++++++++++++++++ bin/release.labgrid | 22 ++++++++++++++++ bin/release.none | 22 ++++++++++++++++ bin/u-boot-test-common | 36 ++++++++++++++++++++++++++ bin/u-boot-test-console | 8 +----- bin/u-boot-test-flash | 8 +----- bin/u-boot-test-getrole | 38 +++++++++++++++++++++++++++ bin/u-boot-test-power-off | 8 +----- bin/u-boot-test-power-on | 8 +----- bin/u-boot-test-release | 26 +++++++++++++++++++ bin/u-boot-test-reset | 8 +----- 17 files changed, 380 insertions(+), 35 deletions(-) create mode 100644 bin/console.labgrid create mode 100755 bin/ellesmere/common-labgrid create mode 100644 bin/ellesmere/conf.all create mode 100644 bin/getrole.labgrid create mode 100755 bin/poweroff.none create mode 100755 bin/poweron.none create mode 100644 bin/release.labgrid create mode 100644 bin/release.none create mode 100755 bin/u-boot-test-common create mode 100755 bin/u-boot-test-getrole create mode 100755 bin/u-boot-test-release -- 2.34.1