Andrey Adamovich
Andrey Adamovich

Reputation: 20663

Virtual mini-Linux distribution that can be run within a unit test on Windows

I would like to automate testing of some remote SSH functionality written in Java. In order to test it for real I would like to have some simple Linux distro against which the test will run. Automated tests though should be able to run on Windows machine. Probably Linux may run in some kind of virtual machine as guest OS and test class may be the one starting and stopping that.

Do any of you know of something similar to this or any alternatives to testing?

Upvotes: 0

Views: 312

Answers (2)

Damon
Damon

Reputation: 70136

I use VirtualBox with Ubuntu installed inside it for any such stuff. The reason being that VirtualBox is ridiculously easy to set up so the virtual machine looks like a different computer with a proper IP address for the local machine (use a "bridged" network interface), and Ubuntu is ridiculously easy and fast to set up (download the image, boot, answer 3-4 questions, walk away, come back 15 mins later).

It also lets you return to the last snapshot in case you totally screw it up.

It runs perfectly well in "seamless" mode too if compositing effects are turned off, i.e. you see the Linux Windows just like any other window on your screen, among the Windows windows.

So really, all the advantages, and hardly a disadvantage.

Upvotes: 2

gview
gview

Reputation: 15361

Cygwin has been around since 1995, and would be perfect for setting up unit testing of this sort of feature under windows, since you can run an sshd in it. See sshd under Cygwin and Cygwin

Upvotes: 2

Related Questions