Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #80 from gophertown/contrib
Browse files Browse the repository at this point in the history
Suggest testing with "Vagrant Gopher"
  • Loading branch information
howeyc committed Jan 17, 2014
2 parents 5d4501a + f815888 commit effe075
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 85 deletions.
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ fsnotify uses build tags to compile different code on Linux, BSD, OS X, and Wind

Before doing a pull request, please do your best to test your changes on multiple platforms, and list which platforms you were able/unable to test on.

To make cross-platform testing easier, we are providing a Vagrantfile for Linux and BSD.
To make cross-platform testing easier, we've created a Vagrantfile for Linux and BSD.

* Install [Vagrant](http://www.vagrantup.com/) and [VirtualBox](https://www.virtualbox.org/)
* Run `vagrant up` from the project folder. You can also setup just one box with `vagrant up linux` or `vagrant up bsd` (note: the BSD box doesn't support Windows hosts at this time)
* Once setup, you can run the test suite on a given OS with a single command `vagrant ssh bsd -c 'go test ./...'`.
* Setup [Vagrant Gopher](https://github.com/gophertown/vagrant-gopher) in your `src` folder.
* Run `vagrant up` from the project folder. You can also setup just one box with `vagrant up linux` or `vagrant up bsd` (note: the BSD box doesn't support Windows hosts at this time, and NFS may prompt for your host OS password)
* Once setup, you can run the test suite on a given OS with a single command `vagrant ssh linux -c 'cd howeyc/fsnotify; go test ./...'`.
* When you're done, you will want to halt or destroy the vagrant boxes.

Notice: fsnotify file system events won't work on shared folders. The tests get around this limitation by using a tmp directory, but it is something to be aware of when logging in with `vagrant ssh linux` to do some manual testing.
Expand Down
82 changes: 0 additions & 82 deletions Vagrantfile

This file was deleted.

0 comments on commit effe075

Please sign in to comment.