Execution of Livemigration through Yardstick
[kvmfornfv.git] / ci / qemuConfigValidate.sh
1 #!/bin/bash
2
3 qemu_src_dir=qemu
4 workspace=/root
5 #scripts_dir=ci/build_deb
6 VERSION=`grep -m 1 "VERSION"  ${qemu_src_dir}/config-host.mak | cut -d= -f2-`
7
8 function show_stage {
9     echo
10     echo $1
11     echo
12 }
13
14 function qemu_build_validate {
15     show_stage "validate"
16     if [[ -z "$@" ]]; then
17         echo "usage: ${0} output_dir pkgtype"
18         exit 1
19     fi
20     output_dir="$1"
21     pkgtype="$2"
22     if [ ! -d ${output_dir} -o ! -w ${output_dir} ] ; then
23         echo "${0}: Output directory '${output_dir}' does not exist or cannot be written"
24         exit 1
25     fi
26     if [ ! -d ${qemu_src_dir} ] ; then
27         echo "${0}: Directory '${qemu_src_dir}' does not exist, run this script from the root of kvmfornfv source tree"
28         exit 1
29     fi 
30     echo
31     echo "Build"
32     echo
33 }
34