summaryrefslogtreecommitdiffstats
path: root/scripts/ci/oe-selftest.sh
blob: 178e7c103c05feb9650eb65433406379ef3b4266 (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
#!/bin/bash

# run meta-updater's oe-selftests

set -euo pipefail
set -x

TEST_MACHINE=${TEST_MACHINE:-qemux86-64}
TEST_BUILD_DIR=${TEST_BUILD_DIR:-build}
TEST_REPO_DIR=${TEST_REPO_DIR:-updater-repo}

(
set +euo pipefail
set +x
METADIR=$(realpath "$TEST_REPO_DIR")
export METADIR
. "${TEST_REPO_DIR}/meta-updater/scripts/envsetup.sh" "${TEST_MACHINE}" "${TEST_BUILD_DIR}"

set -x

# work poky around bug on sumo and thud
# see https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d3a94e5b9b3c107cf54d5639071cc6609c002f67
mkdir -p "tmp/log"

oe-selftest -r "$@"
)