Add sweetcomb-test
[ci-management.git] / jjb / sweetcomb / include-raw-sweetcomb-test.sh
1 #!/bin/bash
2 # basic build script example
3 set -xe -o pipefail
4
5 ##container server node detection
6 grep search /etc/resolv.conf  || true
7
8 OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
9 OS_VERSION_ID=$(grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
10
11 echo OS_ID: $OS_ID
12 echo OS_VERSION_ID: $OS_VERSION_ID
13
14 echo "Building using \"make build-root/build.sh\""
15 [ "x${DRYRUN}" == "xTrue" ] || make UNATTENDED=yes install-test-extra
16 [ "x${DRYRUN}" == "xTrue" ] || make build-scvpp
17 [ "x${DRYRUN}" == "xTrue" ] || make build-plugins
18 [ "x${DRYRUN}" == "xTrue" ] || useradd user
19 [ "x${DRYRUN}" == "xTrue" ] || bash -c "echo -e \"user\nuser\" | passwd user"
20 [ "x${DRYRUN}" == "xTrue" ] || make UNATTENDED=yes test-plugins
21
22 echo "*******************************************************************"
23 echo "* SWEETCOMB TEST SUCCESSFULLY COMPLETED"
24 echo "*******************************************************************"
25