aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-05-01 14:00:44 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2019-05-01 14:00:44 +0000
commit56a77479757c1de70adcece504b9b9ebefc1cfad (patch)
tree983583cc54e6db2be881f2a2fc7d7a28ddce580e
parentce69314f67833fc38b2ef05745aaaf3f6b6f78a9 (diff)
parent498dd4a921bfc0dc4e457d72f08c6687e60a9a18 (diff)
Merge "Add test scripts for CIBT cases"
-rwxr-xr-xjjb/ci-AGL-verify/ci-platform-CIBT-qemux86-64-run.sh42
-rwxr-xr-xjjb/ci-AGL-verify/ci-platform-CIBT-rpi3-run.sh42
-rw-r--r--jjb/common/include-agl-lava-jobs-submit.sh7
3 files changed, 90 insertions, 1 deletions
diff --git a/jjb/ci-AGL-verify/ci-platform-CIBT-qemux86-64-run.sh b/jjb/ci-AGL-verify/ci-platform-CIBT-qemux86-64-run.sh
new file mode 100755
index 00000000..625c88e5
--- /dev/null
+++ b/jjb/ci-AGL-verify/ci-platform-CIBT-qemux86-64-run.sh
@@ -0,0 +1,42 @@
+#!/bin/bash
+set -x
+function usage () {
+
+echo "Usage: $0 ChangeID PatchID"
+echo " LAVA credentials are in ~/.lava-cimanagement.cfg"
+
+}
+
+if [[ -z $1 ]] || [[ -z $2 ]] ; then
+ usage
+ exit 1
+fi
+
+export MACHINE=qemux86-64
+
+export GERRIT_CHANGE_NUMBER=$1
+export GERRIT_PATCHSET_NUMBER=$2
+
+# the file needs to entries:
+# export LAB_AGL_USER=
+# export LAB_AGL_TOKEN=
+# or
+# export LAB_BAYLIBRE_USER=
+# export LAB_BAYLIBRE_TOKEN=
+if [[ -f ~/.lava-cimanagement.cfg ]] ; then
+ source ~/.lava-cimanagement.cfg
+else
+ echo "you need ~/.lava-cimanagement.cfg"
+fi
+
+set -x
+set -e
+export COMMON="$(pwd)/../common"
+
+source ${COMMON}/include-agl-header.sh
+source ${COMMON}/include-agl-repo.sh
+source ${COMMON}/include-agl-select.sh
+source ${COMMON}/include-agl-run-test-prepare.sh
+source ${COMMON}/include-agl-lava-labs-prepare.sh
+source ${COMMON}/include-agl-run-test-short.sh
+source ${COMMON}/include-agl-lava-jobs-submit.sh
diff --git a/jjb/ci-AGL-verify/ci-platform-CIBT-rpi3-run.sh b/jjb/ci-AGL-verify/ci-platform-CIBT-rpi3-run.sh
new file mode 100755
index 00000000..ac86919c
--- /dev/null
+++ b/jjb/ci-AGL-verify/ci-platform-CIBT-rpi3-run.sh
@@ -0,0 +1,42 @@
+#!/bin/bash
+set -x
+function usage () {
+
+echo "Usage: $0 ChangeID PatchID"
+echo " LAVA credentials are in ~/.lava-cimanagement.cfg"
+
+}
+
+if [[ -z $1 ]] || [[ -z $2 ]] ; then
+ usage
+ exit 1
+fi
+
+export MACHINE=raspberrypi3
+
+export GERRIT_CHANGE_NUMBER=$1
+export GERRIT_PATCHSET_NUMBER=$2
+
+# the file needs to entries:
+# export LAB_AGL_USER=
+# export LAB_AGL_TOKEN=
+# or
+# export LAB_BAYLIBRE_USER=
+# export LAB_BAYLIBRE_TOKEN=
+if [[ -f ~/.lava-cimanagement.cfg ]] ; then
+ source ~/.lava-cimanagement.cfg
+else
+ echo "you need ~/.lava-cimanagement.cfg"
+fi
+
+set -x
+set -e
+export COMMON="$(pwd)/../common"
+
+source ${COMMON}/include-agl-header.sh
+source ${COMMON}/include-agl-repo.sh
+source ${COMMON}/include-agl-select.sh
+source ${COMMON}/include-agl-run-test-prepare.sh
+source ${COMMON}/include-agl-lava-labs-prepare.sh
+source ${COMMON}/include-agl-run-test-short.sh
+source ${COMMON}/include-agl-lava-jobs-submit.sh
diff --git a/jjb/common/include-agl-lava-jobs-submit.sh b/jjb/common/include-agl-lava-jobs-submit.sh
index ae980424..bac0c701 100644
--- a/jjb/common/include-agl-lava-jobs-submit.sh
+++ b/jjb/common/include-agl-lava-jobs-submit.sh
@@ -4,7 +4,12 @@
# Submit LAVA YAML job file (default testjob.yaml) to first available LAVA lab
# with matching device-type
#
-JOB_FILE=${1:-testjob.yaml}
+#JOB_FILE=${1:-testjob.yaml}
+JOB_FILE=testjob.yaml
+
+if [ ! -e $JOB_FILE ]; then
+ JOB_FILE=$1
+fi
if [ ! -e $JOB_FILE ]; then
echo "ERROR: LAVA job file $JOB_FILE not present."