aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/ptest-runner/ptest-runner_2.1.bb
blob: 71c1dabee4922d5b885892e34a8ed7d4904a8e96 (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
SUMMARY = "A C program to run all installed ptests"
DESCRIPTION = "The ptest-runner2 package installs a ptest-runner \
program which loops through all installed ptest test suites and \
runs them in sequence."
HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/ptest-runner2/about/"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"

SRCREV = "8a93832dad621535e90aa8e1fb74ae5ba743fc3e"
PV = "2.1+git${SRCPV}"

SRC_URI = "git://git.yoctoproject.org/ptest-runner2"
S = "${WORKDIR}/git"

FILES_${PN} = "${bindir}/ptest-runner"

EXTRA_OEMAKE = "-e MAKEFLAGS="

do_compile () {
	oe_runmake
}

do_install () {
	install -D -m 0755 ${S}/ptest-runner ${D}${bindir}/ptest-runner
}
/span> |sed -ne "s/^mlprefix=\(.*\)-/\1/p") && shift # if the hook we want to install does not exist, then there's nothing we can do [ -f "$intercept_script" ] || exit 1 # if the postinstall wanting to install the hook belongs to a multilib package, # then we'd better have a separate hook for this because the default ${libdir} and # ${base_libdir} will point to the wrong locations if [ -n "$mlprefix" ]; then ml_intercept_script=$intercept_script-$mlprefix # if the multilib hook does not exist, create it from the default one if [ ! -f "$ml_intercept_script" ]; then cp $intercept_script $ml_intercept_script # clear the ##PKGS: line and the already set variables [ -x "$ml_intercept_script" ] && sed -i -e "2,$(($#+1)) {/.*/d}" -e "/^##PKGS: .*/d" $ml_intercept_script fi intercept_script=$ml_intercept_script fi chmod +x "$intercept_script" pkgs_line=$(grep "##PKGS:" $intercept_script) if [ -n "$pkgs_line" ]; then # line exists, add this package to the list only if it's not already there if [ -z "$(echo "$pkgs_line" | grep " $package_name ")" ]; then sed -i -e "s/##PKGS:.*/\0${package_name} /" $intercept_script fi else for var in "$@"; do sed -i -e "\%^#\!/bin/.*sh%a $var" $intercept_script done echo "##PKGS: ${package_name} " >> $intercept_script fi