Rebased, added env var test for virtualbox CPU count

Signed-off-by: Tom Barlow <tomwbarlow@gmail.com>
This commit is contained in:
Tom Barlow 2015-03-27 17:07:56 +00:00
parent 6e71cd3917
commit ddf633a9e4
1 changed files with 10 additions and 4 deletions

View File

@ -260,7 +260,7 @@ findCPUCount() {
@test "$DRIVER: check custom machine memory size" {
findMemorySize
[[ ${output} == "${CUSTOM_MEMSIZE}" ]]
[[ ${output} == "$CUSTOM_MEMSIZE" ]]
}
@test "$DRIVER: check custom machine disksize" {
@ -270,7 +270,7 @@ findCPUCount() {
@test "$DRIVER: check custom machine cpucount" {
findCPUCount
[[ ${output} == "${CUSTOM_CPUCOUNT}" ]]
[[ ${output} == "$CUSTOM_CPUCOUNT" ]]
}
@test "$DRIVER: machine should show running after create" {
@ -284,8 +284,8 @@ findCPUCount() {
[ "$status" -eq 0 ]
}
@test "$DRIVER: can create custom machine using disk size and memory size via env vars" {
VIRTUALBOX_DISK_SIZE=$CUSTOM_DISKSIZE VIRTUALBOX_MEMORY_SIZE=$CUSTOM_MEMSIZE run machine create -d $DRIVER $NAME
@test "$DRIVER: can create custom machine using disk size, cpu count and memory size via env vars" {
VIRTUALBOX_DISK_SIZE=$CUSTOM_DISKSIZE VIRTUALBOX_CPU_COUNT=$CUSTOM_CPUCOUNT VIRTUALBOX_MEMORY_SIZE=$CUSTOM_MEMSIZE run machine create -d $DRIVER $NAME
[ "$status" -eq 0 ]
}
@ -299,6 +299,12 @@ findCPUCount() {
[[ ${output} == *"$CUSTOM_DISKSIZE"* ]]
}
@test "$DRIVER: check custom machine cpucount" {
findCPUCount
[[ ${output} == "$CUSTOM_CPUCOUNT" ]]
}
@test "$DRIVER: machine should show running after create with env" {
run machine ls
[ "$status" -eq 0 ]