mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-20 22:52:00 +00:00
travis.yml: Run tests for tools
Run tests for the Python tools used by U-Boot. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
00f6c800b5
commit
f2d0778885
1 changed files with 15 additions and 0 deletions
15
.travis.yml
15
.travis.yml
|
@ -118,6 +118,20 @@ script:
|
||||||
./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID}
|
./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID}
|
||||||
-k "${TEST_PY_TEST_SPEC:-not a_test_which_does_not_exist}"
|
-k "${TEST_PY_TEST_SPEC:-not a_test_which_does_not_exist}"
|
||||||
--build-dir "$UBOOT_TRAVIS_BUILD_DIR";
|
--build-dir "$UBOOT_TRAVIS_BUILD_DIR";
|
||||||
|
ret=$?;
|
||||||
|
if [[ $ret -ne 0 ]]; then
|
||||||
|
exit $ret;
|
||||||
|
fi;
|
||||||
|
fi;
|
||||||
|
if [[ -n "${TEST_PY_TOOLS}" ]]; then
|
||||||
|
PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt"
|
||||||
|
PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}"
|
||||||
|
./tools/binman/binman -t &&
|
||||||
|
./tools/patman/patman --test &&
|
||||||
|
./tools/buildman/buildman -t &&
|
||||||
|
PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt"
|
||||||
|
PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}"
|
||||||
|
./tools/dtoc/dtoc -t;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -295,6 +309,7 @@ matrix:
|
||||||
TEST_PY_TEST_SPEC="test_ofplatdata"
|
TEST_PY_TEST_SPEC="test_ofplatdata"
|
||||||
BUILDMAN="^sandbox$"
|
BUILDMAN="^sandbox$"
|
||||||
TOOLCHAIN="x86_64"
|
TOOLCHAIN="x86_64"
|
||||||
|
TEST_PY_TOOLS="yes"
|
||||||
- env:
|
- env:
|
||||||
- TEST_PY_BD="sandbox_flattree"
|
- TEST_PY_BD="sandbox_flattree"
|
||||||
BUILDMAN="^sandbox_flattree$"
|
BUILDMAN="^sandbox_flattree$"
|
||||||
|
|
Loading…
Reference in a new issue