Commit ed772fe79bf4419320e997de94b3f93dbbe0838a
1 parent
3ed0de31b4
Exists in
smarc_8mq_lf_v2020.04
and in
20 other branches
test: Set the DTC environment variable
Set this to our own device-tree compiler since we know it is new enough to run the tests. Signed-off-by: Simon Glass <sjg@chromium.org>
Showing 1 changed file with 5 additions and 3 deletions Side-by-side Diff
test/run
| ... | ... | @@ -17,17 +17,19 @@ |
| 17 | 17 | # Run tests for the flat DT version of sandbox |
| 18 | 18 | ./test/py/test.py --bd sandbox_flattree --build |
| 19 | 19 | |
| 20 | -PYTHONPATH=build-sandbox_spl/scripts/dtc/pylibfdt run_test \ | |
| 20 | +DTC_DIR=build-sandbox_spl/scripts/dtc | |
| 21 | + | |
| 22 | +PYTHONPATH=${DTC_DIR}/pylibfdt DTC=${DTC_DIR}/dtc run_test \ | |
| 21 | 23 | ./tools/binman/binman -t |
| 22 | 24 | run_test ./tools/patman/patman --test |
| 23 | 25 | run_test ./tools/buildman/buildman -t |
| 24 | -PYTHONPATH=build-sandbox_spl/scripts/dtc/pylibfdt run_test ./tools/dtoc/dtoc -t | |
| 26 | +PYTHONPATH=${DTC_DIR}/pylibfdt DTC=${DTC_DIR}/dtc run_test ./tools/dtoc/dtoc -t | |
| 25 | 27 | |
| 26 | 28 | # This needs you to set up Python test coverage tools. |
| 27 | 29 | # To enable Python test coverage on Debian-type distributions (e.g. Ubuntu): |
| 28 | 30 | # $ sudo apt-get install python-pip python-pytest |
| 29 | 31 | # $ sudo pip install coverage |
| 30 | -PYTHONPATH=build-sandbox_spl/scripts/dtc/pylibfdt run_test \ | |
| 32 | +PYTHONPATH=${DTC_DIR}/pylibfdt DTC=${DTC_DIR}/dtc run_test \ | |
| 31 | 33 | ./tools/binman/binman -T |
| 32 | 34 | |
| 33 | 35 | if [ $result == 0 ]; then |