mirror of https://github.com/docker/docs.git
Rebased, added env var test for virtualbox CPU count
Signed-off-by: Tom Barlow <tomwbarlow@gmail.com>
This commit is contained in:
parent
6e71cd3917
commit
ddf633a9e4
|
@ -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 ]
|
||||
|
|
Loading…
Reference in New Issue