Include the aapitsrun script which is the actual test script which makes use of the aapits binary to run specific tests.
Also patched to allow running from abitraty directory instead of assuming results are in ../tmp and binary is in ./
Signed-off-by: Graeme Gregory graeme.gregory@linaro.org --- ...lter-to-allow-destination-directory-as-ar.patch | 46 ++++++++++++++++++++++ .../recipes-overlayed/acpica/acpitests_20140828.bb | 2 + 2 files changed, 48 insertions(+) create mode 100644 meta-linaro-integration/recipes-overlayed/acpica/acpitests/0001-aaptisrun-alter-to-allow-destination-directory-as-ar.patch
diff --git a/meta-linaro-integration/recipes-overlayed/acpica/acpitests/0001-aaptisrun-alter-to-allow-destination-directory-as-ar.patch b/meta-linaro-integration/recipes-overlayed/acpica/acpitests/0001-aaptisrun-alter-to-allow-destination-directory-as-ar.patch new file mode 100644 index 0000000..6e6ebb4 --- /dev/null +++ b/meta-linaro-integration/recipes-overlayed/acpica/acpitests/0001-aaptisrun-alter-to-allow-destination-directory-as-ar.patch @@ -0,0 +1,46 @@ +From b74f3c497d3fb689d12aed26dd5b8614ca6ac96e Mon Sep 17 00:00:00 2001 +From: Graeme Gregory graeme.gregory@linaro.org +Date: Tue, 25 Nov 2014 12:49:42 +0000 +Subject: [PATCH] aaptisrun : alter to allow destination directory as argument + +Also search for appits in $PATH + +Signed-off-by: Graeme Gregory graeme.gregory@linaro.org +--- + tests/aapits/bin/aapitsrun | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/tests/aapits/bin/aapitsrun b/tests/aapits/bin/aapitsrun +index cfa999e..3a97a0f 100755 +--- a/tests/aapits/bin/aapitsrun ++++ b/tests/aapits/bin/aapitsrun +@@ -20,7 +20,7 @@ + + # Init variables of utility + +-AAPITSDIR=../tmp ++AAPITSDIR="$1" + + AAPITSOUT=${AAPITSDIR}/raw.out + AAPITSSUM=${AAPITSDIR}/sum.out +@@ -56,6 +56,8 @@ TESTS_NUMBERS="$AT_INIT_TEST_NUM $AT_MEMM_TEST_NUM $AT_TBLM_TEST_NUM $AT_NSPM_TE + + # Check the working directory + ++mkdir -p "$AAPITSDIR/aml" || true ++ + if [ ! -d "$AAPITSDIR" ]; then + echo "There is no directory $AAPITSDIR, run make in ../asl" + exit 1 +@@ -68,7 +70,7 @@ if [ ! -d "$AAPITSAML" ]; then + exit 1 + fi + +-AAPITS=./aapits ++AAPITS=`which aapits` + + # Check access to AapiTS utility + +-- +2.1.1 + diff --git a/meta-linaro-integration/recipes-overlayed/acpica/acpitests_20140828.bb b/meta-linaro-integration/recipes-overlayed/acpica/acpitests_20140828.bb index 889c00b..3f5701b 100644 --- a/meta-linaro-integration/recipes-overlayed/acpica/acpitests_20140828.bb +++ b/meta-linaro-integration/recipes-overlayed/acpica/acpitests_20140828.bb @@ -10,6 +10,7 @@ SRC_URI = "https://acpica.org/sites/acpica/files/acpitests-unix-%24%7BPV%7D.tar.gz%3Bna... https://acpica.org/sites/acpica/files/acpica-unix2-%24%7BPV%7D.tar.gz%3Bname... \ file://aapits-linux.patch \ file://aapits-makefile.patch \ + file://0001-aaptisrun-alter-to-allow-destination-directory-as-ar.patch \ " SRC_URI[acpitests.md5sum] = "db9d6fdaa8e3eb101d700ee5ba4938ed" SRC_URI[acpitests.sha256sum] = "e576c74bf1bf1c9f7348bf9419e05c8acfece7105abcdc052e66670c7af2cf00" @@ -30,6 +31,7 @@ do_compile() { do_install() { install -d ${D}${bindir} install -m0755 tests/aapits/bin/aapits ${D}${bindir} + install -m0755 tests/aapits/bin/aapitsrun ${D}${bindir} }
COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"