Skip to content

Instantly share code, notes, and snippets.

@thinkerbot
Created August 13, 2011 02:26
Show Gist options
  • Save thinkerbot/1143394 to your computer and use it in GitHub Desktop.
Save thinkerbot/1143394 to your computer and use it in GitHub Desktop.
Times to run rbenv tests on two ubuntu VMs using VirtualBox
chiangs:~/Documents/Gems/rbenv>time rake start
$ VBoxManage -q controlvm abox poweroff
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
$ VBoxManage -q controlvm bbox poweroff
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
$ VBoxManage -q snapshot abox restore CURRENT
Restoring snapshot 80fc03ef-de05-4ecb-a437-bb2bd92964ad
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
$ VBoxManage -q startvm abox --type headless
Waiting for the VM to power on...
VM has been successfully started.
$ ssh -MNf -F '/Users/chiangs/Documents/Gems/rbenv/config/ssh' 'abox' >/dev/null 2>&1 </dev/null
$ VBoxManage -q snapshot bbox restore CURRENT
Restoring snapshot f1715402-ba70-49c2-b558-b86f502e2cb6
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
$ VBoxManage -q startvm bbox --type headless
Waiting for the VM to power on...
VM has been successfully started.
$ ssh -MNf -F '/Users/chiangs/Documents/Gems/rbenv/config/ssh' 'bbox' >/dev/null 2>&1 </dev/null
real 0m43.265s
user 0m0.284s
sys 0m0.179s
chiangs:~/Documents/Gems/rbenv>time rake remote_test
'/Users/chiangs/Documents/Gems/rbenv/test.sh' abox bbox
############## abox ##############
Started on abox-ubuntu
.FF..
Finished in 0s
[example_test.sh:] test_assert_equal_fail_by_status
expected exit status 1 but was 0
[example_test.sh:] test_assert_equal_fail_by_output
unequal stdout:
2c2
< hello world
---
> ellow world
3 pass, 2 fail
############## bbox ##############
Started on bbox-ubuntu
.FF..
Finished in 0s
[example_test.sh:] test_assert_equal_fail_by_status
expected exit status 1 but was 0
[example_test.sh:] test_assert_equal_fail_by_output
unequal stdout:
2c2
< hello world
---
> ellow world
3 pass, 2 fail
real 0m0.968s
user 0m0.119s
sys 0m0.058s
chiangs:~/Documents/Gems/rbenv>time rake stop
$ VBoxManage -q controlvm abox poweroff
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
$ VBoxManage -q controlvm bbox poweroff
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
real 0m0.559s
user 0m0.170s
sys 0m0.079s
chiangs:~/Documents/Gems/rbenv>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment