diff --git a/Makefile b/Makefile index 38ca716..a4ec5ea 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ -BOOT2DOCKER_VERSION := 1.8.2 +BOOT2DOCKER_VERSION := 1.9.0 B2D_ISO_FILE := boot2docker.iso B2D_ISO_URL := https://github.com/boot2docker/boot2docker/releases/download/v$(BOOT2DOCKER_VERSION)/boot2docker.iso -B2D_ISO_CHECKSUM := 29839aeef97758e142eae4c2fd10890b +B2D_ISO_CHECKSUM := ad49cdb394754148f096cc2c9f22970b all: parallels virtualbox diff --git a/tests/parallels/boot2docker_vagrant_parallels.bats b/tests/parallels/boot2docker_vagrant_parallels.bats index 6ca7cbc..c81666a 100644 --- a/tests/parallels/boot2docker_vagrant_parallels.bats +++ b/tests/parallels/boot2docker_vagrant_parallels.bats @@ -1,11 +1,11 @@ #!/usr/bin/env bats -DOCKER_TARGET_VERSION=1.8.2 +DOCKER_TARGET_VERSION=1.9.0 # Assume that Vagrantfile exists and basebox is added @test "vagrant up" { run vagrant destroy -f - run vagrant box remove boot2docker-virtualbox-test + run vagrant box remove boot2docker-parallels-test cp vagrantfile.orig Vagrantfile vagrant up --provider=parallels } @@ -39,14 +39,9 @@ DOCKER_TARGET_VERSION=1.8.2 vagrant reload } -@test "'/Users' and '.' synced folders are shared via prl_fs" { - run vagrant ssh -c 'mount | grep prl_fs' - [ "$status" -eq 0 ] - [ $(expr "${lines[0]}" : ".*on /Users") -ne 0 ] - [ $(expr "${lines[1]}" : ".*on /vagrant") -ne 0 ] - - run vagrant ssh -c "ls -l /vagrant/Vagrantfile" - [ "$status" -eq 0 ] +@test "Default synced folder is shared via prl_fs" { + mount_point=$(vagrant ssh -c 'mount' | grep 'tests/parallels.*prl_fs' | awk '{ print $3 }') + [ $(vagrant ssh -c "ls -l ${mount_point}/Vagrantfile | wc -l" -- -n -T) -ge 1 ] } @test "Rsync is installed in the VM" { @@ -57,16 +52,12 @@ DOCKER_TARGET_VERSION=1.8.2 [ $(vagrant ssh -c 'ps aux | grep rpc.statd | wc -l' -- -n -T) -ge 1 ] } -@test "Reload VM with enabled B2D_NFS_SYNC" { +@test "Default synced folder is shared via NFS if B2D_NFS_SYNC is set" { export B2D_NFS_SYNC=1 - run vagrant reload -} - -@test "'/Users' synced folder is shared via NFS" { - run vagrant ssh -c 'mount | grep nfs' - [ "$status" -eq 0 ] - [ $(expr "${lines[0]}" : ".*on /Users") -ne 0 ] - unset B2D_NFS_SYNC + vagrant reload + mount_point=$(vagrant ssh -c 'mount' | grep 'tests/parallels.*nfs' | awk '{ print $3 }') + [ $(vagrant ssh -c "ls -l $mount_point/Vagrantfile | wc -l" -- -n -T) -ge 1 ] + unset B2D_NFS_SYNC } @test "Default synced folder can be shared via rsync" { diff --git a/tests/virtualbox/boot2docker_vagrant_virtualbox.bats b/tests/virtualbox/boot2docker_vagrant_virtualbox.bats index 827dd94..7ccc7ab 100644 --- a/tests/virtualbox/boot2docker_vagrant_virtualbox.bats +++ b/tests/virtualbox/boot2docker_vagrant_virtualbox.bats @@ -28,7 +28,7 @@ vagrant ssh -c 'docker ps' } -DOCKER_TARGET_VERSION=1.8.2 +DOCKER_TARGET_VERSION=1.9.0 @test "Docker is version DOCKER_TARGET_VERSION=${DOCKER_TARGET_VERSION}" { DOCKER_VERSION=$(vagrant ssh -c "docker version --format '{{.Server.Version}}'" -- -n -T) [ "${DOCKER_VERSION}" == "${DOCKER_TARGET_VERSION}" ] @@ -52,14 +52,14 @@ DOCKER_TARGET_VERSION=1.8.2 } @test "We have a default synced folder thru vboxsf instead of NFS" { - mount_point=$(vagrant ssh -c 'mount' | grep vboxsf | awk '{ print $3 }') + mount_point=$(vagrant ssh -c 'mount' | grep 'tests/virtualbox.*vboxsf' | awk '{ print $3 }') [ $(vagrant ssh -c "ls -l ${mount_point}/Vagrantfile | wc -l" -- -n -T) -ge 1 ] } @test "We have a NFS synced folder if B2D_NFS_SYNC is set (admin password required, will fail on Windows)" { export B2D_NFS_SYNC=1 vagrant reload - mount_point=$(vagrant ssh -c 'mount' | grep nfs | awk '{ print $3 }') + mount_point=$(vagrant ssh -c 'mount' | grep 'tests/virtualbox.*nfs' | awk '{ print $3 }') [ $(vagrant ssh -c "ls -l $mount_point/Vagrantfile | wc -l" -- -n -T) -ge 1 ] unset B2D_NFS_SYNC }