genvers: Learn to use git describe --dirty

Signed-off-by: Katsuyuki TATEISHI <kt@wheel.jp>
Merge branch 'refactor-genvers'

* refactor-genvers:
  genvers: Learn to use git describe --dirty
t: Fix using diag in load.t

Signed-off-by: Katsuyuki TATEISHI <kt@wheel.jp>
t: Fix 'type' redirection in load.t

Output of 'type' command is directed to stdout in some operating
systems even if it goes error.  This commit changes the output
redirection of 'type' type command when bshtap is not loaded.

Signed-off-by: Katsuyuki TATEISHI <kt@wheel.jp>
genvers: Use printf instead of echo -n

Echo -n in MacOS X doesn't work like other platforms.
This commit changes the invocations of echo to printf.

Signed-off-by: Katsuyuki TATEISHI <kt@wheel.jp>
t/common.sh: Fix test failure, using printf instead of echo

Signed-off-by: Katsuyuki TATEISHI <kt@wheel.jp>
Makefile.am: Drop echo and modify to use printf instead

Signed-off-by: Katsuyuki TATEISHI <kt@wheel.jp>
t/cmp_ok.t: Drop echo and modify to use printf instead

Signed-off-by: Katsuyuki TATEISHI <kt@wheel.jp>
t/fail.t: Drop echo and modify to use printf instead

Signed-off-by: Katsuyuki TATEISHI <kt@wheel.jp>
t/misc.t: Drop echo and modify to use printf instead

Signed-off-by: Katsuyuki TATEISHI <kt@wheel.jp>
t/ok.t: Drop echo and modify to use printf instead

Signed-off-by: Katsuyuki TATEISHI <kt@wheel.jp>
t/output.t: Drop echo and modify to use printf instead

Signed-off-by: Katsuyuki TATEISHI <kt@wheel.jp>
Merge branch 'fix-for-netbsd' into drop-echo

* fix-for-netbsd:
  t: Fix 'type' redirection in load.t
  t: Fix using diag in load.t
Merge branch 'fix-for-netbsd' into pu

* fix-for-netbsd:
  t: Fix 'type' redirection in load.t
  t: Fix using diag in load.t
t/load.t: Drop echo and modify to use printf instead

Signed-off-by: Katsuyuki TATEISHI <kt@wheel.jp>
Merge branch 'drop-echo' into pu

* drop-echo:
  t/load.t: Drop echo and modify to use printf instead
  t/output.t: Drop echo and modify to use printf instead
  t/ok.t: Drop echo and modify to use printf instead
  t/misc.t: Drop echo and modify to use printf instead
  t/fail.t: Drop echo and modify to use printf instead
  t/cmp_ok.t: Drop echo and modify to use printf instead
  Makefile.am: Drop echo and modify to use printf instead
  t/common.sh: Fix test failure, using printf instead of echo
  genvers: Use printf instead of echo -n
Change places adding '-' to testname output.

The '-' included in testname output was added at _bshtap_test_ok_ng,
but some features(e.g. skip) require to suppress '-' from their output.
This commit moves the places adding '-' to the output from
_bshtap_test_ok_ng to _bshtap_test_ok/_bshtap_test_ng.

It is to prepare adding 'skip' feature.
Add a wrapper function for cmp_ok
Add new feature 'skip'
Add documentation about skip