Add test scripts for CIBT cases 23/21223/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 1 May 2019 13:57:56 +0000 (15:57 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 1 May 2019 13:57:56 +0000 (15:57 +0200)
and adapt the common job to not use '' .

Change-Id: I15b4fa1a4ab181c55c53885fb746cfd56403c698
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/ci-AGL-verify/ci-platform-CIBT-qemux86-64-run.sh [new file with mode: 0755]
jjb/ci-AGL-verify/ci-platform-CIBT-rpi3-run.sh [new file with mode: 0755]
jjb/common/include-agl-lava-jobs-submit.sh

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 (executable)
index 0000000..625c88e
--- /dev/null
@@ -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 (executable)
index 0000000..ac86919
--- /dev/null
@@ -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
index ae98042..bac0c70 100644 (file)
@@ -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."