mirror of
git://git.yoctoproject.org/yocto-autobuilder-helper.git
synced 2025-07-19 20:59:02 +02:00
patchtest: add selftest runner
Add a runner that installs the patchtest dependencies in a Python venv and then starts patchtest's selftests. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
c12157b568
commit
3ac995a39f
|
@ -1685,6 +1685,13 @@
|
|||
"BBTARGETS" : "core-image-patchtest"
|
||||
}
|
||||
},
|
||||
"patchtest-selftest" : {
|
||||
"NEEDREPOS" : ["poky"],
|
||||
"EXTRACMDS" : ["${SCRIPTSDIR}/run-patchtest-selftest ${HELPERBUILDDIR}/.."],
|
||||
"ADDLAYER" : [
|
||||
"${BUILDDIR}/../meta-selftest"
|
||||
]
|
||||
},
|
||||
"toaster" : {
|
||||
"EXTRACMDS" : ["${SCRIPTSDIR}/run-toaster-tests ${HELPERBUILDDIR} ${HELPERBUILDDIR}/.."]
|
||||
}
|
||||
|
|
18
scripts/run-patchtest-selftest
Executable file
18
scripts/run-patchtest-selftest
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# Called with $1 as the path to poky
|
||||
|
||||
set -e
|
||||
set -u
|
||||
set -o pipefail
|
||||
set -x
|
||||
|
||||
pokydir=$(realpath "$1")
|
||||
|
||||
python3 -m venv venv --without-pip --system-site-packages
|
||||
source venv/bin/activate
|
||||
python3 -m pip install -r $pokydir/meta/lib/patchtest/requirements.txt
|
||||
|
||||
$pokydir/meta/lib/patchtest/selftest/selftest
|
Loading…
Reference in New Issue
Block a user