# Functions
CopyDir copies the content of the 'source' directory into the 'destination' directory.
FreePort returns a free IP (UDP/TCP) port.
FreePortListener returns a net.Listener on any free port on 127.0.0.1.
NewBaseTest creates a base test object that can be embedded in other tests.
PortListener returns a net.Listener on the given port on 127.0.0.1 If port is 0, a random free port will be used.
Removes the given directory and all of its content.
TestDir creates a new, unique test directory with the given prefix in default temp directory of the platform.
WaitUserTouch waits for user input by watching the file $TMPDIR/test-continue for a change of the last modified time.