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