init: do not need default value for opt -d

Default value for flag values are not needed and prevents the usage
string from printing correctly.
tap: add option to switch output to TAP

Add internal flag int::output_tap to indicate we wish to only print TAP
friendly output.
tap: remove timestamp and colors from TAP output
tap: make output strings TAP firendly

This commit changes the output even for normal output mode. This is
motivated by the advantage of keeping the same code path for normal and
TAP output.
tap: add SKIP and PLAN result types
tap: add test number to output of result
Merge pull request #2 from neg/master

init: do not need default value for opt -d
Change line break matching in execute

Match line breaks at end rather then at beginning to avoid out of sync
issues for some sources.
Fix incorrect (old) usage of fatal in unit tests

These should have been updated in fb0b28c
tap: do not call output before int::output_tap is set

A call into output before int::output_tap is set will result in a
stacktrace since output depends on int::output_tap to decide output
format.

Signed-off-by: Niklas Söderlund <niso@kth.se>
Merge pull request #3 from neg/master

tap: do not call output before int::output_tap is set
Catch errors thrown by cmdline::getoptions

A bit strange since the manual states that passing a usage value like we
did to cmdline::getoptions should handle this. Anyway, this resolves
the immediate problem and it sort of makes sense code-wise.
Uplevel fatal to caller scope

If wrapped calls manipulates things in caller scope, we need to mitigate
the fatal scope in order to keep the call chain the same.

I.e. if procedure foo does "fatal bar" an uplevel or upvar in bar should
end up in foo and not fatal.
Save executed return code in callers $?

Save the return code of the execute command in $?. This perhaps isn't
the cleanest of solutions, to manipulate variables in caller scope.
However, it's similar to what bash does and it sort of makes sense, so
long the usage of the return code is a corner-case and not common
practice this should suffice.
Added one-way scp support

Change-Id: I4a011b9d6d1892f89b5930ebc07f5a3588a50a54