Add regression tests for jot(1).
authortb <tb@openbsd.org>
Sat, 30 Jul 2016 13:55:54 +0000 (13:55 +0000)
committertb <tb@openbsd.org>
Sat, 30 Jul 2016 13:55:54 +0000 (13:55 +0000)
commit36da8aa1eddaefc30462398ce39ecfd69faa115a
treef7f5ffe0497b406d4ea31c9d074516e883ca70f6
parent264ca2802d62fdf4b947bcac841b85c127a0b7c1
Add regression tests for jot(1).

Adapted from FreeBSD's test suite by attila () stalphonsos ! com.

Minor tweaks:
* make tests work properly with 'make obj' and setting VERBOSE
* add 10 tests checking some examples in our man page
* disable the dddd test for now since it loops forever

Besides dddd, the following five tests fail: dhhd dhhd2 wp3 wp4 wp5
Suggested fixes for these are on tech@

Many thanks to attila for doing the hard work!
74 files changed:
regress/usr.bin/jot/Makefile [new file with mode: 0644]
regress/usr.bin/jot/regress.ascii.out [new file with mode: 0644]
regress/usr.bin/jot/regress.block.out [new file with mode: 0644]
regress/usr.bin/jot/regress.dddd.out [new file with mode: 0644]
regress/usr.bin/jot/regress.dddh.out [new file with mode: 0644]
regress/usr.bin/jot/regress.ddhd.out [new file with mode: 0644]
regress/usr.bin/jot/regress.ddhd2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.ddhh.out [new file with mode: 0644]
regress/usr.bin/jot/regress.ddhh2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.dhdd.out [new file with mode: 0644]
regress/usr.bin/jot/regress.dhdh.out [new file with mode: 0644]
regress/usr.bin/jot/regress.dhhd.out [new file with mode: 0644]
regress/usr.bin/jot/regress.dhhd2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.dhhh.out [new file with mode: 0644]
regress/usr.bin/jot/regress.dhhh2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.ed.out [new file with mode: 0644]
regress/usr.bin/jot/regress.grep.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hddd.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hddd2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hddh.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hddh2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hdhd.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hdhd2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hdhh.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hdhh2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hhdd.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hhdd2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hhdh.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hhdh2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hhhd.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hhhd2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hhhh.out [new file with mode: 0644]
regress/usr.bin/jot/regress.hhhh2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.m4 [new file with mode: 0644]
regress/usr.bin/jot/regress.man1.out [new file with mode: 0644]
regress/usr.bin/jot/regress.man10.out [new file with mode: 0644]
regress/usr.bin/jot/regress.man2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.man3.out [new file with mode: 0644]
regress/usr.bin/jot/regress.man4.out [new file with mode: 0644]
regress/usr.bin/jot/regress.man5.out [new file with mode: 0644]
regress/usr.bin/jot/regress.man6.out [new file with mode: 0644]
regress/usr.bin/jot/regress.man7.out [new file with mode: 0644]
regress/usr.bin/jot/regress.man8.out [new file with mode: 0644]
regress/usr.bin/jot/regress.man9.out [new file with mode: 0644]
regress/usr.bin/jot/regress.n21.out [new file with mode: 0644]
regress/usr.bin/jot/regress.rand1.out [new file with mode: 0644]
regress/usr.bin/jot/regress.rand2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.sh [new file with mode: 0644]
regress/usr.bin/jot/regress.stutter.out [new file with mode: 0644]
regress/usr.bin/jot/regress.stutter2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.tabs.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wX1.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wXl.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wc.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wdl.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wdn.out [new file with mode: 0644]
regress/usr.bin/jot/regress.we.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wf.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wg.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wgd.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wo.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wp1.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wp2.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wp3.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wp4.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wp5.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wp6.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wu.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wwe.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wx.out [new file with mode: 0644]
regress/usr.bin/jot/regress.wxn.out [new file with mode: 0644]
regress/usr.bin/jot/regress.x.out [new file with mode: 0644]
regress/usr.bin/jot/regress.xaa.out [new file with mode: 0644]
regress/usr.bin/jot/regress.yes.out [new file with mode: 0644]