Fork of the vendor (Boundary Devices) u-boot for Reform 2, with minor tweaks. The goal is to migrate to mainstream u-boot or barebox ASAP. The main impediment so far is the 4GB RAM config.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
1.0 KiB

  1. #!/bin/bash
  2. run_test() {
  3. $@
  4. [ $? -ne 0 ] && result=$((result+1))
  5. }
  6. result=0
  7. # Run all tests that the standard sandbox build can support
  8. run_test ./test/py/test.py --bd sandbox --build
  9. # Run tests which require sandbox_spl
  10. run_test ./test/py/test.py --bd sandbox_spl --build -k test_ofplatdata.py
  11. # Run tests for the flat DT version of sandbox
  12. ./test/py/test.py --bd sandbox_flattree --build
  13. DTC_DIR=build-sandbox_spl/scripts/dtc
  14. PYTHONPATH=${DTC_DIR}/pylibfdt DTC=${DTC_DIR}/dtc run_test \
  15. ./tools/binman/binman -t
  16. run_test ./tools/patman/patman --test
  17. run_test ./tools/buildman/buildman -t
  18. PYTHONPATH=${DTC_DIR}/pylibfdt DTC=${DTC_DIR}/dtc run_test ./tools/dtoc/dtoc -t
  19. # This needs you to set up Python test coverage tools.
  20. # To enable Python test coverage on Debian-type distributions (e.g. Ubuntu):
  21. # $ sudo apt-get install python-pip python-pytest
  22. # $ sudo pip install coverage
  23. PYTHONPATH=${DTC_DIR}/pylibfdt DTC=${DTC_DIR}/dtc run_test \
  24. ./tools/binman/binman -T
  25. if [ $result == 0 ]; then
  26. echo "Tests passed!"
  27. else
  28. echo "Tests FAILED"
  29. exit 1
  30. fi