summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautomated/linux/run-me/run-me.sh47
-rw-r--r--automated/linux/run-me/run-me.yaml31
2 files changed, 78 insertions, 0 deletions
diff --git a/automated/linux/run-me/run-me.sh b/automated/linux/run-me/run-me.sh
new file mode 100755
index 0000000..5b5bbee
--- /dev/null
+++ b/automated/linux/run-me/run-me.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+#
+# run me test cases
+#
+# Copyright (C) 2017, Linaro Limited.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# 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.
+#
+# Author: Naresh Kamboju <naresh.kamboju@linaro.org>
+#
+
+# shellcheck disable=SC1091
+. ../../lib/sh-test-lib
+OUTPUT="$(pwd)/output"
+RESULT_FILE="${OUTPUT}/result.txt"
+export RESULT_FILE
+
+# Test run.
+! check_root && error_msg "This script must be run as root"
+[ -d "${OUTPUT}" ] && mv "${OUTPUT}" "${OUTPUT}_$(date +%Y%m%d%H%M%S)"
+mkdir -p "${OUTPUT}"
+
+info_msg "About to run MMC test..."
+info_msg "Output directory: ${OUTPUT}"
+
+TESTCASE=$1
+wget "${TESTCASE}" -O "testcase-name"
+chmod 777 testcase-name
+echo "==============="
+./testcase-name
+check_return "${TESTCASE}"
+echo "==============="
+strace ./testcase-name
+check_return "${TESTCASE}"
+echo "==============="
diff --git a/automated/linux/run-me/run-me.yaml b/automated/linux/run-me/run-me.yaml
new file mode 100644
index 0000000..1dc5224
--- /dev/null
+++ b/automated/linux/run-me/run-me.yaml
@@ -0,0 +1,31 @@
+metadata:
+ format: Lava-Test Test Definition 1.0
+ name: mmc-test
+ description: "The Multi Media Card (MMC) is a memory card standard used for solid-state storage
+ This will perform Basic MMC tests"
+ maintainer:
+ - naresh.kamboju@linaro.org
+ os:
+ - debian
+ - ubuntu
+ - centos
+ - fedora
+ - openembedded
+ scope:
+ - functional
+ devices:
+ - panda
+ - panda-es
+ - arndale
+ - beaglebone-black
+ - hi6220-hikey
+ - apq8016-sbc
+
+params:
+ TESTCASE: ""
+
+run:
+ steps:
+ - cd ./automated/linux/run-me
+ - ./run-me.sh "${TESTCASE}"
+ - ../../utils/send-to-lava.sh ./output/result.txt