tests: Add vm test lib
commitff2ebff079da153c2a2d37d7c78d2ce14833b259
authorFam Zheng <famz@redhat.com>
Tue, 5 Sep 2017 02:11:53 +0000 (5 10:11 +0800)
committerFam Zheng <famz@redhat.com>
Fri, 22 Sep 2017 02:46:25 +0000 (22 10:46 +0800)
tree057fd3330eb4999ad59db34d49abb1fcd9880ba6
parent57446e32acf706f49f19cd151a9edb1a40183fc9
tests: Add vm test lib

This is the common code to implement a "VM test" to

  1) Download and initialize a pre-defined VM that has necessary
  dependencies to build QEMU and SSH access.

  2) Archive $SRC_PATH to a .tar file.

  3) Boot the VM, and pass the source tar file to the guest.

  4) SSH into the VM, untar the source tarball, build from the source.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
tests/vm/basevm.py [new file with mode: 0755]