summaryrefslogtreecommitdiffstats
path: root/jjb/sweetcomb/include-raw-sweetcomb-test.sh
diff options
context:
space:
mode:
authorAndrej Kozemcak <andrej.kozemcak@pantheon.tech>2019-06-04 13:09:58 +0200
committerAndrej Kozemcak <andrej.kozemcak@pantheon.tech>2019-06-04 13:12:48 +0200
commita004b478f1173a6216e4f8e1f99cbc2a110319ac (patch)
tree02d049f9fab2e6762132a0c4d04d8507ed9b7241 /jjb/sweetcomb/include-raw-sweetcomb-test.sh
parentb0737eb9e2618202fc7906668ea83187140b9653 (diff)
Add sweetcomb-test
Change-Id: Ic697a5f9e35c9bf651a4e8cfb25630351e6aa542 Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
Diffstat (limited to 'jjb/sweetcomb/include-raw-sweetcomb-test.sh')
-rw-r--r--jjb/sweetcomb/include-raw-sweetcomb-test.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/jjb/sweetcomb/include-raw-sweetcomb-test.sh b/jjb/sweetcomb/include-raw-sweetcomb-test.sh
new file mode 100644
index 000000000..3abdf52a2
--- /dev/null
+++ b/jjb/sweetcomb/include-raw-sweetcomb-test.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+# basic build script example
+set -xe -o pipefail
+
+##container server node detection
+grep search /etc/resolv.conf || true
+
+OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
+OS_VERSION_ID=$(grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
+
+echo OS_ID: $OS_ID
+echo OS_VERSION_ID: $OS_VERSION_ID
+
+echo "Building using \"make build-root/build.sh\""
+[ "x${DRYRUN}" == "xTrue" ] || make UNATTENDED=yes install-test-extra
+[ "x${DRYRUN}" == "xTrue" ] || make build-scvpp
+[ "x${DRYRUN}" == "xTrue" ] || make build-plugins
+[ "x${DRYRUN}" == "xTrue" ] || useradd user
+[ "x${DRYRUN}" == "xTrue" ] || bash -c "echo -e \"user\nuser\" | passwd user"
+[ "x${DRYRUN}" == "xTrue" ] || make UNATTENDED=yes test-plugins
+
+echo "*******************************************************************"
+echo "* SWEETCOMB TEST SUCCESSFULLY COMPLETED"
+echo "*******************************************************************"
+