diff options
author | Botao Sun <botao.sun@linaro.org> | 2014-10-21 23:26:27 +1100 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-10-21 13:16:09 +0000 |
commit | 179f4ea06da1c4d823e1bcd510289b616bd65b7c (patch) | |
tree | b857b659076ed6b3dc635f5f623fb7cbc52a2120 /openembedded/scripts | |
parent | 3daf4c21e218bc269ebd03006a41a18369064603 (diff) |
acpi-smoke-test.sh: POSIX Compliant Update.
This change is to make the test script to be POSIX compliant.
Original patch comes from:
Lucas Dutra Nunes <ldnunes@ossystems.com.br>
Signed-off by: Botao Sun <botao.sun@linaro.org>
Change-Id: I4b5ad6e577a3c89230d188b54cde8e5475665dcc
Diffstat (limited to 'openembedded/scripts')
-rwxr-xr-x | openembedded/scripts/acpi-smoke-test.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/openembedded/scripts/acpi-smoke-test.sh b/openembedded/scripts/acpi-smoke-test.sh index 176c811..5d4575f 100755 --- a/openembedded/scripts/acpi-smoke-test.sh +++ b/openembedded/scripts/acpi-smoke-test.sh @@ -1,8 +1,8 @@ -#! /bin/bash +#!/bin/sh # # Test ACPI Support in UEFI on v7 and v8 # -# Copyright (C) 2012, Linaro Limited. +# Copyright (C) 2010 - 2014, Linaro Limited. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -16,16 +16,19 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # +# Maintainer: timothy.anzaku@linaro.org + DSDTPASS= + echo -n "Testing presence of /sys/firmware/acpi: " if [ -d /sys/firmware/acpi ]; then lava-test-case sys-firmware-acpi-present --result pass else lava-test-case sys-firmware-acpi-present --result fail fi + echo -n "Testing presence of /sys/firmware/acpi/tables/DSDT: " if [ -f /sys/firmware/acpi/tables/DSDT ]; then lava-test-case sys-firmware-acpi-tables-DSDT --result pass @@ -33,6 +36,7 @@ if [ -f /sys/firmware/acpi/tables/DSDT ]; then else lava-test-case sys-firmware-acpi-tables-DSDT --result fail fi + echo -n "Can decompile DSDT: " if [ -x /usr/bin/iasl -a -n "$DSDTPASS" ]; then cp /sys/firmware/acpi/tables/DSDT /tmp/ |