aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run-toaster-tests
blob: 7bf2928bf2cb493a9a12a46351ce1a2285b7e9ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#
# SPDX-License-Identifier: GPL-2.0-only
#
# Called with $1 as the build directory
#             $2 as the path to poky

set -e
set -u
set -o pipefail
set -x

builddir=$(realpath "$1")
pokydir=$(realpath "$2")

cd $builddir

bitbake -e > bbenv
export SSTATE_DIR=$(grep '^SSTATE_DIR=' bbenv | cut -d "=" -f2-)
export DL_DIR=$(grep '^DL_DIR=' bbenv | cut -d "=" -f2-)
export TOASTER_DJANGO_TMPDIR=$builddir

mkdir -p toaster_logs
python3 -m venv venv
source venv/bin/activate
python3 -m pip install tox

tox -c $pokydir/bitbake/lib/toaster/tox.ini