...
 
Commits (2)
#!/bin/sh
if [ "$1" != --compile ]
then
exec devroot-enter \
"$1" \
--bind-ro $(readlink -f $0):/tmp/cross-compile.sh \
/tmp/cross-compile.sh --compile
fi
if apt source --compile dash
then
echo sdk-cross-compilation: PASSED
else
echo sdk-cross-compilation: FAILED
fi
metadata:
name: sdk-cross-compilation
format: "Lava-Test-Shell Test Definition 1.0"
description: |
Attempt building bash package in the devroot SDK images ship.
maintainer: andrew.shadura@collabora.co.uk
scope:
- functional
environment:
- lava-test-shell
install:
deps:
- systemd-container
run:
steps:
- common/run-test-in-systemd --user=user --basename -- cross/cross-compile.sh /opt/devroot
parse:
fixupdict:
FAILED: fail
PASSED: pass
FAIL: fail
PASS: pass
SKIP: skip
UNKNOWN: unknown
pattern: '^(?P<test_case_id>[a-zA-Z0-9_\-\./]+):\s*(?P<result>PASSED|PASS|pass|FAILED|FAIL|fail|SKIP|skip|UNKNOWN|unknown)$'