mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-01 19:43:41 +00:00
Use internal test from librelp project as ptest. This work is largely inspired on the rsyslog ptest implementation, which copies the automake-based tests/Makefile to the target and runs 'make check-TESTS'. sed is used to fix a few Makefile paths or env-vars so 'make' can run on the target. Tested on qemux86_64 and qemuarm64: ========================================== librelp 1.11.0: tests/test-suite.log ========================================== TOTAL: 30 PASS: 27 SKIP: 3 XFAIL: 0 FAIL: 0 XPASS: 0 ERROR: 0 The 3 skipped tests are either self-identified as “not do anything really useful” or may need to port libtool to the target. Signed-off-by: Nicolas Marguet <nicolas.marguet@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 lines
206 B
Bash
11 lines
206 B
Bash
#!/bin/sh
|
|
#
|
|
set -e
|
|
set -o pipefail
|
|
|
|
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
|
cd ${SCRIPTPATH}
|
|
useradd tester || echo "user already exists"
|
|
su tester -c "make -C tests -k check-TESTS"
|
|
userdel tester
|